diff --git a/.github/workflows/nuget_publish.yml b/.github/workflows/nuget_publish.yml index 5d02b1a..8250e11 100644 --- a/.github/workflows/nuget_publish.yml +++ b/.github/workflows/nuget_publish.yml @@ -20,8 +20,20 @@ jobs: source-url: https://nuget.pkg.github.com/BezaluLLC/index.json env: NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - - run: dotnet build --configuration Release NinjaOne.Client + - name: Install Kiota CLI + run: dotnet tool install --global Microsoft.OpenApi.Kiota + - name: Generate SDK + run: | + kiota generate \ + --language CSharp \ + --openapi https://app.ninjarmm.com/apidocs/NinjaRMM-API-v2.json \ + --class-name NinjaOneClient \ + --namespace-name NinjaOne.Client \ + --output ./Sdk \ + --clean-output \ + --ll warning + - run: dotnet build --configuration Release - name: Create the package - run: dotnet pack --configuration Release NinjaOne.Client + run: dotnet pack --configuration Release - name: Publish the package to GPR - run: dotnet nuget push CredentialManagerLib/bin/Release/*.nupkg --skip-duplicate + run: dotnet nuget push bin/Release/*.nupkg --skip-duplicate diff --git a/.gitignore b/.gitignore index 9491a2f..53ca906 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,9 @@ ## ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore +# Kiota-generated Client +[Ss][Dd][Kk]/ + # User-specific files *.rsuser *.suo diff --git a/Models/BodyPart.cs b/Models/BodyPart.cs deleted file mode 100644 index 34a7872..0000000 --- a/Models/BodyPart.cs +++ /dev/null @@ -1,135 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class BodyPart : 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 contentDisposition property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.BodyPart_contentDisposition? ContentDisposition { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.BodyPart_contentDisposition ContentDisposition { get; set; } -#endif - /// The entity property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.BodyPart_entity? Entity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.BodyPart_entity Entity { get; set; } -#endif - /// The headers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.BodyPart_headers? Headers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.BodyPart_headers Headers { get; set; } -#endif - /// The mediaType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.BodyPart_mediaType? MediaType { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.BodyPart_mediaType MediaType { get; set; } -#endif - /// The messageBodyWorkers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.BodyPart_messageBodyWorkers? MessageBodyWorkers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.BodyPart_messageBodyWorkers MessageBodyWorkers { get; set; } -#endif - /// The parameterizedHeaders property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.BodyPart_parameterizedHeaders? ParameterizedHeaders { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.BodyPart_parameterizedHeaders ParameterizedHeaders { get; set; } -#endif - /// The parent property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.MultiPart? Parent { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.MultiPart Parent { get; set; } -#endif - /// The providers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.BodyPart_providers? Providers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.BodyPart_providers Providers { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public BodyPart() - { - 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::NinjaOne.Client.Models.BodyPart CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.BodyPart(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "contentDisposition", n => { ContentDisposition = n.GetObjectValue(global::NinjaOne.Client.Models.BodyPart_contentDisposition.CreateFromDiscriminatorValue); } }, - { "entity", n => { Entity = n.GetObjectValue(global::NinjaOne.Client.Models.BodyPart_entity.CreateFromDiscriminatorValue); } }, - { "headers", n => { Headers = n.GetObjectValue(global::NinjaOne.Client.Models.BodyPart_headers.CreateFromDiscriminatorValue); } }, - { "mediaType", n => { MediaType = n.GetObjectValue(global::NinjaOne.Client.Models.BodyPart_mediaType.CreateFromDiscriminatorValue); } }, - { "messageBodyWorkers", n => { MessageBodyWorkers = n.GetObjectValue(global::NinjaOne.Client.Models.BodyPart_messageBodyWorkers.CreateFromDiscriminatorValue); } }, - { "parameterizedHeaders", n => { ParameterizedHeaders = n.GetObjectValue(global::NinjaOne.Client.Models.BodyPart_parameterizedHeaders.CreateFromDiscriminatorValue); } }, - { "parent", n => { Parent = n.GetObjectValue(global::NinjaOne.Client.Models.MultiPart.CreateFromDiscriminatorValue); } }, - { "providers", n => { Providers = n.GetObjectValue(global::NinjaOne.Client.Models.BodyPart_providers.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("contentDisposition", ContentDisposition); - writer.WriteObjectValue("entity", Entity); - writer.WriteObjectValue("headers", Headers); - writer.WriteObjectValue("mediaType", MediaType); - writer.WriteObjectValue("messageBodyWorkers", MessageBodyWorkers); - writer.WriteObjectValue("parameterizedHeaders", ParameterizedHeaders); - writer.WriteObjectValue("parent", Parent); - writer.WriteObjectValue("providers", Providers); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/BodyPart_contentDisposition.cs b/Models/BodyPart_contentDisposition.cs deleted file mode 100644 index 9f01a23..0000000 --- a/Models/BodyPart_contentDisposition.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class BodyPart_contentDisposition : 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 creationDate property - public DateTimeOffset? CreationDate { get; set; } - /// The fileName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileName { get; set; } -#nullable restore -#else - public string FileName { get; set; } -#endif - /// The modificationDate property - public DateTimeOffset? ModificationDate { get; set; } - /// The parameters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.BodyPart_contentDisposition_parameters? Parameters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.BodyPart_contentDisposition_parameters Parameters { get; set; } -#endif - /// The readDate property - public DateTimeOffset? ReadDate { get; set; } - /// The size property - public long? Size { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public BodyPart_contentDisposition() - { - 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::NinjaOne.Client.Models.BodyPart_contentDisposition CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.BodyPart_contentDisposition(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "creationDate", n => { CreationDate = n.GetDateTimeOffsetValue(); } }, - { "fileName", n => { FileName = n.GetStringValue(); } }, - { "modificationDate", n => { ModificationDate = n.GetDateTimeOffsetValue(); } }, - { "parameters", n => { Parameters = n.GetObjectValue(global::NinjaOne.Client.Models.BodyPart_contentDisposition_parameters.CreateFromDiscriminatorValue); } }, - { "readDate", n => { ReadDate = n.GetDateTimeOffsetValue(); } }, - { "size", n => { Size = n.GetLongValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDateTimeOffsetValue("creationDate", CreationDate); - writer.WriteStringValue("fileName", FileName); - writer.WriteDateTimeOffsetValue("modificationDate", ModificationDate); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteDateTimeOffsetValue("readDate", ReadDate); - writer.WriteLongValue("size", Size); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/BodyPart_contentDisposition_parameters.cs b/Models/BodyPart_contentDisposition_parameters.cs deleted file mode 100644 index 721874d..0000000 --- a/Models/BodyPart_contentDisposition_parameters.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class BodyPart_contentDisposition_parameters : 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. - /// - public BodyPart_contentDisposition_parameters() - { - 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::NinjaOne.Client.Models.BodyPart_contentDisposition_parameters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.BodyPart_contentDisposition_parameters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/BodyPart_entity.cs b/Models/BodyPart_entity.cs deleted file mode 100644 index a0db315..0000000 --- a/Models/BodyPart_entity.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class BodyPart_entity : 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. - /// - public BodyPart_entity() - { - 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::NinjaOne.Client.Models.BodyPart_entity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.BodyPart_entity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/BodyPart_headers.cs b/Models/BodyPart_headers.cs deleted file mode 100644 index ca4e785..0000000 --- a/Models/BodyPart_headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class BodyPart_headers : 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. - /// - public BodyPart_headers() - { - 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::NinjaOne.Client.Models.BodyPart_headers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.BodyPart_headers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/BodyPart_mediaType.cs b/Models/BodyPart_mediaType.cs deleted file mode 100644 index b14a647..0000000 --- a/Models/BodyPart_mediaType.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class BodyPart_mediaType : 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 parameters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.BodyPart_mediaType_parameters? Parameters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.BodyPart_mediaType_parameters Parameters { get; set; } -#endif - /// The subtype property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subtype { get; set; } -#nullable restore -#else - public string Subtype { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// The wildcardSubtype property - public bool? WildcardSubtype { get; set; } - /// The wildcardType property - public bool? WildcardType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public BodyPart_mediaType() - { - 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::NinjaOne.Client.Models.BodyPart_mediaType CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.BodyPart_mediaType(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "parameters", n => { Parameters = n.GetObjectValue(global::NinjaOne.Client.Models.BodyPart_mediaType_parameters.CreateFromDiscriminatorValue); } }, - { "subtype", n => { Subtype = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - { "wildcardSubtype", n => { WildcardSubtype = n.GetBoolValue(); } }, - { "wildcardType", n => { WildcardType = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteStringValue("subtype", Subtype); - writer.WriteStringValue("type", Type); - writer.WriteBoolValue("wildcardSubtype", WildcardSubtype); - writer.WriteBoolValue("wildcardType", WildcardType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/BodyPart_mediaType_parameters.cs b/Models/BodyPart_mediaType_parameters.cs deleted file mode 100644 index 26808f3..0000000 --- a/Models/BodyPart_mediaType_parameters.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class BodyPart_mediaType_parameters : 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. - /// - public BodyPart_mediaType_parameters() - { - 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::NinjaOne.Client.Models.BodyPart_mediaType_parameters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.BodyPart_mediaType_parameters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/BodyPart_messageBodyWorkers.cs b/Models/BodyPart_messageBodyWorkers.cs deleted file mode 100644 index 7288057..0000000 --- a/Models/BodyPart_messageBodyWorkers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class BodyPart_messageBodyWorkers : 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. - /// - public BodyPart_messageBodyWorkers() - { - 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::NinjaOne.Client.Models.BodyPart_messageBodyWorkers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.BodyPart_messageBodyWorkers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/BodyPart_parameterizedHeaders.cs b/Models/BodyPart_parameterizedHeaders.cs deleted file mode 100644 index 66fb079..0000000 --- a/Models/BodyPart_parameterizedHeaders.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class BodyPart_parameterizedHeaders : 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. - /// - public BodyPart_parameterizedHeaders() - { - 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::NinjaOne.Client.Models.BodyPart_parameterizedHeaders CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.BodyPart_parameterizedHeaders(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/BodyPart_providers.cs b/Models/BodyPart_providers.cs deleted file mode 100644 index 819d5c2..0000000 --- a/Models/BodyPart_providers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class BodyPart_providers : 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. - /// - public BodyPart_providers() - { - 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::NinjaOne.Client.Models.BodyPart_providers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.BodyPart_providers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/MultiPart.cs b/Models/MultiPart.cs deleted file mode 100644 index 52b679d..0000000 --- a/Models/MultiPart.cs +++ /dev/null @@ -1,145 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class MultiPart : 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 bodyParts property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? BodyParts { get; set; } -#nullable restore -#else - public List BodyParts { get; set; } -#endif - /// The contentDisposition property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.MultiPart_contentDisposition? ContentDisposition { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.MultiPart_contentDisposition ContentDisposition { get; set; } -#endif - /// The entity property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.MultiPart_entity? Entity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.MultiPart_entity Entity { get; set; } -#endif - /// The headers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.MultiPart_headers? Headers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.MultiPart_headers Headers { get; set; } -#endif - /// The mediaType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.MultiPart_mediaType? MediaType { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.MultiPart_mediaType MediaType { get; set; } -#endif - /// The messageBodyWorkers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.MultiPart_messageBodyWorkers? MessageBodyWorkers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.MultiPart_messageBodyWorkers MessageBodyWorkers { get; set; } -#endif - /// The parameterizedHeaders property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.MultiPart_parameterizedHeaders? ParameterizedHeaders { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.MultiPart_parameterizedHeaders ParameterizedHeaders { get; set; } -#endif - /// The parent property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.MultiPart? Parent { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.MultiPart Parent { get; set; } -#endif - /// The providers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.MultiPart_providers? Providers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.MultiPart_providers Providers { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public MultiPart() - { - 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::NinjaOne.Client.Models.MultiPart CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.MultiPart(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "bodyParts", n => { BodyParts = n.GetCollectionOfObjectValues(global::NinjaOne.Client.Models.BodyPart.CreateFromDiscriminatorValue)?.AsList(); } }, - { "contentDisposition", n => { ContentDisposition = n.GetObjectValue(global::NinjaOne.Client.Models.MultiPart_contentDisposition.CreateFromDiscriminatorValue); } }, - { "entity", n => { Entity = n.GetObjectValue(global::NinjaOne.Client.Models.MultiPart_entity.CreateFromDiscriminatorValue); } }, - { "headers", n => { Headers = n.GetObjectValue(global::NinjaOne.Client.Models.MultiPart_headers.CreateFromDiscriminatorValue); } }, - { "mediaType", n => { MediaType = n.GetObjectValue(global::NinjaOne.Client.Models.MultiPart_mediaType.CreateFromDiscriminatorValue); } }, - { "messageBodyWorkers", n => { MessageBodyWorkers = n.GetObjectValue(global::NinjaOne.Client.Models.MultiPart_messageBodyWorkers.CreateFromDiscriminatorValue); } }, - { "parameterizedHeaders", n => { ParameterizedHeaders = n.GetObjectValue(global::NinjaOne.Client.Models.MultiPart_parameterizedHeaders.CreateFromDiscriminatorValue); } }, - { "parent", n => { Parent = n.GetObjectValue(global::NinjaOne.Client.Models.MultiPart.CreateFromDiscriminatorValue); } }, - { "providers", n => { Providers = n.GetObjectValue(global::NinjaOne.Client.Models.MultiPart_providers.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("bodyParts", BodyParts); - writer.WriteObjectValue("contentDisposition", ContentDisposition); - writer.WriteObjectValue("entity", Entity); - writer.WriteObjectValue("headers", Headers); - writer.WriteObjectValue("mediaType", MediaType); - writer.WriteObjectValue("messageBodyWorkers", MessageBodyWorkers); - writer.WriteObjectValue("parameterizedHeaders", ParameterizedHeaders); - writer.WriteObjectValue("parent", Parent); - writer.WriteObjectValue("providers", Providers); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/MultiPart_contentDisposition.cs b/Models/MultiPart_contentDisposition.cs deleted file mode 100644 index f9416af..0000000 --- a/Models/MultiPart_contentDisposition.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class MultiPart_contentDisposition : 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 creationDate property - public DateTimeOffset? CreationDate { get; set; } - /// The fileName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileName { get; set; } -#nullable restore -#else - public string FileName { get; set; } -#endif - /// The modificationDate property - public DateTimeOffset? ModificationDate { get; set; } - /// The parameters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.MultiPart_contentDisposition_parameters? Parameters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.MultiPart_contentDisposition_parameters Parameters { get; set; } -#endif - /// The readDate property - public DateTimeOffset? ReadDate { get; set; } - /// The size property - public long? Size { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public MultiPart_contentDisposition() - { - 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::NinjaOne.Client.Models.MultiPart_contentDisposition CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.MultiPart_contentDisposition(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "creationDate", n => { CreationDate = n.GetDateTimeOffsetValue(); } }, - { "fileName", n => { FileName = n.GetStringValue(); } }, - { "modificationDate", n => { ModificationDate = n.GetDateTimeOffsetValue(); } }, - { "parameters", n => { Parameters = n.GetObjectValue(global::NinjaOne.Client.Models.MultiPart_contentDisposition_parameters.CreateFromDiscriminatorValue); } }, - { "readDate", n => { ReadDate = n.GetDateTimeOffsetValue(); } }, - { "size", n => { Size = n.GetLongValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDateTimeOffsetValue("creationDate", CreationDate); - writer.WriteStringValue("fileName", FileName); - writer.WriteDateTimeOffsetValue("modificationDate", ModificationDate); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteDateTimeOffsetValue("readDate", ReadDate); - writer.WriteLongValue("size", Size); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/MultiPart_contentDisposition_parameters.cs b/Models/MultiPart_contentDisposition_parameters.cs deleted file mode 100644 index af5909c..0000000 --- a/Models/MultiPart_contentDisposition_parameters.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class MultiPart_contentDisposition_parameters : 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. - /// - public MultiPart_contentDisposition_parameters() - { - 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::NinjaOne.Client.Models.MultiPart_contentDisposition_parameters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.MultiPart_contentDisposition_parameters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/MultiPart_entity.cs b/Models/MultiPart_entity.cs deleted file mode 100644 index 165dea4..0000000 --- a/Models/MultiPart_entity.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class MultiPart_entity : 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. - /// - public MultiPart_entity() - { - 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::NinjaOne.Client.Models.MultiPart_entity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.MultiPart_entity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/MultiPart_headers.cs b/Models/MultiPart_headers.cs deleted file mode 100644 index e8373aa..0000000 --- a/Models/MultiPart_headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class MultiPart_headers : 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. - /// - public MultiPart_headers() - { - 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::NinjaOne.Client.Models.MultiPart_headers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.MultiPart_headers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/MultiPart_mediaType.cs b/Models/MultiPart_mediaType.cs deleted file mode 100644 index ca3148b..0000000 --- a/Models/MultiPart_mediaType.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class MultiPart_mediaType : 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 parameters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.MultiPart_mediaType_parameters? Parameters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.MultiPart_mediaType_parameters Parameters { get; set; } -#endif - /// The subtype property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subtype { get; set; } -#nullable restore -#else - public string Subtype { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// The wildcardSubtype property - public bool? WildcardSubtype { get; set; } - /// The wildcardType property - public bool? WildcardType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public MultiPart_mediaType() - { - 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::NinjaOne.Client.Models.MultiPart_mediaType CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.MultiPart_mediaType(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "parameters", n => { Parameters = n.GetObjectValue(global::NinjaOne.Client.Models.MultiPart_mediaType_parameters.CreateFromDiscriminatorValue); } }, - { "subtype", n => { Subtype = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - { "wildcardSubtype", n => { WildcardSubtype = n.GetBoolValue(); } }, - { "wildcardType", n => { WildcardType = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteStringValue("subtype", Subtype); - writer.WriteStringValue("type", Type); - writer.WriteBoolValue("wildcardSubtype", WildcardSubtype); - writer.WriteBoolValue("wildcardType", WildcardType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/MultiPart_mediaType_parameters.cs b/Models/MultiPart_mediaType_parameters.cs deleted file mode 100644 index 2a9e908..0000000 --- a/Models/MultiPart_mediaType_parameters.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class MultiPart_mediaType_parameters : 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. - /// - public MultiPart_mediaType_parameters() - { - 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::NinjaOne.Client.Models.MultiPart_mediaType_parameters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.MultiPart_mediaType_parameters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/MultiPart_messageBodyWorkers.cs b/Models/MultiPart_messageBodyWorkers.cs deleted file mode 100644 index 3c0a559..0000000 --- a/Models/MultiPart_messageBodyWorkers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class MultiPart_messageBodyWorkers : 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. - /// - public MultiPart_messageBodyWorkers() - { - 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::NinjaOne.Client.Models.MultiPart_messageBodyWorkers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.MultiPart_messageBodyWorkers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/MultiPart_parameterizedHeaders.cs b/Models/MultiPart_parameterizedHeaders.cs deleted file mode 100644 index fd2d3fa..0000000 --- a/Models/MultiPart_parameterizedHeaders.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class MultiPart_parameterizedHeaders : 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. - /// - public MultiPart_parameterizedHeaders() - { - 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::NinjaOne.Client.Models.MultiPart_parameterizedHeaders CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.MultiPart_parameterizedHeaders(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/Models/MultiPart_providers.cs b/Models/MultiPart_providers.cs deleted file mode 100644 index 98b445d..0000000 --- a/Models/MultiPart_providers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class MultiPart_providers : 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. - /// - public MultiPart_providers() - { - 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::NinjaOne.Client.Models.MultiPart_providers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.Models.MultiPart_providers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/NinjaOne.Client.csproj b/NinjaOne.Client.csproj index 3482e66..dd3c15a 100644 --- a/NinjaOne.Client.csproj +++ b/NinjaOne.Client.csproj @@ -5,8 +5,13 @@ net10.0 enable enable + NinjaOne.Client + + + + diff --git a/NinjaOneClient.cs b/NinjaOneClient.cs deleted file mode 100644 index c2966e6..0000000 --- a/NinjaOneClient.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Serialization.Form; -using Microsoft.Kiota.Serialization.Json; -using Microsoft.Kiota.Serialization.Multipart; -using Microsoft.Kiota.Serialization.Text; -using NinjaOne.Client.V2; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client -{ - /// - /// The main entry point of the SDK, exposes the configuration and the fluent API. - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class NinjaOneClient : BaseRequestBuilder - { - /// The v2 property - public global::NinjaOne.Client.V2.V2RequestBuilder V2 - { - get => new global::NinjaOne.Client.V2.V2RequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// The request adapter to use to execute the requests. - public NinjaOneClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary()) - { - ApiClientBuilder.RegisterDefaultSerializer(); - ApiClientBuilder.RegisterDefaultSerializer(); - ApiClientBuilder.RegisterDefaultSerializer(); - ApiClientBuilder.RegisterDefaultSerializer(); - ApiClientBuilder.RegisterDefaultDeserializer(); - ApiClientBuilder.RegisterDefaultDeserializer(); - ApiClientBuilder.RegisterDefaultDeserializer(); - } - } -} -#pragma warning restore CS0618 diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..fc7a19b --- /dev/null +++ b/Program.cs @@ -0,0 +1,13 @@ +using System; + +namespace NinjaOne.Client +{ + internal class Program + { + private static void Main(string[] args) + { + // SDK generated under the `NinjaRmm` folder. This console is intentionally empty. + Console.WriteLine("NinjaRMM SDK generated. See the NinjaRmm folder."); + } + } +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..4124e45 --- /dev/null +++ b/README.md @@ -0,0 +1,160 @@ +# NinjaOne Client SDK for .NET + +A .NET 10 SDK generated with [Kiota](https://github.com/microsoft/kiota) from the NinjaOne API v2 OpenAPI description. The SDK is published to GitHub Packages and includes a thin console host only to facilitate packaging; the SDK surface lives under the generated `Sdk` folder when built in CI. + +## Table of contents +- [Prerequisites](#prerequisites) +- [Installation](#installation) +- [Getting started](#getting-started) +- [Authentication](#authentication) +- [Examples](#examples) +- [Configuration](#configuration) +- [Regenerating the SDK](#regenerating-the-sdk) +- [CI/CD](#cicd) +- [Contributing](#contributing) +- [Troubleshooting](#troubleshooting) +- [License](#license) + +## Prerequisites +- .NET 10 SDK (the project targets `net10.0`). +- Access to the NinjaOne API v2 and credentials (API keys/secret) as provided by NinjaOne. +- GitHub access token with `read:packages` scope to restore from GitHub Packages. + +## Installation +1) Add the GitHub Packages feed: + ```bash + dotnet nuget add source "https://nuget.pkg.github.com/BezaluLLC/index.json" \ + --name BezaluLLC \ + --username YOUR_GITHUB_USERNAME \ + --password YOUR_TOKEN \ + --store-password-in-clear-text + ``` +2) Add the package to your project (package ID defaults to the project name, `NinjaOne.Client`): + ```bash + dotnet add package NinjaOne.Client + ``` + +## Getting started +Create the client using Kiota’s request adapter and call the generated request builders. The SDK is generated into the `Sdk` folder at build time, exposing a strongly typed `NinjaOneClient` entry point. + +```csharp +using System.Net.Http; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; +using Microsoft.Kiota.Serialization.Json; +using NinjaOne.Client; + +// Example: API key style authentication header (adjust for your auth scheme) +var apiKey = Environment.GetEnvironmentVariable("NINJAONE_API_KEY")!; +var apiSecret = Environment.GetEnvironmentVariable("NINJAONE_API_SECRET")!; +var basicToken = Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes($"{apiKey}:{apiSecret}")); + +var authProvider = new AnonymousAuthenticationProvider(); +var adapter = new HttpClientRequestAdapter( + authProvider, + httpClient: new HttpClient(), + serializationWriterFactory: new KiotaJsonSerializationWriterFactory(), + parseNodeFactory: new KiotaJsonParseNodeFactory()); + +// Attach auth header globally +adapter.BaseHeaders.Add("Authorization", $"Basic {basicToken}"); + +var client = new NinjaOneClient(adapter); + +// Replace with actual resource paths from the generated SDK (IntelliSense friendly) +var devices = await client.Devices.GetAsync(); +Console.WriteLine($"Devices returned: {devices?.Value?.Count ?? 0}"); +``` + +> Note: Resource names and request builder paths are generated from the OpenAPI description. Use IntelliSense/metadata in `Sdk/` to discover available operations, query parameters, and models. + +## Authentication +The NinjaOne API currently uses Basic credentials derived from API key and secret. If your account uses a different scheme, implement an `IAuthenticationProvider` and pass it to the request adapter: + +```csharp +public sealed class NinjaOneAuthProvider : IAuthenticationProvider +{ + private readonly string _apiKey; + private readonly string _apiSecret; + + public NinjaOneAuthProvider(string apiKey, string apiSecret) + { + _apiKey = apiKey; + _apiSecret = apiSecret; + } + + public Task AuthenticateRequestAsync(RequestInformation request, Dictionary? additionalAuthenticationContext = null, CancellationToken cancellationToken = default) + { + var token = Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes($"{_apiKey}:{_apiSecret}")); + request.Headers.Authorization = new("Basic", token); + return Task.CompletedTask; + } +} +``` + +Swap `AnonymousAuthenticationProvider` in the sample above with an instance of your auth provider. + +## Examples +- **List resources:** + ```csharp + var result = await client.Devices.GetAsync(q => + { + q.QueryParameters.Top = 50; + q.QueryParameters.Filter = "status eq 'active'"; + }); + ``` +- **Create or update:** + ```csharp + var created = await client.Devices.PostAsync(new Device + { + Name = "example-device", + // set other properties per model definitions + }); + ``` +- **Error handling:** Kiota throws `ApiException` on non-success responses. Inspect `StatusCode`, `ResponseHeaders`, and `ResponseBody` for details. + +> The actual operations and models depend on the OpenAPI spec. Use IntelliSense or browse the generated `Sdk` folder for concrete names. + +## Configuration +- **Base URL:** The adapter defaults to the server URL defined in the OpenAPI description (`https://app.ninjarmm.com`). Override with `adapter.BaseUrl = "https://";` if needed. +- **HTTP pipeline:** Customize the underlying `HttpClient` (timeouts, proxy, retry handlers, logging) and pass it into `HttpClientRequestAdapter`. +- **Serialization:** JSON is enabled via `KiotaJsonSerializationWriterFactory`. Add XML/other formats by providing additional factories if the API supports them. + +## Regenerating the SDK +Use the Kiota CLI (installed as a .NET global tool) to regenerate from the published OpenAPI document: + +```bash +# Install (once) +dotnet tool install --global Microsoft.OpenApi.Kiota + +# Regenerate +kiota generate \ + --language CSharp \ + --openapi https://app.ninjarmm.com/apidocs/NinjaRMM-API-v2.json \ + --class-name NinjaOneClient \ + --namespace-name NinjaOne.Client \ + --output ./Sdk \ + --clean-output \ + --ll warning +``` + +After regeneration, run `dotnet build` to validate, then `dotnet pack` to produce the NuGet package. + +## CI/CD +- `.github/workflows/nuget_publish.yml` regenerates the SDK with Kiota on every `v*` tag, builds, packs, and pushes to GitHub Packages. +- To add README generation: Kiota currently does not emit README files automatically. Keep this README maintained by hand, or script a template step before `dotnet pack` if desired. +- Provide `NUGET_AUTH_TOKEN`/`GITHUB_TOKEN` secrets in the workflow for publishing. + +## Contributing +1. Make changes/regenerate the SDK. +2. Run `dotnet build`. +3. Add/update tests if present. +4. Submit a PR. Tag a release (`vX.Y.Z`) to publish a package. + +## Troubleshooting +- **401/403:** Verify API key/secret and ensure the Authorization header matches the expected scheme. +- **Serialization errors:** Ensure models align with the API response; regenerate if the upstream spec changed. +- **Missing operations:** The SDK mirrors the OpenAPI document. If an endpoint is absent, confirm it exists in `NinjaRMM-API-v2.json`. + +## License +This project is licensed under the terms of the LICENSE.txt in this repository. diff --git a/V2/Activities/Activities4XXError.cs b/V2/Activities/Activities4XXError.cs deleted file mode 100644 index a73ef3d..0000000 --- a/V2/Activities/Activities4XXError.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Activities -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Activities4XXError : ApiException, IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The activities property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Activities { get; set; } -#nullable restore -#else - public List Activities { get; set; } -#endif - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Last recorded activity ID for account - public long? LastActivityId { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// - /// Instantiates a new and sets the default values. - /// - public Activities4XXError() - { - 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::NinjaOne.Client.V2.Activities.Activities4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Activities.Activities4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "activities", n => { Activities = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Activities.Activities4XXError_activities.CreateFromDiscriminatorValue)?.AsList(); } }, - { "lastActivityId", n => { LastActivityId = n.GetLongValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("activities", Activities); - writer.WriteLongValue("lastActivityId", LastActivityId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Activities/Activities4XXError_activities.cs b/V2/Activities/Activities4XXError_activities.cs deleted file mode 100644 index c0fcf1f..0000000 --- a/V2/Activities/Activities4XXError_activities.cs +++ /dev/null @@ -1,159 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Activities -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Activities4XXError_activities : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Activity result - public global::NinjaOne.Client.V2.Activities.Activities4XXError_activities_activityResult? ActivityResult { get; set; } - /// Activity timestamp - public double? ActivityTime { get; set; } - /// Activity type code - public global::NinjaOne.Client.V2.Activities.Activities4XXError_activities_activityType? ActivityType { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Activity data -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Activities.Activities4XXError_activities_data? Data { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Activities.Activities4XXError_activities_data Data { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// Activity identifier - public long? Id { get; set; } - /// Activity message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Message { get; set; } -#nullable restore -#else - public string Message { get; set; } -#endif - /// Priority - public global::NinjaOne.Client.V2.Activities.Activities4XXError_activities_priority? Priority { get; set; } - /// Activity series UID (job/condition UID) - public Guid? SeriesUid { get; set; } - /// Severity - public global::NinjaOne.Client.V2.Activities.Activities4XXError_activities_severity? Severity { get; set; } - /// Source configuration/policy element reference - public Guid? SourceConfigUid { get; set; } - /// Source configuration/policy element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SourceName { get; set; } -#nullable restore -#else - public string SourceName { get; set; } -#endif - /// Status description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Activity status code - public global::NinjaOne.Client.V2.Activities.Activities4XXError_activities_statusCode? StatusCode { get; set; } - /// Activity subject -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subject { get; set; } -#nullable restore -#else - public string Subject { get; set; } -#endif - /// Activity type description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// User identifier - public int? UserId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Activities4XXError_activities() - { - 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::NinjaOne.Client.V2.Activities.Activities4XXError_activities CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Activities.Activities4XXError_activities(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "activityResult", n => { ActivityResult = n.GetEnumValue(); } }, - { "activityTime", n => { ActivityTime = n.GetDoubleValue(); } }, - { "activityType", n => { ActivityType = n.GetEnumValue(); } }, - { "data", n => { Data = n.GetObjectValue(global::NinjaOne.Client.V2.Activities.Activities4XXError_activities_data.CreateFromDiscriminatorValue); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetLongValue(); } }, - { "message", n => { Message = n.GetStringValue(); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "seriesUid", n => { SeriesUid = n.GetGuidValue(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - { "sourceConfigUid", n => { SourceConfigUid = n.GetGuidValue(); } }, - { "sourceName", n => { SourceName = n.GetStringValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "statusCode", n => { StatusCode = n.GetEnumValue(); } }, - { "subject", n => { Subject = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - { "userId", n => { UserId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("activityResult", ActivityResult); - writer.WriteDoubleValue("activityTime", ActivityTime); - writer.WriteEnumValue("activityType", ActivityType); - writer.WriteObjectValue("data", Data); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteLongValue("id", Id); - writer.WriteStringValue("message", Message); - writer.WriteEnumValue("priority", Priority); - writer.WriteGuidValue("seriesUid", SeriesUid); - writer.WriteEnumValue("severity", Severity); - writer.WriteGuidValue("sourceConfigUid", SourceConfigUid); - writer.WriteStringValue("sourceName", SourceName); - writer.WriteStringValue("status", Status); - writer.WriteEnumValue("statusCode", StatusCode); - writer.WriteStringValue("subject", Subject); - writer.WriteStringValue("type", Type); - writer.WriteIntValue("userId", UserId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Activities/Activities4XXError_activities_activityResult.cs b/V2/Activities/Activities4XXError_activities_activityResult.cs deleted file mode 100644 index 5cee7b5..0000000 --- a/V2/Activities/Activities4XXError_activities_activityResult.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Activities -{ - /// Activity result - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities4XXError_activities_activityResult - { - [EnumMember(Value = "SUCCESS")] - #pragma warning disable CS1591 - SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILURE")] - #pragma warning disable CS1591 - FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "UNSUPPORTED")] - #pragma warning disable CS1591 - UNSUPPORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNCOMPLETED")] - #pragma warning disable CS1591 - UNCOMPLETED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Activities/Activities4XXError_activities_activityType.cs b/V2/Activities/Activities4XXError_activities_activityType.cs deleted file mode 100644 index fb12c43..0000000 --- a/V2/Activities/Activities4XXError_activities_activityType.cs +++ /dev/null @@ -1,163 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Activities -{ - /// Activity type code - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities4XXError_activities_activityType - { - [EnumMember(Value = "ACTIONSET")] - #pragma warning disable CS1591 - ACTIONSET, - #pragma warning restore CS1591 - [EnumMember(Value = "ACTION")] - #pragma warning disable CS1591 - ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION")] - #pragma warning disable CS1591 - CONDITION, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_ACTIONSET")] - #pragma warning disable CS1591 - CONDITION_ACTIONSET, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_ACTION")] - #pragma warning disable CS1591 - CONDITION_ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "ANTIVIRUS")] - #pragma warning disable CS1591 - ANTIVIRUS, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER")] - #pragma warning disable CS1591 - TEAMVIEWER, - #pragma warning restore CS1591 - [EnumMember(Value = "MONITOR")] - #pragma warning disable CS1591 - MONITOR, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "COMMENT")] - #pragma warning disable CS1591 - COMMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT")] - #pragma warning disable CS1591 - SHADOWPROTECT, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER")] - #pragma warning disable CS1591 - IMAGEMANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "HELP_REQUEST")] - #pragma warning disable CS1591 - HELP_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP")] - #pragma warning disable CS1591 - SPLASHTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY")] - #pragma warning disable CS1591 - CLOUDBERRY, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUP")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUP, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK")] - #pragma warning disable CS1591 - SCHEDULED_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP")] - #pragma warning disable CS1591 - RDP, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPTING")] - #pragma warning disable CS1591 - SCRIPTING, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURITY")] - #pragma warning disable CS1591 - SECURITY, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS")] - #pragma warning disable CS1591 - REMOTE_TOOLS, - #pragma warning restore CS1591 - [EnumMember(Value = "VIRTUALIZATION")] - #pragma warning disable CS1591 - VIRTUALIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA")] - #pragma warning disable CS1591 - PSA, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM")] - #pragma warning disable CS1591 - MDM, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_REMOTE")] - #pragma warning disable CS1591 - NINJA_REMOTE, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_QUICK_CONNECT")] - #pragma warning disable CS1591 - NINJA_QUICK_CONNECT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_NETWORK_DISCOVERY")] - #pragma warning disable CS1591 - NINJA_NETWORK_DISCOVERY, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP")] - #pragma warning disable CS1591 - NINJA_BACKUP, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING")] - #pragma warning disable CS1591 - NINJA_TICKETING, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM")] - #pragma warning disable CS1591 - RELATED_ITEM, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENTATION")] - #pragma warning disable CS1591 - DOCUMENTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MICROSOFT_INTUNE")] - #pragma warning disable CS1591 - MICROSOFT_INTUNE, - #pragma warning restore CS1591 - [EnumMember(Value = "DYNAMIC_POLICY")] - #pragma warning disable CS1591 - DYNAMIC_POLICY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Activities/Activities4XXError_activities_data.cs b/V2/Activities/Activities4XXError_activities_data.cs deleted file mode 100644 index 55e3c44..0000000 --- a/V2/Activities/Activities4XXError_activities_data.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Activities -{ - /// - /// Activity data - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Activities4XXError_activities_data : 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. - /// - public Activities4XXError_activities_data() - { - 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::NinjaOne.Client.V2.Activities.Activities4XXError_activities_data CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Activities.Activities4XXError_activities_data(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Activities/Activities4XXError_activities_priority.cs b/V2/Activities/Activities4XXError_activities_priority.cs deleted file mode 100644 index faacff8..0000000 --- a/V2/Activities/Activities4XXError_activities_priority.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Activities -{ - /// Priority - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities4XXError_activities_priority - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Activities/Activities4XXError_activities_severity.cs b/V2/Activities/Activities4XXError_activities_severity.cs deleted file mode 100644 index 3b5473f..0000000 --- a/V2/Activities/Activities4XXError_activities_severity.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Activities -{ - /// Severity - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities4XXError_activities_severity - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Activities/Activities4XXError_activities_statusCode.cs b/V2/Activities/Activities4XXError_activities_statusCode.cs deleted file mode 100644 index 879b696..0000000 --- a/V2/Activities/Activities4XXError_activities_statusCode.cs +++ /dev/null @@ -1,2703 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Activities -{ - /// Activity status code - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities4XXError_activities_statusCode - { - [EnumMember(Value = "START_REQUESTED")] - #pragma warning disable CS1591 - START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "STARTED")] - #pragma warning disable CS1591 - STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_PROCESS")] - #pragma warning disable CS1591 - IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "COMPLETED")] - #pragma warning disable CS1591 - COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CANCEL_REQUESTED")] - #pragma warning disable CS1591 - CANCEL_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CANCELLED")] - #pragma warning disable CS1591 - CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "BLOCKED")] - #pragma warning disable CS1591 - BLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRIGGERED")] - #pragma warning disable CS1591 - TRIGGERED, - #pragma warning restore CS1591 - [EnumMember(Value = "RESET")] - #pragma warning disable CS1591 - RESET, - #pragma warning restore CS1591 - [EnumMember(Value = "ACKNOWLEDGED")] - #pragma warning disable CS1591 - ACKNOWLEDGED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISABLED")] - #pragma warning disable CS1591 - DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "EVALUATION_FAILURE")] - #pragma warning disable CS1591 - EVALUATION_FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CREATED")] - #pragma warning disable CS1591 - CLIENT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_UPDATED")] - #pragma warning disable CS1591 - CLIENT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DELETED")] - #pragma warning disable CS1591 - CLIENT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL_CREATED")] - #pragma warning disable CS1591 - CREDENTIAL_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL_UPDATED")] - #pragma warning disable CS1591 - CREDENTIAL_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL_DELETED")] - #pragma warning disable CS1591 - CREDENTIAL_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION_CREATED")] - #pragma warning disable CS1591 - LOCATION_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION_UPDATED")] - #pragma warning disable CS1591 - LOCATION_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION_DELETED")] - #pragma warning disable CS1591 - LOCATION_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "POLICY_CREATED")] - #pragma warning disable CS1591 - POLICY_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "POLICY_UPDATED")] - #pragma warning disable CS1591 - POLICY_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "POLICY_DELETED")] - #pragma warning disable CS1591 - POLICY_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_CREATED")] - #pragma warning disable CS1591 - NODE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_UPDATED")] - #pragma warning disable CS1591 - NODE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_DELETED")] - #pragma warning disable CS1591 - NODE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_RE_ENROLLED")] - #pragma warning disable CS1591 - NODE_RE_ENROLLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ACCESS_GRANTED")] - #pragma warning disable CS1591 - NODE_ACCESS_GRANTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ACCESS_DENIED")] - #pragma warning disable CS1591 - NODE_ACCESS_DENIED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_REGISTRATION_REJECTED")] - #pragma warning disable CS1591 - NODE_REGISTRATION_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_IDENTIFICATION_UPDATED")] - #pragma warning disable CS1591 - NODE_IDENTIFICATION_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_CLONING_DETECTED")] - #pragma warning disable CS1591 - NODE_CLONING_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_CLONE_ADVISED_TO_REGISTER")] - #pragma warning disable CS1591 - NODE_CLONE_ADVISED_TO_REGISTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MANUALLY_APPROVED")] - #pragma warning disable CS1591 - NODE_MANUALLY_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_AUTOMATICALLY_APPROVED")] - #pragma warning disable CS1591 - NODE_AUTOMATICALLY_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MANUALLY_REJECTED")] - #pragma warning disable CS1591 - NODE_MANUALLY_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_AUTOMATICALLY_REJECTED")] - #pragma warning disable CS1591 - NODE_AUTOMATICALLY_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECTED_NODE_CLEARED")] - #pragma warning disable CS1591 - REJECTED_NODE_CLEARED, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECTED_NODE_DELETED")] - #pragma warning disable CS1591 - REJECTED_NODE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "MOBILE_DEVICE_UNREGISTERED")] - #pragma warning disable CS1591 - MOBILE_DEVICE_UNREGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_CREATED")] - #pragma warning disable CS1591 - APP_USER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_UPDATED")] - #pragma warning disable CS1591 - APP_USER_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_DELETED")] - #pragma warning disable CS1591 - APP_USER_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_LOGGED_IN")] - #pragma warning disable CS1591 - APP_USER_LOGGED_IN, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_LOGGED_OUT")] - #pragma warning disable CS1591 - APP_USER_LOGGED_OUT, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_MFA_SETUP")] - #pragma warning disable CS1591 - APP_USER_MFA_SETUP, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_MFA_DELETED")] - #pragma warning disable CS1591 - APP_USER_MFA_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_CRITICAL_ACTION")] - #pragma warning disable CS1591 - APP_USER_CRITICAL_ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_AUDIT_FAILED_LOGIN")] - #pragma warning disable CS1591 - APP_USER_AUDIT_FAILED_LOGIN, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_AUTO_ASSIGN_CHANGED")] - #pragma warning disable CS1591 - APP_USER_AUTO_ASSIGN_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_CREATED")] - #pragma warning disable CS1591 - END_USER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_CREATED_API")] - #pragma warning disable CS1591 - END_USER_CREATED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_UPDATED")] - #pragma warning disable CS1591 - END_USER_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_UPDATED_API")] - #pragma warning disable CS1591 - END_USER_UPDATED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_DELETED")] - #pragma warning disable CS1591 - END_USER_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_DELETED_API")] - #pragma warning disable CS1591 - END_USER_DELETED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_LOGGED_IN")] - #pragma warning disable CS1591 - END_USER_LOGGED_IN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_LOGGED_OUT")] - #pragma warning disable CS1591 - END_USER_LOGGED_OUT, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_MFA_SETUP")] - #pragma warning disable CS1591 - END_USER_MFA_SETUP, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_MFA_DELETED")] - #pragma warning disable CS1591 - END_USER_MFA_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_AUDIT_FAILED_LOGIN")] - #pragma warning disable CS1591 - END_USER_AUDIT_FAILED_LOGIN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_CRITICAL_ACTION")] - #pragma warning disable CS1591 - END_USER_CRITICAL_ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_CREATED")] - #pragma warning disable CS1591 - CONTACT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_CREATED_API")] - #pragma warning disable CS1591 - CONTACT_CREATED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_UPDATED")] - #pragma warning disable CS1591 - CONTACT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_UPDATED_API")] - #pragma warning disable CS1591 - CONTACT_UPDATED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_DELETED")] - #pragma warning disable CS1591 - CONTACT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_DELETED_API")] - #pragma warning disable CS1591 - CONTACT_DELETED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_GROUP_CREATED")] - #pragma warning disable CS1591 - DEVICE_GROUP_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_GROUP_UPDATED")] - #pragma warning disable CS1591 - DEVICE_GROUP_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_GROUP_DELETED")] - #pragma warning disable CS1591 - DEVICE_GROUP_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "TICKET_TEMPLATE_CREATED")] - #pragma warning disable CS1591 - TICKET_TEMPLATE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TICKET_TEMPLATE_UPDATED")] - #pragma warning disable CS1591 - TICKET_TEMPLATE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TICKET_TEMPLATE_DELETED")] - #pragma warning disable CS1591 - TICKET_TEMPLATE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CUSTOM_HEALTH_STATUS_CHANGED")] - #pragma warning disable CS1591 - CUSTOM_HEALTH_STATUS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "CUSTOM_HEALTH_STATUS_RESET")] - #pragma warning disable CS1591 - CUSTOM_HEALTH_STATUS_RESET, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_CREATION_FAILED")] - #pragma warning disable CS1591 - PSA_TICKET_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_CREATION_SUCCEEDED")] - #pragma warning disable CS1591 - PSA_TICKET_CREATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "RESET_BY_PSA_TICKET_CALLBACK")] - #pragma warning disable CS1591 - RESET_BY_PSA_TICKET_CALLBACK, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_CREATION_TEST")] - #pragma warning disable CS1591 - PSA_TICKET_CREATION_TEST, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_ENABLED")] - #pragma warning disable CS1591 - PSA_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_DISABLED")] - #pragma warning disable CS1591 - PSA_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_CREDENTIALS_FAILED")] - #pragma warning disable CS1591 - PSA_CREDENTIALS_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_AGREEMENTS_SYNC_COMPLETED")] - #pragma warning disable CS1591 - CONNECTWISE_AGREEMENTS_SYNC_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_AGREEMENTS_SYNC_STARTED")] - #pragma warning disable CS1591 - CONNECTWISE_AGREEMENTS_SYNC_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_COMPLETED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_STARTED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_NODE_CREATED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_NODE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_NODE_UPDATED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_NODE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_NODE_DELETED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_NODE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_UPDATED")] - #pragma warning disable CS1591 - CONNECTWISE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISECONTROL_ATTEMPT")] - #pragma warning disable CS1591 - CONNECTWISECONTROL_ATTEMPT, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_STARTED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_COMPLETED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_NODE_CREATED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_NODE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_NODE_UPDATED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_NODE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_NODE_DELETED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_NODE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_UPDATED")] - #pragma warning disable CS1591 - AUTOTASK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_ATTACHMENT_FAILURE")] - #pragma warning disable CS1591 - AUTOTASK_ATTACHMENT_FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_UPDATED_FAILED")] - #pragma warning disable CS1591 - PSA_TICKET_UPDATED_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_UPDATED_SUCCEEDED")] - #pragma warning disable CS1591 - PSA_TICKET_UPDATED_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_CREATED")] - #pragma warning disable CS1591 - REPORT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_UPDATED")] - #pragma warning disable CS1591 - REPORT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_DELETED")] - #pragma warning disable CS1591 - REPORT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "TIME_ZONE_UPDATED")] - #pragma warning disable CS1591 - TIME_ZONE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "LANGUAGE_TAG_UPDATED")] - #pragma warning disable CS1591 - LANGUAGE_TAG_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ROLE_CREATED")] - #pragma warning disable CS1591 - NODE_ROLE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ROLE_UPDATED")] - #pragma warning disable CS1591 - NODE_ROLE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ROLE_DELETED")] - #pragma warning disable CS1591 - NODE_ROLE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "COMMENT")] - #pragma warning disable CS1591 - COMMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_INSTALLED")] - #pragma warning disable CS1591 - VIPREAV_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_INSTALL_FAILED")] - #pragma warning disable CS1591 - VIPREAV_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_UNINSTALLED")] - #pragma warning disable CS1591 - VIPREAV_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - VIPREAV_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_ACTIVEPROTECTION_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - VIPREAV_ACTIVEPROTECTION_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_USERINITIATED_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - VIPREAV_USERINITIATED_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_QUARANTINED_THREAT_REMOVED")] - #pragma warning disable CS1591 - VIPREAV_QUARANTINED_THREAT_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_REBOOT_REQUIRED")] - #pragma warning disable CS1591 - VIPREAV_REBOOT_REQUIRED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_STARTED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_COMPLETED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_ABORTED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_ABORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_FAILED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_PAUSED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_PAUSED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_DISABLED")] - #pragma warning disable CS1591 - VIPREAV_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "WEBROOT_COMMAND_SUBMITTED")] - #pragma warning disable CS1591 - WEBROOT_COMMAND_SUBMITTED, - #pragma warning restore CS1591 - [EnumMember(Value = "WEBROOT_THREAT_DETECTED")] - #pragma warning disable CS1591 - WEBROOT_THREAT_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "WEBROOT_INSTALL_FAILED")] - #pragma warning disable CS1591 - WEBROOT_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_SCAN_STARTED")] - #pragma warning disable CS1591 - BITDEFENDER_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_SCAN_COMPLETED")] - #pragma warning disable CS1591 - BITDEFENDER_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_THREAT_DELETE_FROM_QUARANTINE")] - #pragma warning disable CS1591 - BITDEFENDER_THREAT_DELETE_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_THREAT_RESTORE_FROM_QUARANTINE")] - #pragma warning disable CS1591 - BITDEFENDER_THREAT_RESTORE_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_SCAN_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_SCAN_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_THREAT_DELETE_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_THREAT_DELETE_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_THREAT_RESTORE_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_THREAT_RESTORE_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DOWNLOAD_STARTED")] - #pragma warning disable CS1591 - BITDEFENDER_DOWNLOAD_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DOWNLOAD_SUCCEEDED")] - #pragma warning disable CS1591 - BITDEFENDER_DOWNLOAD_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DOWNLOAD_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_DOWNLOAD_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_INSTALLATION_STARTED")] - #pragma warning disable CS1591 - BITDEFENDER_INSTALLATION_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_INSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - BITDEFENDER_INSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_INSTALLATION_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_INSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_UNINSTALLATION_STARTED")] - #pragma warning disable CS1591 - BITDEFENDER_UNINSTALLATION_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_UNINSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - BITDEFENDER_UNINSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_UNINSTALLATION_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_UNINSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_UNPACKING_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_UNPACKING_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_IGNORED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_IGNORED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_PRESENT")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_PRESENT, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_DELETED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_BLOCKED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_BLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_CLEANED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_CLEANED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_PURGE_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_PURGE_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_PURGE_QUARANTINE_SUCCESS")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_PURGE_QUARANTINE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_QUARANTINE_RESTORED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_QUARANTINE_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_QUARANTINE_RESTORED_CUSTOMPATH")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_QUARANTINE_RESTORED_CUSTOMPATH, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_QUARANTINE_DELETED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_QUARANTINE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_RETRY_INSTALL_COMPLETED")] - #pragma warning disable CS1591 - BITDEFENDER_RETRY_INSTALL_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DISABLED")] - #pragma warning disable CS1591 - BITDEFENDER_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_EXISTING_PRODUCT_UNINSTALL")] - #pragma warning disable CS1591 - BITDEFENDER_EXISTING_PRODUCT_UNINSTALL, - #pragma warning restore CS1591 - [EnumMember(Value = "COMPETITOR_EXISTING_PRODUCT_UNINSTALL")] - #pragma warning disable CS1591 - COMPETITOR_EXISTING_PRODUCT_UNINSTALL, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULE_INSTALL_OPTION_CHANGED")] - #pragma warning disable CS1591 - SCHEDULE_INSTALL_OPTION_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURITY_CREDENTIAL_ACCESS_GRANTED")] - #pragma warning disable CS1591 - SECURITY_CREDENTIAL_ACCESS_GRANTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURITY_CREDENTIAL_ACCESS_DENIED")] - #pragma warning disable CS1591 - SECURITY_CREDENTIAL_ACCESS_DENIED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_SCAN_STARTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_SCAN_COMPLETED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_APPLY_PATCH_STARTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_APPLY_PATCH_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_APPLY_PATCH_COMPLETED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_APPLY_PATCH_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_INSTALLED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_INSTALL_FAILED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_MESSAGE")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_MESSAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_FAILURE")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_ROLLBACK_PATCH_REQUESTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_ROLLBACK_PATCH_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_ROLLBACK_PATCH_STARTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_ROLLBACK_PATCH_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_ROLLBACK_PATCH_COMPLETED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_ROLLBACK_PATCH_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_PATCH_APPROVED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_PATCH_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_PATCH_REJECTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_PATCH_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_SCAN_STARTED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_SCAN_COMPLETED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_APPLY_PATCH_STARTED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_APPLY_PATCH_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_APPLY_PATCH_COMPLETED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_APPLY_PATCH_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_INSTALLED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_INSTALL_FAILED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_MESSAGE")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_MESSAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_PATCH_APPROVED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_PATCH_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_PATCH_REJECTED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_PATCH_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_INSTALLED")] - #pragma warning disable CS1591 - TEAMVIEWER_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_INSTALL_FAILED")] - #pragma warning disable CS1591 - TEAMVIEWER_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_UNINSTALLED")] - #pragma warning disable CS1591 - TEAMVIEWER_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - TEAMVIEWER_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONNECTION_ESTABLISHED")] - #pragma warning disable CS1591 - TEAMVIEWER_CONNECTION_ESTABLISHED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONNECTION_TERMINATED")] - #pragma warning disable CS1591 - TEAMVIEWER_CONNECTION_TERMINATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_PERMANENT_PASSWORD_CHANGED")] - #pragma warning disable CS1591 - TEAMVIEWER_PERMANENT_PASSWORD_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_ACCOUNTNAME_ADDED")] - #pragma warning disable CS1591 - TEAMVIEWER_ACCOUNTNAME_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_ACCOUNTNAME_CHANGED")] - #pragma warning disable CS1591 - TEAMVIEWER_ACCOUNTNAME_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_ACCOUNTNAME_REMOVED")] - #pragma warning disable CS1591 - TEAMVIEWER_ACCOUNTNAME_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONNECTION_CANCELLED")] - #pragma warning disable CS1591 - TEAMVIEWER_CONNECTION_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONFIG_CHANGED")] - #pragma warning disable CS1591 - TEAMVIEWER_CONFIG_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP_CONNECTION_INITIATED")] - #pragma warning disable CS1591 - SPLASHTOP_CONNECTION_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP_CONNECTION_ESTABLISHED")] - #pragma warning disable CS1591 - SPLASHTOP_CONNECTION_ESTABLISHED, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP_CONNECTION_TERMINATED")] - #pragma warning disable CS1591 - SPLASHTOP_CONNECTION_TERMINATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_UPLOAD_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_UPLOAD_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DOWNLOAD_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DOWNLOAD_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COMPRESS_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COMPRESS_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COMPRESS_FILE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COMPRESS_FILE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COMPRESS_FILE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COMPRESS_FILE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_DIRECTORY_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_DIRECTORY_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MODIFY_OBJECT_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MODIFY_OBJECT_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MODIFY_OBJECT_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MODIFY_OBJECT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COPY_OBJECT_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COPY_OBJECT_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COPY_OBJECT_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COPY_OBJECT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MOVE_OBJECT_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MOVE_OBJECT_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MOVE_OBJECT_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MOVE_OBJECT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_OBJECT_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_OBJECT_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_OBJECT_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_OBJECT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_DIRECTORY_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_DIRECTORY_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_DIRECTORY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_DIRECTORY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_FILE_TRANSFER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_FILE_TRANSFER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_FILE_TRANSFER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_FILE_TRANSFER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_SERVICE_CONTROL_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_SERVICE_CONTROL_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_START_SERVICE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_START_SERVICE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_START_SERVICE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_START_SERVICE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_STOP_SERVICE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_STOP_SERVICE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_STOP_SERVICE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_STOP_SERVICE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RESTART_SERVICE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RESTART_SERVICE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RESTART_SERVICE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RESTART_SERVICE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_START_TYPE_CHANGE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_START_TYPE_CHANGE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_START_TYPE_CHANGE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_START_TYPE_CHANGE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_PROCESS_CONTROL_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_PROCESS_CONTROL_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_SET_PROCESS_PRIORITY_SUCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_SET_PROCESS_PRIORITY_SUCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_SET_PROCESS_PRIORITY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_SET_PROCESS_PRIORITY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_TERMINATE_PROCESS_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_TERMINATE_PROCESS_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_TERMINATE_PROCESS_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_TERMINATE_PROCESS_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_TERMINATE_PROCESS_TREE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_TERMINATE_PROCESS_TREE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_TERMINATE_PROCESS_TREE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_TERMINATE_PROCESS_TREE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_REGISTRY_CONTROL_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_REGISTRY_CONTROL_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_KEY_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_KEY_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_KEY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_KEY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_KEY_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_KEY_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_KEY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_KEY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_KEY_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_KEY_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_KEY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_KEY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_PARAMETER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_PARAMETER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_PARAMETER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_PARAMETER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_PARAMETER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_PARAMETER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_PARAMETER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_PARAMETER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_PARAMETER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_PARAMETER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_PARAMETER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_PARAMETER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MODIFY_PARAMETER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MODIFY_PARAMETER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MODIFY_PARAMETER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MODIFY_PARAMETER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_ACTIVE_DIRECTORY_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_ACTIVE_DIRECTORY_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "ADAPTER_ADDED")] - #pragma warning disable CS1591 - ADAPTER_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "ADAPTER_REMOVED")] - #pragma warning disable CS1591 - ADAPTER_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "ADAPTER_CONFIG_CHANGED")] - #pragma warning disable CS1591 - ADAPTER_CONFIG_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "ADAPTER_STATUS_CHANGED")] - #pragma warning disable CS1591 - ADAPTER_STATUS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "CPU_ADDED")] - #pragma warning disable CS1591 - CPU_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CPU_REMOVED")] - #pragma warning disable CS1591 - CPU_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "MEMORY_ADDED")] - #pragma warning disable CS1591 - MEMORY_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "MEMORY_REMOVED")] - #pragma warning disable CS1591 - MEMORY_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_DRIVE_ADDED")] - #pragma warning disable CS1591 - DISK_DRIVE_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_DRIVE_REMOVED")] - #pragma warning disable CS1591 - DISK_DRIVE_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "USER_LOGGED_IN")] - #pragma warning disable CS1591 - USER_LOGGED_IN, - #pragma warning restore CS1591 - [EnumMember(Value = "USER_LOGGED_OUT")] - #pragma warning disable CS1591 - USER_LOGGED_OUT, - #pragma warning restore CS1591 - [EnumMember(Value = "PORT_OPENED")] - #pragma warning disable CS1591 - PORT_OPENED, - #pragma warning restore CS1591 - [EnumMember(Value = "PORT_CLOSED")] - #pragma warning disable CS1591 - PORT_CLOSED, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_SERVICE_STARTED")] - #pragma warning disable CS1591 - WINDOWS_SERVICE_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_SERVICE_STOPPED")] - #pragma warning disable CS1591 - WINDOWS_SERVICE_STOPPED, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_DAEMON_STARTED")] - #pragma warning disable CS1591 - MAC_DAEMON_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_DAEMON_STOPPED")] - #pragma warning disable CS1591 - MAC_DAEMON_STOPPED, - #pragma warning restore CS1591 - [EnumMember(Value = "USER_ACCOUNT_ADDED")] - #pragma warning disable CS1591 - USER_ACCOUNT_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "USER_ACCOUNT_REMOVED")] - #pragma warning disable CS1591 - USER_ACCOUNT_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "PROCESS_STARTED")] - #pragma warning disable CS1591 - PROCESS_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PROCESS_STOPPED")] - #pragma warning disable CS1591 - PROCESS_STOPPED, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM_REBOOTED")] - #pragma warning disable CS1591 - SYSTEM_REBOOTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_ADDED")] - #pragma warning disable CS1591 - SOFTWARE_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_REMOVED")] - #pragma warning disable CS1591 - SOFTWARE_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_UPDATED")] - #pragma warning disable CS1591 - SOFTWARE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_OS_UPDATED")] - #pragma warning disable CS1591 - SOFTWARE_OS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_PARTITION_ADDED")] - #pragma warning disable CS1591 - DISK_PARTITION_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_PARTITION_REMOVED")] - #pragma warning disable CS1591 - DISK_PARTITION_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_VOLUME_ADDED")] - #pragma warning disable CS1591 - DISK_VOLUME_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_VOLUME_REMOVED")] - #pragma warning disable CS1591 - DISK_VOLUME_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIALS_CHANGED")] - #pragma warning disable CS1591 - CREDENTIALS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_CONTROLLER_ADDED")] - #pragma warning disable CS1591 - RAID_CONTROLLER_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_CONTROLLER_REMOVED")] - #pragma warning disable CS1591 - RAID_CONTROLLER_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_PHYSICAL_DRIVE_ADDED")] - #pragma warning disable CS1591 - RAID_PHYSICAL_DRIVE_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_PHYSICAL_DRIVE_REMOVED")] - #pragma warning disable CS1591 - RAID_PHYSICAL_DRIVE_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_LOGICAL_DISK_ADDED")] - #pragma warning disable CS1591 - RAID_LOGICAL_DISK_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_LOGICAL_DISK_REMOVED")] - #pragma warning disable CS1591 - RAID_LOGICAL_DISK_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITLOCKER_ENABLED")] - #pragma warning disable CS1591 - BITLOCKER_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITLOCKER_DISABLED")] - #pragma warning disable CS1591 - BITLOCKER_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "FILEVAULT_ENABLED")] - #pragma warning disable CS1591 - FILEVAULT_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "FILEVAULT_DISABLED")] - #pragma warning disable CS1591 - FILEVAULT_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRUSTED_PLATFORM_MODULE_ENABLED")] - #pragma warning disable CS1591 - TRUSTED_PLATFORM_MODULE_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRUSTED_PLATFORM_MODULE_DISABLED")] - #pragma warning disable CS1591 - TRUSTED_PLATFORM_MODULE_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRUSTED_PLATFORM_MODULE_INSTALLED")] - #pragma warning disable CS1591 - TRUSTED_PLATFORM_MODULE_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRUSTED_PLATFORM_MODULE_UNINSTALLED")] - #pragma warning disable CS1591 - TRUSTED_PLATFORM_MODULE_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_INSTALLED")] - #pragma warning disable CS1591 - SHADOWPROTECT_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_INSTALL_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_UNINSTALLED")] - #pragma warning disable CS1591 - SHADOWPROTECT_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_ABORTED")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_ABORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_PROVISIONED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_PROVISIONED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_PROVISION_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_PROVISION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_ACTIVATED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_ACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_ACTIVATION_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_ACTIVATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_DEACTIVATED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_DEACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_DEACTIVATION_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_DEACTIVATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_INSTALLED")] - #pragma warning disable CS1591 - IMAGEMANAGER_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_INSTALL_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_UNINSTALLED")] - #pragma warning disable CS1591 - IMAGEMANAGER_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_PROVISIONED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_PROVISIONED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_PROVISION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_PROVISION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_ACTIVATED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_ACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_ACTIVATION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_ACTIVATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_DEACTIVATED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_DEACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_DEACTIVATION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_DEACTIVATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_CONSOLIDATION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_CONSOLIDATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_VERIFICATION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_VERIFICATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "HELP_REQUEST_SUBMITTED")] - #pragma warning disable CS1591 - HELP_REQUEST_SUBMITTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_INSTALLED")] - #pragma warning disable CS1591 - CLOUDBERRY_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_INSTALL_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_UNINSTALLED")] - #pragma warning disable CS1591 - CLOUDBERRY_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPPLAN_CREATED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPPLAN_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPPLAN_EDITED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPPLAN_EDITED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPPLAN_DELETED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPPLAN_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPPLAN_CREATION_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPPLAN_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPJOB_STARTED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPJOB_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPJOB_SUCCEEDED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPJOB_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPJOB_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPJOB_COMPLETED_WITH_WARNING")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPJOB_COMPLETED_WITH_WARNING, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_USER_CREATED")] - #pragma warning disable CS1591 - CLOUDBERRY_USER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_NETWORK_CREDENTIAL_CREATED")] - #pragma warning disable CS1591 - CLOUDBERRY_NETWORK_CREDENTIAL_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_NETWORK_CREDENTIAL_CREATION_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_NETWORK_CREDENTIAL_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP_CONNECTION_INITIATED")] - #pragma warning disable CS1591 - RDP_CONNECTION_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP_CONNECTION_ESTABLISHED")] - #pragma warning disable CS1591 - RDP_CONNECTION_ESTABLISHED, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP_CONNECTION_TERMINATED")] - #pragma warning disable CS1591 - RDP_CONNECTION_TERMINATED, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP_AUTO_PROVISION")] - #pragma warning disable CS1591 - RDP_AUTO_PROVISION, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK_CREATED")] - #pragma warning disable CS1591 - SCHEDULED_TASK_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK_UPDATED")] - #pragma warning disable CS1591 - SCHEDULED_TASK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK_DELETED")] - #pragma warning disable CS1591 - SCHEDULED_TASK_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT_CREATED")] - #pragma warning disable CS1591 - SCRIPT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT_UPDATED")] - #pragma warning disable CS1591 - SCRIPT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT_DELETED")] - #pragma warning disable CS1591 - SCRIPT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_START_REQUESTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_IN_PROCESS")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_START_REQUESTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_IN_PROCESS")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_COMPLETED_WITH_WARNING")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_COMPLETED_WITH_WARNING, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUP_DOWNLOADED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUP_DOWNLOADED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPPLAN_ADDED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPPLAN_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPPLAN_EDITED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPPLAN_EDITED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPPLAN_DELETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPPLAN_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_CANCELLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_PROCESSING")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_PROCESSING, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INSTALL_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INSTALLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UNINSTALLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_CANCELLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPPLAN_CREATION_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPPLAN_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUP_CONFIGURE_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUP_CONFIGURE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_FILE_DOWNLOAD")] - #pragma warning disable CS1591 - NINJA_BACKUP_FILE_DOWNLOAD, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_FOLDER_DOWNLOAD")] - #pragma warning disable CS1591 - NINJA_BACKUP_FOLDER_DOWNLOAD, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_START_REQUESTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_PROCESSING")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_PROCESSING, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_IN_PROCESS")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_CANCELLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUP_NAS_ACCESS_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUP_NAS_ACCESS_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_RESTORE_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_RESTORE_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_RESTORE_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_RESTORE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_RESTORE_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_RESTORE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_MOUNT_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_MOUNT_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_MOUNT_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_MOUNT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_START_REQUESTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_IN_PROCESS")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_CANCELLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BACKUP_IMAGE_RESTORE_CANCELED")] - #pragma warning disable CS1591 - BACKUP_IMAGE_RESTORE_CANCELED, - #pragma warning restore CS1591 - [EnumMember(Value = "BACKUP_IMAGE_DOWNLOAD_CANCELED")] - #pragma warning disable CS1591 - BACKUP_IMAGE_DOWNLOAD_CANCELED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_INVITATION_CREATED")] - #pragma warning disable CS1591 - QC_INVITATION_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_INVITATION_DISABLED")] - #pragma warning disable CS1591 - QC_INVITATION_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_EXPIRED_INVITATION_BLOCKED")] - #pragma warning disable CS1591 - QC_EXPIRED_INVITATION_BLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_INVITATION_UPDATED")] - #pragma warning disable CS1591 - QC_INVITATION_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_DEVICE_DELETED")] - #pragma warning disable CS1591 - QC_DEVICE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_DEVICE_AGENT_INSTALL_REQUESTED")] - #pragma warning disable CS1591 - QC_DEVICE_AGENT_INSTALL_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_SESSION_STARTED")] - #pragma warning disable CS1591 - QC_SESSION_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_SESSION_TERMINATED")] - #pragma warning disable CS1591 - QC_SESSION_TERMINATED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_SESSION_REPORT_SUBMITTED")] - #pragma warning disable CS1591 - QC_SESSION_REPORT_SUBMITTED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_SUPPORT_CREATED")] - #pragma warning disable CS1591 - REMOTE_SUPPORT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_SUPPORT_UPDATED")] - #pragma warning disable CS1591 - REMOTE_SUPPORT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_SUPPORT_DELETED")] - #pragma warning disable CS1591 - REMOTE_SUPPORT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_LOCK_DEVICE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_LOCK_DEVICE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_REBOOT_DEVICE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_REBOOT_DEVICE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RESET_PASSCODE_DEVICE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_RESET_PASSCODE_DEVICE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RELINQUISH_OWNERSHIP_DEVICE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_RELINQUISH_OWNERSHIP_DEVICE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_LOCK_DEVICE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_LOCK_DEVICE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_REBOOT_DEVICE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_REBOOT_DEVICE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RESET_PASSCODE_DEVICE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_RESET_PASSCODE_DEVICE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RELINQUISH_OWNERSHIP_DEVICE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_RELINQUISH_OWNERSHIP_DEVICE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_CLEAR_PASSCODE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_CLEAR_PASSCODE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_CLEAR_PASSCODE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_CLEAR_PASSCODE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ERASE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_ERASE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ERASE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_ERASE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_UPDATE_POLICY_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_UPDATE_POLICY_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_UPDATE_POLICY_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_UPDATE_POLICY_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ASSIGN_POLICY_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_ASSIGN_POLICY_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ASSIGN_POLICY_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_ASSIGN_POLICY_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DIVISION_CONFIG_ENABLED")] - #pragma warning disable CS1591 - MDM_DIVISION_CONFIG_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DIVISION_CONFIG_DISABLED")] - #pragma warning disable CS1591 - MDM_DIVISION_CONFIG_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DIVISION_CONFIG_UPDATED")] - #pragma warning disable CS1591 - MDM_DIVISION_CONFIG_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_APN_CERTIFICATE_UPLOADED")] - #pragma warning disable CS1591 - MDM_APN_CERTIFICATE_UPLOADED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ACTION_DEVICE_STATUS_FAILED")] - #pragma warning disable CS1591 - MDM_ACTION_DEVICE_STATUS_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DISOWN_STATUS_FORBIDDEN")] - #pragma warning disable CS1591 - MDM_DISOWN_STATUS_FORBIDDEN, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DISOWN_STATUS_COMPLETED")] - #pragma warning disable CS1591 - MDM_DISOWN_STATUS_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ADE_TOKEN_UPLOADED")] - #pragma warning disable CS1591 - MDM_ADE_TOKEN_UPLOADED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ADE_TOKEN_RENEWED")] - #pragma warning disable CS1591 - MDM_ADE_TOKEN_RENEWED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RENEW_ENROLLMENT_PROFILE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_RENEW_ENROLLMENT_PROFILE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RENEW_ENROLLMENT_PROFILE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_RENEW_ENROLLMENT_PROFILE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_INSTALL_APP_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_INSTALL_APP_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_APN_CERTIFICATE_RENEWED")] - #pragma warning disable CS1591 - MDM_APN_CERTIFICATE_RENEWED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_CONNECTION_ANDROID_ENTERPRISE_RENAME_SUCCESS")] - #pragma warning disable CS1591 - MDM_CONNECTION_ANDROID_ENTERPRISE_RENAME_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_TEMPLATE_CREATED")] - #pragma warning disable CS1591 - REPORT_TEMPLATE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_TEMPLATE_UPDATED")] - #pragma warning disable CS1591 - REPORT_TEMPLATE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_TEMPLATE_DELETED")] - #pragma warning disable CS1591 - REPORT_TEMPLATE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_SCHEDULE_CREATED")] - #pragma warning disable CS1591 - REPORT_SCHEDULE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_SCHEDULE_UPDATED")] - #pragma warning disable CS1591 - REPORT_SCHEDULE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_SCHEDULE_DELETED")] - #pragma warning disable CS1591 - REPORT_SCHEDULE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_TEMPLATE_DUPLICATED")] - #pragma warning disable CS1591 - REPORT_TEMPLATE_DUPLICATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_SCHEDULE_DUPLICATED")] - #pragma warning disable CS1591 - REPORT_SCHEDULE_DUPLICATED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_ENABLED")] - #pragma warning disable CS1591 - GRAVITYZONE_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DISABLED")] - #pragma warning disable CS1591 - GRAVITYZONE_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_STARTED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_IGNORED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_IGNORED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_PRESENT")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_PRESENT, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_BLOCKED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_BLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_CLEANED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_CLEANED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PURGE_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_PURGE_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PURGE_QUARANTINE_SUCCESS")] - #pragma warning disable CS1591 - GRAVITYZONE_PURGE_QUARANTINE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PROVISION_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_PROVISION_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PROVISION_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_PROVISION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_RETRY_INSTALL_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_RETRY_INSTALL_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PARTNER_ASSIST_DISABLED")] - #pragma warning disable CS1591 - GRAVITYZONE_PARTNER_ASSIST_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_ATTEMPT_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_ATTEMPT_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_RESET_INACCESSIBLE_LICENSE_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_RESET_INACCESSIBLE_LICENSE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_REQUESTED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_REQUESTED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE_REQUESTED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_STARTED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DOWNLOAD_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_DOWNLOAD_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_RETRY_STARTED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_RETRY_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_CANCELLED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DISABLING_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_DISABLING_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_EXISTS_DETECTED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_EXISTS_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_REQUESTED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DEVICE_MANAGED")] - #pragma warning disable CS1591 - GRAVITYZONE_DEVICE_MANAGED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DEVICE_UNMANAGED")] - #pragma warning disable CS1591 - GRAVITYZONE_DEVICE_UNMANAGED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_COMPANY_CANNOT_BE_ACCESSED")] - #pragma warning disable CS1591 - GRAVITYZONE_COMPANY_CANNOT_BE_ACCESSED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_QUARANTINED_THREAT_DELETED_OR_RESTORED")] - #pragma warning disable CS1591 - GRAVITYZONE_QUARANTINED_THREAT_DELETED_OR_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SUCCEEDED_TO_REQUEST_RECONFIGURE_TASK")] - #pragma warning disable CS1591 - GRAVITYZONE_SUCCEEDED_TO_REQUEST_RECONFIGURE_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_FAILED_TO_REQUEST_RECONFIGURE_TASK")] - #pragma warning disable CS1591 - GRAVITYZONE_FAILED_TO_REQUEST_RECONFIGURE_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT_FILE_SUSPICIOUS")] - #pragma warning disable CS1591 - ATTACHMENT_FILE_SUSPICIOUS, - #pragma warning restore CS1591 - [EnumMember(Value = "SMTP_SEND_ERROR")] - #pragma warning disable CS1591 - SMTP_SEND_ERROR, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_ROLE_CREATED")] - #pragma warning disable CS1591 - TECHNICIAN_ROLE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_ROLE_UPDATED")] - #pragma warning disable CS1591 - TECHNICIAN_ROLE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_ROLE_DELETED")] - #pragma warning disable CS1591 - TECHNICIAN_ROLE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_ROLE_ASSIGNMENT_CHANGED")] - #pragma warning disable CS1591 - TECHNICIAN_ROLE_ASSIGNMENT_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_PERMISSIONS_CHANGED")] - #pragma warning disable CS1591 - TECHNICIAN_PERMISSIONS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLE_CREATED")] - #pragma warning disable CS1591 - END_USER_ROLE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLE_UPDATED")] - #pragma warning disable CS1591 - END_USER_ROLE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLE_DELETED")] - #pragma warning disable CS1591 - END_USER_ROLE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLE_ASSIGNMENT_CHANGED")] - #pragma warning disable CS1591 - END_USER_ROLE_ASSIGNMENT_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_PERMISSIONS_CHANGED")] - #pragma warning disable CS1591 - END_USER_PERMISSIONS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_ENABLED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_DISABLED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_STARTED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_UPGRADED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_UPGRADED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_SHUT_DOWN")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_SHUT_DOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_INSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_INSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_INSTALLATION_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_INSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_POLICY_CHANGED")] - #pragma warning disable CS1591 - SENTINEL_ONE_POLICY_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_LOCAL_CONFIG_CHANGE_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_LOCAL_CONFIG_CHANGE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_REGISTRATION_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_REGISTRATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_REGISTRATION_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_REGISTRATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_REMEDIATION_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_REMEDIATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_REMEDIATION_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_REMEDIATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_REQUIRE_REBOOT")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_REQUIRE_REBOOT, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_CANNOT_KILL")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_CANNOT_KILL, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_FAILED_TO_KILL")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_FAILED_TO_KILL, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_QUARANTINE_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_QUARANTINE_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_UNQUARANTINE_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_UNQUARANTINE_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_UNQUARANTINE_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_UNQUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_THREAT_DETECTED")] - #pragma warning disable CS1591 - SENTINEL_ONE_THREAT_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_SCAN_STARTED")] - #pragma warning disable CS1591 - SENTINEL_ONE_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_SCAN_COMPLETED")] - #pragma warning disable CS1591 - SENTINEL_ONE_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_SCAN_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_SCAN_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_SCAN_ABORTED")] - #pragma warning disable CS1591 - SENTINEL_ONE_SCAN_ABORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_COMMAND_RECEIVED")] - #pragma warning disable CS1591 - SENTINEL_ONE_COMMAND_RECEIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_COMMAND_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_COMMAND_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "OAUTH2_CREATED")] - #pragma warning disable CS1591 - OAUTH2_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "OAUTH2_UPDATED")] - #pragma warning disable CS1591 - OAUTH2_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "OAUTH2_DELETED")] - #pragma warning disable CS1591 - OAUTH2_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_ENABLED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_DISABLED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_STARTED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_UPGRADED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_UPGRADED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_SHUT_DOWN")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_SHUT_DOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_INSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_INSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_INSTALLATION_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_INSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_REGISTRATION_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_REGISTRATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_REGISTRATION_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_REGISTRATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_REMEDIATION_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_REMEDIATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_REMEDIATION_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_REMEDIATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_MITIGATION_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_MITIGATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_MITIGATION_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_MITIGATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_QUARANTINE_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_QUARANTINE_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_THREAT_DETECTED")] - #pragma warning disable CS1591 - CROWDSTRIKE_THREAT_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_MISSING_PERMISSIONS")] - #pragma warning disable CS1591 - CROWDSTRIKE_MISSING_PERMISSIONS, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_CREDENTIAL_INVALID")] - #pragma warning disable CS1591 - CROWDSTRIKE_CREDENTIAL_INVALID, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_CREATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_DELETED")] - #pragma warning disable CS1591 - SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_RESET_AUTHENTICATION")] - #pragma warning disable CS1591 - SERVICE_NOW_RESET_AUTHENTICATION, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_NODE_CREATED")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_NODE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_NODE_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_NODE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_NODE_ERROR")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_NODE_ERROR, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_BY_CLIENT_STARTED")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_BY_CLIENT_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_BY_CLIENT_COMPLETED")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_BY_CLIENT_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CLIENT_MAPPING_CREATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CLIENT_MAPPING_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CLIENT_MAPPING_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CLIENT_MAPPING_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CLIENT_MAPPING_DELETED")] - #pragma warning disable CS1591 - SERVICE_NOW_CLIENT_MAPPING_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_SYNC_CLIENT_ON_DEMAND")] - #pragma warning disable CS1591 - SERVICE_NOW_SYNC_CLIENT_ON_DEMAND, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CLIENT_MAPPING_STATUS_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CLIENT_MAPPING_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "ZENDESK_UPDATED")] - #pragma warning disable CS1591 - ZENDESK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "FRESHSERVICE_UPDATED")] - #pragma warning disable CS1591 - FRESHSERVICE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_CREATION_FAILED")] - #pragma warning disable CS1591 - NINJA_TICKETING_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_ACTIVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_ACTIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_DEACTIVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_DEACTIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ATTRIBUTE_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ATTRIBUTE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ATTRIBUTE_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ATTRIBUTE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ATTRIBUTE_ACTIVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ATTRIBUTE_ACTIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ATTRIBUTE_DEACTIVATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ATTRIBUTE_DEACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_RULESET_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_RULESET_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_RULESET_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_RULESET_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_RULESET_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_RULESET_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_MAKE_DEFAULT")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_MAKE_DEFAULT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TRIGGER_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TRIGGER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TRIGGER_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TRIGGER_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TRIGGER_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TRIGGER_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TICKET_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TICKET_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TICKET_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TICKET_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_PENDING_EMAIL_CREATION_APPROVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_PENDING_EMAIL_CREATION_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_PENDING_EMAIL_UPDATE_APPROVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_PENDING_EMAIL_UPDATE_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_PENDING_EMAIL_REJECTED")] - #pragma warning disable CS1591 - NINJA_TICKETING_PENDING_EMAIL_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ENABLED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_DISABLED")] - #pragma warning disable CS1591 - NINJA_TICKETING_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_MAKE_DEFAULT")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_MAKE_DEFAULT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_CONDITION_RULE_MAKE_DEFAULT")] - #pragma warning disable CS1591 - NINJA_TICKETING_CONDITION_RULE_MAKE_DEFAULT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_SCRIPT_RULE_MAKE_DEFAULT")] - #pragma warning disable CS1591 - NINJA_TICKETING_SCRIPT_RULE_MAKE_DEFAULT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_PENDING_EMAIL_RECEIVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_PENDING_EMAIL_RECEIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TICKET_REINSTATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TICKET_REINSTATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_STATUS_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_STATUS_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_STATUS_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_STATUS_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_AGREEMENT_BULK_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_AGREEMENT_BULK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_CREATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_UPDATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_ARCHIVED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_RESTORED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_DELETED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_CREATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_UPDATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_ARCHIVED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_RESTORED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_DELETED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_PUBLIC_TEMPORARY_TOKEN_CREATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_PUBLIC_TEMPORARY_TOKEN_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_PUBLIC_LINK_CREATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_PUBLIC_LINK_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_PUBLIC_LINK_UPDATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_PUBLIC_LINK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_PUBLIC_LINK_DELETED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_PUBLIC_LINK_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_MOVED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_MOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_MOVED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_MOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_SHARED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_SHARED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_ACCESS_RESTRICTED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_ACCESS_RESTRICTED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_CREATED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_UPDATED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_ARCHIVED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_RESTORED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_DELETED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_CREATED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_UPDATED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_ARCHIVED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_RESTORED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_DELETED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_ATTRIBUTE_VALUE_DECRYPTED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_ATTRIBUTE_VALUE_DECRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_REVISION_DELETED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_REVISION_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENTATION_DELEGATE_NODE_RESPONSIBILITY_ADDED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENTATION_DELEGATE_NODE_RESPONSIBILITY_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENTATION_DELEGATE_NODE_RESPONSIBILITY_REMOVED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENTATION_DELEGATE_NODE_RESPONSIBILITY_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_ATTRIBUTE_TEMPORARY_PUBLIC_TOKEN_CREATED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_ATTRIBUTE_TEMPORARY_PUBLIC_TOKEN_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_CREATED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_UPDATED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_DELETED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_PROMOTED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_PROMOTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_TEMPORARY_PUBLIC_TOKEN_CREATED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_TEMPORARY_PUBLIC_TOKEN_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_ARCHIVED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_RESTORED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_CREATED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_UPDATED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_DELETED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_ARCHIVED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_RESTORED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_CREATED")] - #pragma warning disable CS1591 - RELATED_ITEM_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_UPDATED")] - #pragma warning disable CS1591 - RELATED_ITEM_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_DELETED")] - #pragma warning disable CS1591 - RELATED_ITEM_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_SECURE_VALUE_DECRYPTED")] - #pragma warning disable CS1591 - RELATED_ITEM_SECURE_VALUE_DECRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_TEMPORARY_PUBLIC_TOKEN_CREATED")] - #pragma warning disable CS1591 - RELATED_ITEM_TEMPORARY_PUBLIC_TOKEN_CREATED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Activities/Activities5XXError.cs b/V2/Activities/Activities5XXError.cs deleted file mode 100644 index 54882fd..0000000 --- a/V2/Activities/Activities5XXError.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Activities -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Activities5XXError : ApiException, IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The activities property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Activities { get; set; } -#nullable restore -#else - public List Activities { get; set; } -#endif - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Last recorded activity ID for account - public long? LastActivityId { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// - /// Instantiates a new and sets the default values. - /// - public Activities5XXError() - { - 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::NinjaOne.Client.V2.Activities.Activities5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Activities.Activities5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "activities", n => { Activities = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Activities.Activities5XXError_activities.CreateFromDiscriminatorValue)?.AsList(); } }, - { "lastActivityId", n => { LastActivityId = n.GetLongValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("activities", Activities); - writer.WriteLongValue("lastActivityId", LastActivityId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Activities/Activities5XXError_activities.cs b/V2/Activities/Activities5XXError_activities.cs deleted file mode 100644 index 6b6198f..0000000 --- a/V2/Activities/Activities5XXError_activities.cs +++ /dev/null @@ -1,159 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Activities -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Activities5XXError_activities : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Activity result - public global::NinjaOne.Client.V2.Activities.Activities5XXError_activities_activityResult? ActivityResult { get; set; } - /// Activity timestamp - public double? ActivityTime { get; set; } - /// Activity type code - public global::NinjaOne.Client.V2.Activities.Activities5XXError_activities_activityType? ActivityType { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Activity data -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Activities.Activities5XXError_activities_data? Data { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Activities.Activities5XXError_activities_data Data { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// Activity identifier - public long? Id { get; set; } - /// Activity message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Message { get; set; } -#nullable restore -#else - public string Message { get; set; } -#endif - /// Priority - public global::NinjaOne.Client.V2.Activities.Activities5XXError_activities_priority? Priority { get; set; } - /// Activity series UID (job/condition UID) - public Guid? SeriesUid { get; set; } - /// Severity - public global::NinjaOne.Client.V2.Activities.Activities5XXError_activities_severity? Severity { get; set; } - /// Source configuration/policy element reference - public Guid? SourceConfigUid { get; set; } - /// Source configuration/policy element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SourceName { get; set; } -#nullable restore -#else - public string SourceName { get; set; } -#endif - /// Status description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Activity status code - public global::NinjaOne.Client.V2.Activities.Activities5XXError_activities_statusCode? StatusCode { get; set; } - /// Activity subject -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subject { get; set; } -#nullable restore -#else - public string Subject { get; set; } -#endif - /// Activity type description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// User identifier - public int? UserId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Activities5XXError_activities() - { - 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::NinjaOne.Client.V2.Activities.Activities5XXError_activities CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Activities.Activities5XXError_activities(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "activityResult", n => { ActivityResult = n.GetEnumValue(); } }, - { "activityTime", n => { ActivityTime = n.GetDoubleValue(); } }, - { "activityType", n => { ActivityType = n.GetEnumValue(); } }, - { "data", n => { Data = n.GetObjectValue(global::NinjaOne.Client.V2.Activities.Activities5XXError_activities_data.CreateFromDiscriminatorValue); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetLongValue(); } }, - { "message", n => { Message = n.GetStringValue(); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "seriesUid", n => { SeriesUid = n.GetGuidValue(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - { "sourceConfigUid", n => { SourceConfigUid = n.GetGuidValue(); } }, - { "sourceName", n => { SourceName = n.GetStringValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "statusCode", n => { StatusCode = n.GetEnumValue(); } }, - { "subject", n => { Subject = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - { "userId", n => { UserId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("activityResult", ActivityResult); - writer.WriteDoubleValue("activityTime", ActivityTime); - writer.WriteEnumValue("activityType", ActivityType); - writer.WriteObjectValue("data", Data); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteLongValue("id", Id); - writer.WriteStringValue("message", Message); - writer.WriteEnumValue("priority", Priority); - writer.WriteGuidValue("seriesUid", SeriesUid); - writer.WriteEnumValue("severity", Severity); - writer.WriteGuidValue("sourceConfigUid", SourceConfigUid); - writer.WriteStringValue("sourceName", SourceName); - writer.WriteStringValue("status", Status); - writer.WriteEnumValue("statusCode", StatusCode); - writer.WriteStringValue("subject", Subject); - writer.WriteStringValue("type", Type); - writer.WriteIntValue("userId", UserId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Activities/Activities5XXError_activities_activityResult.cs b/V2/Activities/Activities5XXError_activities_activityResult.cs deleted file mode 100644 index 5766979..0000000 --- a/V2/Activities/Activities5XXError_activities_activityResult.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Activities -{ - /// Activity result - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities5XXError_activities_activityResult - { - [EnumMember(Value = "SUCCESS")] - #pragma warning disable CS1591 - SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILURE")] - #pragma warning disable CS1591 - FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "UNSUPPORTED")] - #pragma warning disable CS1591 - UNSUPPORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNCOMPLETED")] - #pragma warning disable CS1591 - UNCOMPLETED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Activities/Activities5XXError_activities_activityType.cs b/V2/Activities/Activities5XXError_activities_activityType.cs deleted file mode 100644 index b91bbfb..0000000 --- a/V2/Activities/Activities5XXError_activities_activityType.cs +++ /dev/null @@ -1,163 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Activities -{ - /// Activity type code - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities5XXError_activities_activityType - { - [EnumMember(Value = "ACTIONSET")] - #pragma warning disable CS1591 - ACTIONSET, - #pragma warning restore CS1591 - [EnumMember(Value = "ACTION")] - #pragma warning disable CS1591 - ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION")] - #pragma warning disable CS1591 - CONDITION, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_ACTIONSET")] - #pragma warning disable CS1591 - CONDITION_ACTIONSET, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_ACTION")] - #pragma warning disable CS1591 - CONDITION_ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "ANTIVIRUS")] - #pragma warning disable CS1591 - ANTIVIRUS, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER")] - #pragma warning disable CS1591 - TEAMVIEWER, - #pragma warning restore CS1591 - [EnumMember(Value = "MONITOR")] - #pragma warning disable CS1591 - MONITOR, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "COMMENT")] - #pragma warning disable CS1591 - COMMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT")] - #pragma warning disable CS1591 - SHADOWPROTECT, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER")] - #pragma warning disable CS1591 - IMAGEMANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "HELP_REQUEST")] - #pragma warning disable CS1591 - HELP_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP")] - #pragma warning disable CS1591 - SPLASHTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY")] - #pragma warning disable CS1591 - CLOUDBERRY, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUP")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUP, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK")] - #pragma warning disable CS1591 - SCHEDULED_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP")] - #pragma warning disable CS1591 - RDP, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPTING")] - #pragma warning disable CS1591 - SCRIPTING, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURITY")] - #pragma warning disable CS1591 - SECURITY, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS")] - #pragma warning disable CS1591 - REMOTE_TOOLS, - #pragma warning restore CS1591 - [EnumMember(Value = "VIRTUALIZATION")] - #pragma warning disable CS1591 - VIRTUALIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA")] - #pragma warning disable CS1591 - PSA, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM")] - #pragma warning disable CS1591 - MDM, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_REMOTE")] - #pragma warning disable CS1591 - NINJA_REMOTE, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_QUICK_CONNECT")] - #pragma warning disable CS1591 - NINJA_QUICK_CONNECT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_NETWORK_DISCOVERY")] - #pragma warning disable CS1591 - NINJA_NETWORK_DISCOVERY, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP")] - #pragma warning disable CS1591 - NINJA_BACKUP, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING")] - #pragma warning disable CS1591 - NINJA_TICKETING, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM")] - #pragma warning disable CS1591 - RELATED_ITEM, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENTATION")] - #pragma warning disable CS1591 - DOCUMENTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MICROSOFT_INTUNE")] - #pragma warning disable CS1591 - MICROSOFT_INTUNE, - #pragma warning restore CS1591 - [EnumMember(Value = "DYNAMIC_POLICY")] - #pragma warning disable CS1591 - DYNAMIC_POLICY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Activities/Activities5XXError_activities_data.cs b/V2/Activities/Activities5XXError_activities_data.cs deleted file mode 100644 index 1156880..0000000 --- a/V2/Activities/Activities5XXError_activities_data.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Activities -{ - /// - /// Activity data - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Activities5XXError_activities_data : 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. - /// - public Activities5XXError_activities_data() - { - 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::NinjaOne.Client.V2.Activities.Activities5XXError_activities_data CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Activities.Activities5XXError_activities_data(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Activities/Activities5XXError_activities_priority.cs b/V2/Activities/Activities5XXError_activities_priority.cs deleted file mode 100644 index 5caf10e..0000000 --- a/V2/Activities/Activities5XXError_activities_priority.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Activities -{ - /// Priority - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities5XXError_activities_priority - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Activities/Activities5XXError_activities_severity.cs b/V2/Activities/Activities5XXError_activities_severity.cs deleted file mode 100644 index 600cf9e..0000000 --- a/V2/Activities/Activities5XXError_activities_severity.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Activities -{ - /// Severity - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities5XXError_activities_severity - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Activities/Activities5XXError_activities_statusCode.cs b/V2/Activities/Activities5XXError_activities_statusCode.cs deleted file mode 100644 index e8b3e80..0000000 --- a/V2/Activities/Activities5XXError_activities_statusCode.cs +++ /dev/null @@ -1,2703 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Activities -{ - /// Activity status code - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities5XXError_activities_statusCode - { - [EnumMember(Value = "START_REQUESTED")] - #pragma warning disable CS1591 - START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "STARTED")] - #pragma warning disable CS1591 - STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_PROCESS")] - #pragma warning disable CS1591 - IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "COMPLETED")] - #pragma warning disable CS1591 - COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CANCEL_REQUESTED")] - #pragma warning disable CS1591 - CANCEL_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CANCELLED")] - #pragma warning disable CS1591 - CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "BLOCKED")] - #pragma warning disable CS1591 - BLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRIGGERED")] - #pragma warning disable CS1591 - TRIGGERED, - #pragma warning restore CS1591 - [EnumMember(Value = "RESET")] - #pragma warning disable CS1591 - RESET, - #pragma warning restore CS1591 - [EnumMember(Value = "ACKNOWLEDGED")] - #pragma warning disable CS1591 - ACKNOWLEDGED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISABLED")] - #pragma warning disable CS1591 - DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "EVALUATION_FAILURE")] - #pragma warning disable CS1591 - EVALUATION_FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CREATED")] - #pragma warning disable CS1591 - CLIENT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_UPDATED")] - #pragma warning disable CS1591 - CLIENT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DELETED")] - #pragma warning disable CS1591 - CLIENT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL_CREATED")] - #pragma warning disable CS1591 - CREDENTIAL_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL_UPDATED")] - #pragma warning disable CS1591 - CREDENTIAL_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL_DELETED")] - #pragma warning disable CS1591 - CREDENTIAL_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION_CREATED")] - #pragma warning disable CS1591 - LOCATION_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION_UPDATED")] - #pragma warning disable CS1591 - LOCATION_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION_DELETED")] - #pragma warning disable CS1591 - LOCATION_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "POLICY_CREATED")] - #pragma warning disable CS1591 - POLICY_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "POLICY_UPDATED")] - #pragma warning disable CS1591 - POLICY_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "POLICY_DELETED")] - #pragma warning disable CS1591 - POLICY_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_CREATED")] - #pragma warning disable CS1591 - NODE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_UPDATED")] - #pragma warning disable CS1591 - NODE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_DELETED")] - #pragma warning disable CS1591 - NODE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_RE_ENROLLED")] - #pragma warning disable CS1591 - NODE_RE_ENROLLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ACCESS_GRANTED")] - #pragma warning disable CS1591 - NODE_ACCESS_GRANTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ACCESS_DENIED")] - #pragma warning disable CS1591 - NODE_ACCESS_DENIED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_REGISTRATION_REJECTED")] - #pragma warning disable CS1591 - NODE_REGISTRATION_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_IDENTIFICATION_UPDATED")] - #pragma warning disable CS1591 - NODE_IDENTIFICATION_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_CLONING_DETECTED")] - #pragma warning disable CS1591 - NODE_CLONING_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_CLONE_ADVISED_TO_REGISTER")] - #pragma warning disable CS1591 - NODE_CLONE_ADVISED_TO_REGISTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MANUALLY_APPROVED")] - #pragma warning disable CS1591 - NODE_MANUALLY_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_AUTOMATICALLY_APPROVED")] - #pragma warning disable CS1591 - NODE_AUTOMATICALLY_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MANUALLY_REJECTED")] - #pragma warning disable CS1591 - NODE_MANUALLY_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_AUTOMATICALLY_REJECTED")] - #pragma warning disable CS1591 - NODE_AUTOMATICALLY_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECTED_NODE_CLEARED")] - #pragma warning disable CS1591 - REJECTED_NODE_CLEARED, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECTED_NODE_DELETED")] - #pragma warning disable CS1591 - REJECTED_NODE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "MOBILE_DEVICE_UNREGISTERED")] - #pragma warning disable CS1591 - MOBILE_DEVICE_UNREGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_CREATED")] - #pragma warning disable CS1591 - APP_USER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_UPDATED")] - #pragma warning disable CS1591 - APP_USER_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_DELETED")] - #pragma warning disable CS1591 - APP_USER_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_LOGGED_IN")] - #pragma warning disable CS1591 - APP_USER_LOGGED_IN, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_LOGGED_OUT")] - #pragma warning disable CS1591 - APP_USER_LOGGED_OUT, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_MFA_SETUP")] - #pragma warning disable CS1591 - APP_USER_MFA_SETUP, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_MFA_DELETED")] - #pragma warning disable CS1591 - APP_USER_MFA_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_CRITICAL_ACTION")] - #pragma warning disable CS1591 - APP_USER_CRITICAL_ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_AUDIT_FAILED_LOGIN")] - #pragma warning disable CS1591 - APP_USER_AUDIT_FAILED_LOGIN, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_AUTO_ASSIGN_CHANGED")] - #pragma warning disable CS1591 - APP_USER_AUTO_ASSIGN_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_CREATED")] - #pragma warning disable CS1591 - END_USER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_CREATED_API")] - #pragma warning disable CS1591 - END_USER_CREATED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_UPDATED")] - #pragma warning disable CS1591 - END_USER_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_UPDATED_API")] - #pragma warning disable CS1591 - END_USER_UPDATED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_DELETED")] - #pragma warning disable CS1591 - END_USER_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_DELETED_API")] - #pragma warning disable CS1591 - END_USER_DELETED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_LOGGED_IN")] - #pragma warning disable CS1591 - END_USER_LOGGED_IN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_LOGGED_OUT")] - #pragma warning disable CS1591 - END_USER_LOGGED_OUT, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_MFA_SETUP")] - #pragma warning disable CS1591 - END_USER_MFA_SETUP, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_MFA_DELETED")] - #pragma warning disable CS1591 - END_USER_MFA_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_AUDIT_FAILED_LOGIN")] - #pragma warning disable CS1591 - END_USER_AUDIT_FAILED_LOGIN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_CRITICAL_ACTION")] - #pragma warning disable CS1591 - END_USER_CRITICAL_ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_CREATED")] - #pragma warning disable CS1591 - CONTACT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_CREATED_API")] - #pragma warning disable CS1591 - CONTACT_CREATED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_UPDATED")] - #pragma warning disable CS1591 - CONTACT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_UPDATED_API")] - #pragma warning disable CS1591 - CONTACT_UPDATED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_DELETED")] - #pragma warning disable CS1591 - CONTACT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_DELETED_API")] - #pragma warning disable CS1591 - CONTACT_DELETED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_GROUP_CREATED")] - #pragma warning disable CS1591 - DEVICE_GROUP_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_GROUP_UPDATED")] - #pragma warning disable CS1591 - DEVICE_GROUP_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_GROUP_DELETED")] - #pragma warning disable CS1591 - DEVICE_GROUP_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "TICKET_TEMPLATE_CREATED")] - #pragma warning disable CS1591 - TICKET_TEMPLATE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TICKET_TEMPLATE_UPDATED")] - #pragma warning disable CS1591 - TICKET_TEMPLATE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TICKET_TEMPLATE_DELETED")] - #pragma warning disable CS1591 - TICKET_TEMPLATE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CUSTOM_HEALTH_STATUS_CHANGED")] - #pragma warning disable CS1591 - CUSTOM_HEALTH_STATUS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "CUSTOM_HEALTH_STATUS_RESET")] - #pragma warning disable CS1591 - CUSTOM_HEALTH_STATUS_RESET, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_CREATION_FAILED")] - #pragma warning disable CS1591 - PSA_TICKET_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_CREATION_SUCCEEDED")] - #pragma warning disable CS1591 - PSA_TICKET_CREATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "RESET_BY_PSA_TICKET_CALLBACK")] - #pragma warning disable CS1591 - RESET_BY_PSA_TICKET_CALLBACK, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_CREATION_TEST")] - #pragma warning disable CS1591 - PSA_TICKET_CREATION_TEST, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_ENABLED")] - #pragma warning disable CS1591 - PSA_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_DISABLED")] - #pragma warning disable CS1591 - PSA_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_CREDENTIALS_FAILED")] - #pragma warning disable CS1591 - PSA_CREDENTIALS_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_AGREEMENTS_SYNC_COMPLETED")] - #pragma warning disable CS1591 - CONNECTWISE_AGREEMENTS_SYNC_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_AGREEMENTS_SYNC_STARTED")] - #pragma warning disable CS1591 - CONNECTWISE_AGREEMENTS_SYNC_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_COMPLETED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_STARTED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_NODE_CREATED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_NODE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_NODE_UPDATED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_NODE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_NODE_DELETED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_NODE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_UPDATED")] - #pragma warning disable CS1591 - CONNECTWISE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISECONTROL_ATTEMPT")] - #pragma warning disable CS1591 - CONNECTWISECONTROL_ATTEMPT, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_STARTED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_COMPLETED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_NODE_CREATED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_NODE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_NODE_UPDATED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_NODE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_NODE_DELETED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_NODE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_UPDATED")] - #pragma warning disable CS1591 - AUTOTASK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_ATTACHMENT_FAILURE")] - #pragma warning disable CS1591 - AUTOTASK_ATTACHMENT_FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_UPDATED_FAILED")] - #pragma warning disable CS1591 - PSA_TICKET_UPDATED_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_UPDATED_SUCCEEDED")] - #pragma warning disable CS1591 - PSA_TICKET_UPDATED_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_CREATED")] - #pragma warning disable CS1591 - REPORT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_UPDATED")] - #pragma warning disable CS1591 - REPORT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_DELETED")] - #pragma warning disable CS1591 - REPORT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "TIME_ZONE_UPDATED")] - #pragma warning disable CS1591 - TIME_ZONE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "LANGUAGE_TAG_UPDATED")] - #pragma warning disable CS1591 - LANGUAGE_TAG_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ROLE_CREATED")] - #pragma warning disable CS1591 - NODE_ROLE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ROLE_UPDATED")] - #pragma warning disable CS1591 - NODE_ROLE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ROLE_DELETED")] - #pragma warning disable CS1591 - NODE_ROLE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "COMMENT")] - #pragma warning disable CS1591 - COMMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_INSTALLED")] - #pragma warning disable CS1591 - VIPREAV_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_INSTALL_FAILED")] - #pragma warning disable CS1591 - VIPREAV_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_UNINSTALLED")] - #pragma warning disable CS1591 - VIPREAV_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - VIPREAV_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_ACTIVEPROTECTION_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - VIPREAV_ACTIVEPROTECTION_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_USERINITIATED_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - VIPREAV_USERINITIATED_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_QUARANTINED_THREAT_REMOVED")] - #pragma warning disable CS1591 - VIPREAV_QUARANTINED_THREAT_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_REBOOT_REQUIRED")] - #pragma warning disable CS1591 - VIPREAV_REBOOT_REQUIRED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_STARTED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_COMPLETED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_ABORTED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_ABORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_FAILED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_PAUSED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_PAUSED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_DISABLED")] - #pragma warning disable CS1591 - VIPREAV_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "WEBROOT_COMMAND_SUBMITTED")] - #pragma warning disable CS1591 - WEBROOT_COMMAND_SUBMITTED, - #pragma warning restore CS1591 - [EnumMember(Value = "WEBROOT_THREAT_DETECTED")] - #pragma warning disable CS1591 - WEBROOT_THREAT_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "WEBROOT_INSTALL_FAILED")] - #pragma warning disable CS1591 - WEBROOT_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_SCAN_STARTED")] - #pragma warning disable CS1591 - BITDEFENDER_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_SCAN_COMPLETED")] - #pragma warning disable CS1591 - BITDEFENDER_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_THREAT_DELETE_FROM_QUARANTINE")] - #pragma warning disable CS1591 - BITDEFENDER_THREAT_DELETE_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_THREAT_RESTORE_FROM_QUARANTINE")] - #pragma warning disable CS1591 - BITDEFENDER_THREAT_RESTORE_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_SCAN_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_SCAN_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_THREAT_DELETE_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_THREAT_DELETE_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_THREAT_RESTORE_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_THREAT_RESTORE_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DOWNLOAD_STARTED")] - #pragma warning disable CS1591 - BITDEFENDER_DOWNLOAD_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DOWNLOAD_SUCCEEDED")] - #pragma warning disable CS1591 - BITDEFENDER_DOWNLOAD_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DOWNLOAD_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_DOWNLOAD_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_INSTALLATION_STARTED")] - #pragma warning disable CS1591 - BITDEFENDER_INSTALLATION_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_INSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - BITDEFENDER_INSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_INSTALLATION_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_INSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_UNINSTALLATION_STARTED")] - #pragma warning disable CS1591 - BITDEFENDER_UNINSTALLATION_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_UNINSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - BITDEFENDER_UNINSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_UNINSTALLATION_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_UNINSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_UNPACKING_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_UNPACKING_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_IGNORED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_IGNORED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_PRESENT")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_PRESENT, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_DELETED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_BLOCKED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_BLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_CLEANED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_CLEANED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_PURGE_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_PURGE_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_PURGE_QUARANTINE_SUCCESS")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_PURGE_QUARANTINE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_QUARANTINE_RESTORED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_QUARANTINE_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_QUARANTINE_RESTORED_CUSTOMPATH")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_QUARANTINE_RESTORED_CUSTOMPATH, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_QUARANTINE_DELETED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_QUARANTINE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_RETRY_INSTALL_COMPLETED")] - #pragma warning disable CS1591 - BITDEFENDER_RETRY_INSTALL_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DISABLED")] - #pragma warning disable CS1591 - BITDEFENDER_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_EXISTING_PRODUCT_UNINSTALL")] - #pragma warning disable CS1591 - BITDEFENDER_EXISTING_PRODUCT_UNINSTALL, - #pragma warning restore CS1591 - [EnumMember(Value = "COMPETITOR_EXISTING_PRODUCT_UNINSTALL")] - #pragma warning disable CS1591 - COMPETITOR_EXISTING_PRODUCT_UNINSTALL, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULE_INSTALL_OPTION_CHANGED")] - #pragma warning disable CS1591 - SCHEDULE_INSTALL_OPTION_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURITY_CREDENTIAL_ACCESS_GRANTED")] - #pragma warning disable CS1591 - SECURITY_CREDENTIAL_ACCESS_GRANTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURITY_CREDENTIAL_ACCESS_DENIED")] - #pragma warning disable CS1591 - SECURITY_CREDENTIAL_ACCESS_DENIED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_SCAN_STARTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_SCAN_COMPLETED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_APPLY_PATCH_STARTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_APPLY_PATCH_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_APPLY_PATCH_COMPLETED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_APPLY_PATCH_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_INSTALLED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_INSTALL_FAILED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_MESSAGE")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_MESSAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_FAILURE")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_ROLLBACK_PATCH_REQUESTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_ROLLBACK_PATCH_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_ROLLBACK_PATCH_STARTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_ROLLBACK_PATCH_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_ROLLBACK_PATCH_COMPLETED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_ROLLBACK_PATCH_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_PATCH_APPROVED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_PATCH_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_PATCH_REJECTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_PATCH_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_SCAN_STARTED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_SCAN_COMPLETED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_APPLY_PATCH_STARTED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_APPLY_PATCH_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_APPLY_PATCH_COMPLETED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_APPLY_PATCH_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_INSTALLED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_INSTALL_FAILED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_MESSAGE")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_MESSAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_PATCH_APPROVED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_PATCH_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_PATCH_REJECTED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_PATCH_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_INSTALLED")] - #pragma warning disable CS1591 - TEAMVIEWER_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_INSTALL_FAILED")] - #pragma warning disable CS1591 - TEAMVIEWER_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_UNINSTALLED")] - #pragma warning disable CS1591 - TEAMVIEWER_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - TEAMVIEWER_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONNECTION_ESTABLISHED")] - #pragma warning disable CS1591 - TEAMVIEWER_CONNECTION_ESTABLISHED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONNECTION_TERMINATED")] - #pragma warning disable CS1591 - TEAMVIEWER_CONNECTION_TERMINATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_PERMANENT_PASSWORD_CHANGED")] - #pragma warning disable CS1591 - TEAMVIEWER_PERMANENT_PASSWORD_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_ACCOUNTNAME_ADDED")] - #pragma warning disable CS1591 - TEAMVIEWER_ACCOUNTNAME_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_ACCOUNTNAME_CHANGED")] - #pragma warning disable CS1591 - TEAMVIEWER_ACCOUNTNAME_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_ACCOUNTNAME_REMOVED")] - #pragma warning disable CS1591 - TEAMVIEWER_ACCOUNTNAME_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONNECTION_CANCELLED")] - #pragma warning disable CS1591 - TEAMVIEWER_CONNECTION_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONFIG_CHANGED")] - #pragma warning disable CS1591 - TEAMVIEWER_CONFIG_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP_CONNECTION_INITIATED")] - #pragma warning disable CS1591 - SPLASHTOP_CONNECTION_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP_CONNECTION_ESTABLISHED")] - #pragma warning disable CS1591 - SPLASHTOP_CONNECTION_ESTABLISHED, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP_CONNECTION_TERMINATED")] - #pragma warning disable CS1591 - SPLASHTOP_CONNECTION_TERMINATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_UPLOAD_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_UPLOAD_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DOWNLOAD_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DOWNLOAD_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COMPRESS_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COMPRESS_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COMPRESS_FILE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COMPRESS_FILE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COMPRESS_FILE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COMPRESS_FILE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_DIRECTORY_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_DIRECTORY_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MODIFY_OBJECT_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MODIFY_OBJECT_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MODIFY_OBJECT_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MODIFY_OBJECT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COPY_OBJECT_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COPY_OBJECT_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COPY_OBJECT_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COPY_OBJECT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MOVE_OBJECT_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MOVE_OBJECT_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MOVE_OBJECT_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MOVE_OBJECT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_OBJECT_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_OBJECT_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_OBJECT_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_OBJECT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_DIRECTORY_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_DIRECTORY_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_DIRECTORY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_DIRECTORY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_FILE_TRANSFER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_FILE_TRANSFER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_FILE_TRANSFER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_FILE_TRANSFER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_SERVICE_CONTROL_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_SERVICE_CONTROL_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_START_SERVICE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_START_SERVICE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_START_SERVICE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_START_SERVICE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_STOP_SERVICE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_STOP_SERVICE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_STOP_SERVICE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_STOP_SERVICE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RESTART_SERVICE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RESTART_SERVICE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RESTART_SERVICE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RESTART_SERVICE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_START_TYPE_CHANGE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_START_TYPE_CHANGE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_START_TYPE_CHANGE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_START_TYPE_CHANGE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_PROCESS_CONTROL_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_PROCESS_CONTROL_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_SET_PROCESS_PRIORITY_SUCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_SET_PROCESS_PRIORITY_SUCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_SET_PROCESS_PRIORITY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_SET_PROCESS_PRIORITY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_TERMINATE_PROCESS_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_TERMINATE_PROCESS_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_TERMINATE_PROCESS_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_TERMINATE_PROCESS_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_TERMINATE_PROCESS_TREE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_TERMINATE_PROCESS_TREE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_TERMINATE_PROCESS_TREE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_TERMINATE_PROCESS_TREE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_REGISTRY_CONTROL_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_REGISTRY_CONTROL_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_KEY_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_KEY_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_KEY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_KEY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_KEY_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_KEY_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_KEY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_KEY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_KEY_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_KEY_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_KEY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_KEY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_PARAMETER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_PARAMETER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_PARAMETER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_PARAMETER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_PARAMETER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_PARAMETER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_PARAMETER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_PARAMETER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_PARAMETER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_PARAMETER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_PARAMETER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_PARAMETER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MODIFY_PARAMETER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MODIFY_PARAMETER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MODIFY_PARAMETER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MODIFY_PARAMETER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_ACTIVE_DIRECTORY_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_ACTIVE_DIRECTORY_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "ADAPTER_ADDED")] - #pragma warning disable CS1591 - ADAPTER_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "ADAPTER_REMOVED")] - #pragma warning disable CS1591 - ADAPTER_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "ADAPTER_CONFIG_CHANGED")] - #pragma warning disable CS1591 - ADAPTER_CONFIG_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "ADAPTER_STATUS_CHANGED")] - #pragma warning disable CS1591 - ADAPTER_STATUS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "CPU_ADDED")] - #pragma warning disable CS1591 - CPU_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CPU_REMOVED")] - #pragma warning disable CS1591 - CPU_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "MEMORY_ADDED")] - #pragma warning disable CS1591 - MEMORY_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "MEMORY_REMOVED")] - #pragma warning disable CS1591 - MEMORY_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_DRIVE_ADDED")] - #pragma warning disable CS1591 - DISK_DRIVE_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_DRIVE_REMOVED")] - #pragma warning disable CS1591 - DISK_DRIVE_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "USER_LOGGED_IN")] - #pragma warning disable CS1591 - USER_LOGGED_IN, - #pragma warning restore CS1591 - [EnumMember(Value = "USER_LOGGED_OUT")] - #pragma warning disable CS1591 - USER_LOGGED_OUT, - #pragma warning restore CS1591 - [EnumMember(Value = "PORT_OPENED")] - #pragma warning disable CS1591 - PORT_OPENED, - #pragma warning restore CS1591 - [EnumMember(Value = "PORT_CLOSED")] - #pragma warning disable CS1591 - PORT_CLOSED, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_SERVICE_STARTED")] - #pragma warning disable CS1591 - WINDOWS_SERVICE_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_SERVICE_STOPPED")] - #pragma warning disable CS1591 - WINDOWS_SERVICE_STOPPED, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_DAEMON_STARTED")] - #pragma warning disable CS1591 - MAC_DAEMON_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_DAEMON_STOPPED")] - #pragma warning disable CS1591 - MAC_DAEMON_STOPPED, - #pragma warning restore CS1591 - [EnumMember(Value = "USER_ACCOUNT_ADDED")] - #pragma warning disable CS1591 - USER_ACCOUNT_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "USER_ACCOUNT_REMOVED")] - #pragma warning disable CS1591 - USER_ACCOUNT_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "PROCESS_STARTED")] - #pragma warning disable CS1591 - PROCESS_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PROCESS_STOPPED")] - #pragma warning disable CS1591 - PROCESS_STOPPED, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM_REBOOTED")] - #pragma warning disable CS1591 - SYSTEM_REBOOTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_ADDED")] - #pragma warning disable CS1591 - SOFTWARE_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_REMOVED")] - #pragma warning disable CS1591 - SOFTWARE_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_UPDATED")] - #pragma warning disable CS1591 - SOFTWARE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_OS_UPDATED")] - #pragma warning disable CS1591 - SOFTWARE_OS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_PARTITION_ADDED")] - #pragma warning disable CS1591 - DISK_PARTITION_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_PARTITION_REMOVED")] - #pragma warning disable CS1591 - DISK_PARTITION_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_VOLUME_ADDED")] - #pragma warning disable CS1591 - DISK_VOLUME_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_VOLUME_REMOVED")] - #pragma warning disable CS1591 - DISK_VOLUME_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIALS_CHANGED")] - #pragma warning disable CS1591 - CREDENTIALS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_CONTROLLER_ADDED")] - #pragma warning disable CS1591 - RAID_CONTROLLER_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_CONTROLLER_REMOVED")] - #pragma warning disable CS1591 - RAID_CONTROLLER_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_PHYSICAL_DRIVE_ADDED")] - #pragma warning disable CS1591 - RAID_PHYSICAL_DRIVE_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_PHYSICAL_DRIVE_REMOVED")] - #pragma warning disable CS1591 - RAID_PHYSICAL_DRIVE_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_LOGICAL_DISK_ADDED")] - #pragma warning disable CS1591 - RAID_LOGICAL_DISK_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_LOGICAL_DISK_REMOVED")] - #pragma warning disable CS1591 - RAID_LOGICAL_DISK_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITLOCKER_ENABLED")] - #pragma warning disable CS1591 - BITLOCKER_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITLOCKER_DISABLED")] - #pragma warning disable CS1591 - BITLOCKER_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "FILEVAULT_ENABLED")] - #pragma warning disable CS1591 - FILEVAULT_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "FILEVAULT_DISABLED")] - #pragma warning disable CS1591 - FILEVAULT_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRUSTED_PLATFORM_MODULE_ENABLED")] - #pragma warning disable CS1591 - TRUSTED_PLATFORM_MODULE_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRUSTED_PLATFORM_MODULE_DISABLED")] - #pragma warning disable CS1591 - TRUSTED_PLATFORM_MODULE_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRUSTED_PLATFORM_MODULE_INSTALLED")] - #pragma warning disable CS1591 - TRUSTED_PLATFORM_MODULE_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRUSTED_PLATFORM_MODULE_UNINSTALLED")] - #pragma warning disable CS1591 - TRUSTED_PLATFORM_MODULE_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_INSTALLED")] - #pragma warning disable CS1591 - SHADOWPROTECT_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_INSTALL_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_UNINSTALLED")] - #pragma warning disable CS1591 - SHADOWPROTECT_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_ABORTED")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_ABORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_PROVISIONED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_PROVISIONED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_PROVISION_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_PROVISION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_ACTIVATED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_ACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_ACTIVATION_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_ACTIVATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_DEACTIVATED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_DEACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_DEACTIVATION_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_DEACTIVATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_INSTALLED")] - #pragma warning disable CS1591 - IMAGEMANAGER_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_INSTALL_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_UNINSTALLED")] - #pragma warning disable CS1591 - IMAGEMANAGER_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_PROVISIONED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_PROVISIONED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_PROVISION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_PROVISION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_ACTIVATED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_ACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_ACTIVATION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_ACTIVATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_DEACTIVATED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_DEACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_DEACTIVATION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_DEACTIVATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_CONSOLIDATION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_CONSOLIDATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_VERIFICATION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_VERIFICATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "HELP_REQUEST_SUBMITTED")] - #pragma warning disable CS1591 - HELP_REQUEST_SUBMITTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_INSTALLED")] - #pragma warning disable CS1591 - CLOUDBERRY_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_INSTALL_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_UNINSTALLED")] - #pragma warning disable CS1591 - CLOUDBERRY_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPPLAN_CREATED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPPLAN_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPPLAN_EDITED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPPLAN_EDITED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPPLAN_DELETED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPPLAN_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPPLAN_CREATION_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPPLAN_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPJOB_STARTED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPJOB_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPJOB_SUCCEEDED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPJOB_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPJOB_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPJOB_COMPLETED_WITH_WARNING")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPJOB_COMPLETED_WITH_WARNING, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_USER_CREATED")] - #pragma warning disable CS1591 - CLOUDBERRY_USER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_NETWORK_CREDENTIAL_CREATED")] - #pragma warning disable CS1591 - CLOUDBERRY_NETWORK_CREDENTIAL_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_NETWORK_CREDENTIAL_CREATION_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_NETWORK_CREDENTIAL_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP_CONNECTION_INITIATED")] - #pragma warning disable CS1591 - RDP_CONNECTION_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP_CONNECTION_ESTABLISHED")] - #pragma warning disable CS1591 - RDP_CONNECTION_ESTABLISHED, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP_CONNECTION_TERMINATED")] - #pragma warning disable CS1591 - RDP_CONNECTION_TERMINATED, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP_AUTO_PROVISION")] - #pragma warning disable CS1591 - RDP_AUTO_PROVISION, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK_CREATED")] - #pragma warning disable CS1591 - SCHEDULED_TASK_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK_UPDATED")] - #pragma warning disable CS1591 - SCHEDULED_TASK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK_DELETED")] - #pragma warning disable CS1591 - SCHEDULED_TASK_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT_CREATED")] - #pragma warning disable CS1591 - SCRIPT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT_UPDATED")] - #pragma warning disable CS1591 - SCRIPT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT_DELETED")] - #pragma warning disable CS1591 - SCRIPT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_START_REQUESTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_IN_PROCESS")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_START_REQUESTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_IN_PROCESS")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_COMPLETED_WITH_WARNING")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_COMPLETED_WITH_WARNING, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUP_DOWNLOADED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUP_DOWNLOADED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPPLAN_ADDED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPPLAN_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPPLAN_EDITED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPPLAN_EDITED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPPLAN_DELETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPPLAN_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_CANCELLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_PROCESSING")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_PROCESSING, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INSTALL_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INSTALLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UNINSTALLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_CANCELLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPPLAN_CREATION_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPPLAN_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUP_CONFIGURE_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUP_CONFIGURE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_FILE_DOWNLOAD")] - #pragma warning disable CS1591 - NINJA_BACKUP_FILE_DOWNLOAD, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_FOLDER_DOWNLOAD")] - #pragma warning disable CS1591 - NINJA_BACKUP_FOLDER_DOWNLOAD, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_START_REQUESTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_PROCESSING")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_PROCESSING, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_IN_PROCESS")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_CANCELLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUP_NAS_ACCESS_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUP_NAS_ACCESS_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_RESTORE_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_RESTORE_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_RESTORE_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_RESTORE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_RESTORE_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_RESTORE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_MOUNT_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_MOUNT_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_MOUNT_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_MOUNT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_START_REQUESTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_IN_PROCESS")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_CANCELLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BACKUP_IMAGE_RESTORE_CANCELED")] - #pragma warning disable CS1591 - BACKUP_IMAGE_RESTORE_CANCELED, - #pragma warning restore CS1591 - [EnumMember(Value = "BACKUP_IMAGE_DOWNLOAD_CANCELED")] - #pragma warning disable CS1591 - BACKUP_IMAGE_DOWNLOAD_CANCELED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_INVITATION_CREATED")] - #pragma warning disable CS1591 - QC_INVITATION_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_INVITATION_DISABLED")] - #pragma warning disable CS1591 - QC_INVITATION_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_EXPIRED_INVITATION_BLOCKED")] - #pragma warning disable CS1591 - QC_EXPIRED_INVITATION_BLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_INVITATION_UPDATED")] - #pragma warning disable CS1591 - QC_INVITATION_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_DEVICE_DELETED")] - #pragma warning disable CS1591 - QC_DEVICE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_DEVICE_AGENT_INSTALL_REQUESTED")] - #pragma warning disable CS1591 - QC_DEVICE_AGENT_INSTALL_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_SESSION_STARTED")] - #pragma warning disable CS1591 - QC_SESSION_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_SESSION_TERMINATED")] - #pragma warning disable CS1591 - QC_SESSION_TERMINATED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_SESSION_REPORT_SUBMITTED")] - #pragma warning disable CS1591 - QC_SESSION_REPORT_SUBMITTED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_SUPPORT_CREATED")] - #pragma warning disable CS1591 - REMOTE_SUPPORT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_SUPPORT_UPDATED")] - #pragma warning disable CS1591 - REMOTE_SUPPORT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_SUPPORT_DELETED")] - #pragma warning disable CS1591 - REMOTE_SUPPORT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_LOCK_DEVICE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_LOCK_DEVICE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_REBOOT_DEVICE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_REBOOT_DEVICE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RESET_PASSCODE_DEVICE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_RESET_PASSCODE_DEVICE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RELINQUISH_OWNERSHIP_DEVICE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_RELINQUISH_OWNERSHIP_DEVICE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_LOCK_DEVICE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_LOCK_DEVICE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_REBOOT_DEVICE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_REBOOT_DEVICE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RESET_PASSCODE_DEVICE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_RESET_PASSCODE_DEVICE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RELINQUISH_OWNERSHIP_DEVICE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_RELINQUISH_OWNERSHIP_DEVICE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_CLEAR_PASSCODE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_CLEAR_PASSCODE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_CLEAR_PASSCODE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_CLEAR_PASSCODE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ERASE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_ERASE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ERASE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_ERASE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_UPDATE_POLICY_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_UPDATE_POLICY_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_UPDATE_POLICY_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_UPDATE_POLICY_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ASSIGN_POLICY_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_ASSIGN_POLICY_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ASSIGN_POLICY_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_ASSIGN_POLICY_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DIVISION_CONFIG_ENABLED")] - #pragma warning disable CS1591 - MDM_DIVISION_CONFIG_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DIVISION_CONFIG_DISABLED")] - #pragma warning disable CS1591 - MDM_DIVISION_CONFIG_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DIVISION_CONFIG_UPDATED")] - #pragma warning disable CS1591 - MDM_DIVISION_CONFIG_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_APN_CERTIFICATE_UPLOADED")] - #pragma warning disable CS1591 - MDM_APN_CERTIFICATE_UPLOADED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ACTION_DEVICE_STATUS_FAILED")] - #pragma warning disable CS1591 - MDM_ACTION_DEVICE_STATUS_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DISOWN_STATUS_FORBIDDEN")] - #pragma warning disable CS1591 - MDM_DISOWN_STATUS_FORBIDDEN, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DISOWN_STATUS_COMPLETED")] - #pragma warning disable CS1591 - MDM_DISOWN_STATUS_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ADE_TOKEN_UPLOADED")] - #pragma warning disable CS1591 - MDM_ADE_TOKEN_UPLOADED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ADE_TOKEN_RENEWED")] - #pragma warning disable CS1591 - MDM_ADE_TOKEN_RENEWED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RENEW_ENROLLMENT_PROFILE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_RENEW_ENROLLMENT_PROFILE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RENEW_ENROLLMENT_PROFILE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_RENEW_ENROLLMENT_PROFILE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_INSTALL_APP_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_INSTALL_APP_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_APN_CERTIFICATE_RENEWED")] - #pragma warning disable CS1591 - MDM_APN_CERTIFICATE_RENEWED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_CONNECTION_ANDROID_ENTERPRISE_RENAME_SUCCESS")] - #pragma warning disable CS1591 - MDM_CONNECTION_ANDROID_ENTERPRISE_RENAME_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_TEMPLATE_CREATED")] - #pragma warning disable CS1591 - REPORT_TEMPLATE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_TEMPLATE_UPDATED")] - #pragma warning disable CS1591 - REPORT_TEMPLATE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_TEMPLATE_DELETED")] - #pragma warning disable CS1591 - REPORT_TEMPLATE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_SCHEDULE_CREATED")] - #pragma warning disable CS1591 - REPORT_SCHEDULE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_SCHEDULE_UPDATED")] - #pragma warning disable CS1591 - REPORT_SCHEDULE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_SCHEDULE_DELETED")] - #pragma warning disable CS1591 - REPORT_SCHEDULE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_TEMPLATE_DUPLICATED")] - #pragma warning disable CS1591 - REPORT_TEMPLATE_DUPLICATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_SCHEDULE_DUPLICATED")] - #pragma warning disable CS1591 - REPORT_SCHEDULE_DUPLICATED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_ENABLED")] - #pragma warning disable CS1591 - GRAVITYZONE_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DISABLED")] - #pragma warning disable CS1591 - GRAVITYZONE_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_STARTED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_IGNORED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_IGNORED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_PRESENT")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_PRESENT, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_BLOCKED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_BLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_CLEANED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_CLEANED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PURGE_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_PURGE_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PURGE_QUARANTINE_SUCCESS")] - #pragma warning disable CS1591 - GRAVITYZONE_PURGE_QUARANTINE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PROVISION_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_PROVISION_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PROVISION_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_PROVISION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_RETRY_INSTALL_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_RETRY_INSTALL_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PARTNER_ASSIST_DISABLED")] - #pragma warning disable CS1591 - GRAVITYZONE_PARTNER_ASSIST_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_ATTEMPT_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_ATTEMPT_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_RESET_INACCESSIBLE_LICENSE_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_RESET_INACCESSIBLE_LICENSE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_REQUESTED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_REQUESTED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE_REQUESTED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_STARTED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DOWNLOAD_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_DOWNLOAD_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_RETRY_STARTED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_RETRY_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_CANCELLED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DISABLING_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_DISABLING_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_EXISTS_DETECTED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_EXISTS_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_REQUESTED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DEVICE_MANAGED")] - #pragma warning disable CS1591 - GRAVITYZONE_DEVICE_MANAGED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DEVICE_UNMANAGED")] - #pragma warning disable CS1591 - GRAVITYZONE_DEVICE_UNMANAGED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_COMPANY_CANNOT_BE_ACCESSED")] - #pragma warning disable CS1591 - GRAVITYZONE_COMPANY_CANNOT_BE_ACCESSED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_QUARANTINED_THREAT_DELETED_OR_RESTORED")] - #pragma warning disable CS1591 - GRAVITYZONE_QUARANTINED_THREAT_DELETED_OR_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SUCCEEDED_TO_REQUEST_RECONFIGURE_TASK")] - #pragma warning disable CS1591 - GRAVITYZONE_SUCCEEDED_TO_REQUEST_RECONFIGURE_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_FAILED_TO_REQUEST_RECONFIGURE_TASK")] - #pragma warning disable CS1591 - GRAVITYZONE_FAILED_TO_REQUEST_RECONFIGURE_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT_FILE_SUSPICIOUS")] - #pragma warning disable CS1591 - ATTACHMENT_FILE_SUSPICIOUS, - #pragma warning restore CS1591 - [EnumMember(Value = "SMTP_SEND_ERROR")] - #pragma warning disable CS1591 - SMTP_SEND_ERROR, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_ROLE_CREATED")] - #pragma warning disable CS1591 - TECHNICIAN_ROLE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_ROLE_UPDATED")] - #pragma warning disable CS1591 - TECHNICIAN_ROLE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_ROLE_DELETED")] - #pragma warning disable CS1591 - TECHNICIAN_ROLE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_ROLE_ASSIGNMENT_CHANGED")] - #pragma warning disable CS1591 - TECHNICIAN_ROLE_ASSIGNMENT_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_PERMISSIONS_CHANGED")] - #pragma warning disable CS1591 - TECHNICIAN_PERMISSIONS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLE_CREATED")] - #pragma warning disable CS1591 - END_USER_ROLE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLE_UPDATED")] - #pragma warning disable CS1591 - END_USER_ROLE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLE_DELETED")] - #pragma warning disable CS1591 - END_USER_ROLE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLE_ASSIGNMENT_CHANGED")] - #pragma warning disable CS1591 - END_USER_ROLE_ASSIGNMENT_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_PERMISSIONS_CHANGED")] - #pragma warning disable CS1591 - END_USER_PERMISSIONS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_ENABLED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_DISABLED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_STARTED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_UPGRADED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_UPGRADED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_SHUT_DOWN")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_SHUT_DOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_INSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_INSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_INSTALLATION_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_INSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_POLICY_CHANGED")] - #pragma warning disable CS1591 - SENTINEL_ONE_POLICY_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_LOCAL_CONFIG_CHANGE_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_LOCAL_CONFIG_CHANGE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_REGISTRATION_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_REGISTRATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_REGISTRATION_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_REGISTRATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_REMEDIATION_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_REMEDIATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_REMEDIATION_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_REMEDIATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_REQUIRE_REBOOT")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_REQUIRE_REBOOT, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_CANNOT_KILL")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_CANNOT_KILL, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_FAILED_TO_KILL")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_FAILED_TO_KILL, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_QUARANTINE_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_QUARANTINE_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_UNQUARANTINE_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_UNQUARANTINE_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_UNQUARANTINE_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_UNQUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_THREAT_DETECTED")] - #pragma warning disable CS1591 - SENTINEL_ONE_THREAT_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_SCAN_STARTED")] - #pragma warning disable CS1591 - SENTINEL_ONE_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_SCAN_COMPLETED")] - #pragma warning disable CS1591 - SENTINEL_ONE_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_SCAN_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_SCAN_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_SCAN_ABORTED")] - #pragma warning disable CS1591 - SENTINEL_ONE_SCAN_ABORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_COMMAND_RECEIVED")] - #pragma warning disable CS1591 - SENTINEL_ONE_COMMAND_RECEIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_COMMAND_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_COMMAND_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "OAUTH2_CREATED")] - #pragma warning disable CS1591 - OAUTH2_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "OAUTH2_UPDATED")] - #pragma warning disable CS1591 - OAUTH2_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "OAUTH2_DELETED")] - #pragma warning disable CS1591 - OAUTH2_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_ENABLED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_DISABLED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_STARTED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_UPGRADED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_UPGRADED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_SHUT_DOWN")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_SHUT_DOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_INSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_INSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_INSTALLATION_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_INSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_REGISTRATION_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_REGISTRATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_REGISTRATION_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_REGISTRATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_REMEDIATION_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_REMEDIATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_REMEDIATION_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_REMEDIATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_MITIGATION_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_MITIGATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_MITIGATION_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_MITIGATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_QUARANTINE_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_QUARANTINE_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_THREAT_DETECTED")] - #pragma warning disable CS1591 - CROWDSTRIKE_THREAT_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_MISSING_PERMISSIONS")] - #pragma warning disable CS1591 - CROWDSTRIKE_MISSING_PERMISSIONS, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_CREDENTIAL_INVALID")] - #pragma warning disable CS1591 - CROWDSTRIKE_CREDENTIAL_INVALID, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_CREATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_DELETED")] - #pragma warning disable CS1591 - SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_RESET_AUTHENTICATION")] - #pragma warning disable CS1591 - SERVICE_NOW_RESET_AUTHENTICATION, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_NODE_CREATED")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_NODE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_NODE_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_NODE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_NODE_ERROR")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_NODE_ERROR, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_BY_CLIENT_STARTED")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_BY_CLIENT_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_BY_CLIENT_COMPLETED")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_BY_CLIENT_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CLIENT_MAPPING_CREATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CLIENT_MAPPING_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CLIENT_MAPPING_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CLIENT_MAPPING_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CLIENT_MAPPING_DELETED")] - #pragma warning disable CS1591 - SERVICE_NOW_CLIENT_MAPPING_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_SYNC_CLIENT_ON_DEMAND")] - #pragma warning disable CS1591 - SERVICE_NOW_SYNC_CLIENT_ON_DEMAND, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CLIENT_MAPPING_STATUS_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CLIENT_MAPPING_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "ZENDESK_UPDATED")] - #pragma warning disable CS1591 - ZENDESK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "FRESHSERVICE_UPDATED")] - #pragma warning disable CS1591 - FRESHSERVICE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_CREATION_FAILED")] - #pragma warning disable CS1591 - NINJA_TICKETING_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_ACTIVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_ACTIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_DEACTIVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_DEACTIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ATTRIBUTE_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ATTRIBUTE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ATTRIBUTE_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ATTRIBUTE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ATTRIBUTE_ACTIVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ATTRIBUTE_ACTIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ATTRIBUTE_DEACTIVATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ATTRIBUTE_DEACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_RULESET_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_RULESET_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_RULESET_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_RULESET_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_RULESET_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_RULESET_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_MAKE_DEFAULT")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_MAKE_DEFAULT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TRIGGER_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TRIGGER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TRIGGER_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TRIGGER_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TRIGGER_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TRIGGER_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TICKET_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TICKET_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TICKET_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TICKET_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_PENDING_EMAIL_CREATION_APPROVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_PENDING_EMAIL_CREATION_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_PENDING_EMAIL_UPDATE_APPROVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_PENDING_EMAIL_UPDATE_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_PENDING_EMAIL_REJECTED")] - #pragma warning disable CS1591 - NINJA_TICKETING_PENDING_EMAIL_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ENABLED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_DISABLED")] - #pragma warning disable CS1591 - NINJA_TICKETING_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_MAKE_DEFAULT")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_MAKE_DEFAULT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_CONDITION_RULE_MAKE_DEFAULT")] - #pragma warning disable CS1591 - NINJA_TICKETING_CONDITION_RULE_MAKE_DEFAULT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_SCRIPT_RULE_MAKE_DEFAULT")] - #pragma warning disable CS1591 - NINJA_TICKETING_SCRIPT_RULE_MAKE_DEFAULT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_PENDING_EMAIL_RECEIVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_PENDING_EMAIL_RECEIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TICKET_REINSTATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TICKET_REINSTATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_STATUS_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_STATUS_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_STATUS_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_STATUS_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_AGREEMENT_BULK_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_AGREEMENT_BULK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_CREATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_UPDATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_ARCHIVED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_RESTORED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_DELETED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_CREATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_UPDATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_ARCHIVED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_RESTORED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_DELETED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_PUBLIC_TEMPORARY_TOKEN_CREATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_PUBLIC_TEMPORARY_TOKEN_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_PUBLIC_LINK_CREATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_PUBLIC_LINK_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_PUBLIC_LINK_UPDATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_PUBLIC_LINK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_PUBLIC_LINK_DELETED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_PUBLIC_LINK_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_MOVED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_MOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_MOVED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_MOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_SHARED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_SHARED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_ACCESS_RESTRICTED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_ACCESS_RESTRICTED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_CREATED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_UPDATED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_ARCHIVED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_RESTORED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_DELETED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_CREATED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_UPDATED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_ARCHIVED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_RESTORED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_DELETED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_ATTRIBUTE_VALUE_DECRYPTED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_ATTRIBUTE_VALUE_DECRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_REVISION_DELETED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_REVISION_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENTATION_DELEGATE_NODE_RESPONSIBILITY_ADDED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENTATION_DELEGATE_NODE_RESPONSIBILITY_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENTATION_DELEGATE_NODE_RESPONSIBILITY_REMOVED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENTATION_DELEGATE_NODE_RESPONSIBILITY_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_ATTRIBUTE_TEMPORARY_PUBLIC_TOKEN_CREATED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_ATTRIBUTE_TEMPORARY_PUBLIC_TOKEN_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_CREATED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_UPDATED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_DELETED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_PROMOTED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_PROMOTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_TEMPORARY_PUBLIC_TOKEN_CREATED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_TEMPORARY_PUBLIC_TOKEN_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_ARCHIVED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_RESTORED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_CREATED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_UPDATED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_DELETED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_ARCHIVED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_RESTORED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_CREATED")] - #pragma warning disable CS1591 - RELATED_ITEM_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_UPDATED")] - #pragma warning disable CS1591 - RELATED_ITEM_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_DELETED")] - #pragma warning disable CS1591 - RELATED_ITEM_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_SECURE_VALUE_DECRYPTED")] - #pragma warning disable CS1591 - RELATED_ITEM_SECURE_VALUE_DECRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_TEMPORARY_PUBLIC_TOKEN_CREATED")] - #pragma warning disable CS1591 - RELATED_ITEM_TEMPORARY_PUBLIC_TOKEN_CREATED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Activities/ActivitiesRequestBuilder.cs b/V2/Activities/ActivitiesRequestBuilder.cs deleted file mode 100644 index d226368..0000000 --- a/V2/Activities/ActivitiesRequestBuilder.cs +++ /dev/null @@ -1,228 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Activities -{ - /// - /// Builds and executes requests for operations under \v2\activities - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ActivitiesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ActivitiesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/activities{?after*,before*,class*,df*,lang*,newerThan*,olderThan*,pageSize*,seriesUid*,sourceConfigUid*,status*,type*,tz*,user*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ActivitiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/activities{?after*,before*,class*,df*,lang*,newerThan*,olderThan*,pageSize*,seriesUid*,sourceConfigUid*,status*,type*,tz*,user*}", rawUrl) - { - } - /// - /// Returns activity log in reverse chronological order - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Activities.Activities4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Activities.Activities5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns activity log in reverse chronological order - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Activities.ActivitiesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Activities.ActivitiesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns activity log in reverse chronological order - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ActivitiesRequestBuilderGetQueryParameters - { - /// Return activities recorded after to specified date -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("after")] - public string? After { get; set; } -#nullable restore -#else - [QueryParameter("after")] - public string After { get; set; } -#endif - /// Return activities recorded prior to specified date -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("before")] - public string? Before { get; set; } -#nullable restore -#else - [QueryParameter("before")] - public string Before { get; set; } -#endif - /// Activity Class (System/Device) filter - [Obsolete("This property is deprecated, use ClassAsGetClassQueryParameterType instead")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("class")] - public string? Class { get; set; } -#nullable restore -#else - [QueryParameter("class")] - public string Class { get; set; } -#endif - /// Activity Class (System/Device) filter - [QueryParameter("class")] - public global::NinjaOne.Client.V2.Activities.GetClassQueryParameterType? ClassAsGetClassQueryParameterType { get; set; } - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Language tag -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("lang")] - public string? Lang { get; set; } -#nullable restore -#else - [QueryParameter("lang")] - public string Lang { get; set; } -#endif - /// Return activities recorded that are older than specified activity ID - [QueryParameter("newerThan")] - public long? NewerThan { get; set; } - /// Return activities recorded that are newer than specified activity ID - [QueryParameter("olderThan")] - public long? OlderThan { get; set; } - /// Limit number of activities to return - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Return activities related to alert (series) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("seriesUid")] - public string? SeriesUid { get; set; } -#nullable restore -#else - [QueryParameter("seriesUid")] - public string SeriesUid { get; set; } -#endif - /// Allows users to make a request directed to a specific script -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("sourceConfigUid")] - public string? SourceConfigUid { get; set; } -#nullable restore -#else - [QueryParameter("sourceConfigUid")] - public string SourceConfigUid { get; set; } -#endif - /// Return activities with status(es) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("status")] - public string? Status { get; set; } -#nullable restore -#else - [QueryParameter("status")] - public string Status { get; set; } -#endif - /// Return activities of type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("type")] - public string? Type { get; set; } -#nullable restore -#else - [QueryParameter("type")] - public string Type { get; set; } -#endif - /// Time Zone -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("tz")] - public string? Tz { get; set; } -#nullable restore -#else - [QueryParameter("tz")] - public string Tz { get; set; } -#endif - /// Return activities for user(s) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("user")] - public string? User { get; set; } -#nullable restore -#else - [QueryParameter("user")] - public string User { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ActivitiesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Activities/GetClassQueryParameterType.cs b/V2/Activities/GetClassQueryParameterType.cs deleted file mode 100644 index df85a0d..0000000 --- a/V2/Activities/GetClassQueryParameterType.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Activities -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum GetClassQueryParameterType - #pragma warning restore CS1591 - { - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE")] - #pragma warning disable CS1591 - DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "USER")] - #pragma warning disable CS1591 - USER, - #pragma warning restore CS1591 - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Alert/AlertRequestBuilder.cs b/V2/Alert/AlertRequestBuilder.cs deleted file mode 100644 index 313fc2d..0000000 --- a/V2/Alert/AlertRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Alert.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Alert -{ - /// - /// Builds and executes requests for operations under \v2\alert - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AlertRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.alert.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Alert.Item.WithUItemRequestBuilder this[Guid position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("uid", position); - return new global::NinjaOne.Client.V2.Alert.Item.WithUItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.alert.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Alert.Item.WithUItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("uid", position); - return new global::NinjaOne.Client.V2.Alert.Item.WithUItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public AlertRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/alert", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public AlertRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/alert", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alert/Item/Reset/ResetPostRequestBody.cs b/V2/Alert/Item/Reset/ResetPostRequestBody.cs deleted file mode 100644 index ce711fd..0000000 --- a/V2/Alert/Item/Reset/ResetPostRequestBody.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alert.Item.Reset -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ResetPostRequestBody : 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. - /// - public ResetPostRequestBody() - { - 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::NinjaOne.Client.V2.Alert.Item.Reset.ResetPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alert.Item.Reset.ResetPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alert/Item/Reset/ResetRequestBuilder.cs b/V2/Alert/Item/Reset/ResetRequestBuilder.cs deleted file mode 100644 index c043b9a..0000000 --- a/V2/Alert/Item/Reset/ResetRequestBuilder.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Alert.Item.Reset -{ - /// - /// Builds and executes requests for operations under \v2\alert\{uid}\reset - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ResetRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ResetRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/alert/{uid}/reset", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ResetRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/alert/{uid}/reset", rawUrl) - { - } - /// - /// Resets alert/condition by UID - /// - /// A - /// The request body - /// 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 PostAsync(global::NinjaOne.Client.V2.Alert.Item.Reset.ResetPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Alert.Item.Reset.ResetPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Resets alert/condition by UID - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Alert.Item.Reset.ResetPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Alert.Item.Reset.ResetPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Alert.Item.Reset.ResetRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Alert.Item.Reset.ResetRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ResetRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alert/Item/WithUItemRequestBuilder.cs b/V2/Alert/Item/WithUItemRequestBuilder.cs deleted file mode 100644 index 148d4c1..0000000 --- a/V2/Alert/Item/WithUItemRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Alert.Item.Reset; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Alert.Item -{ - /// - /// Builds and executes requests for operations under \v2\alert\{uid} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithUItemRequestBuilder : BaseRequestBuilder - { - /// The reset property - public global::NinjaOne.Client.V2.Alert.Item.Reset.ResetRequestBuilder Reset - { - get => new global::NinjaOne.Client.V2.Alert.Item.Reset.ResetRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithUItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/alert/{uid}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithUItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/alert/{uid}", rawUrl) - { - } - /// - /// Resets alert/condition by UID - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Resets alert/condition by UID - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Alert.Item.WithUItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Alert.Item.WithUItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithUItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts.cs b/V2/Alerts/Alerts.cs deleted file mode 100644 index 97d1d2f..0000000 --- a/V2/Alerts/Alerts.cs +++ /dev/null @@ -1,180 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Alerts : 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 conditionName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ConditionName { get; set; } -#nullable restore -#else - public string ConditionName { get; set; } -#endif - /// Alert creation timestamp - public double? CreateTime { get; set; } - /// Alert data -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_data? DataEscaped { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_data DataEscaped { get; set; } -#endif - /// Device information. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device? Device { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device Device { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// The primary error message. - public override string Message { get => MessageEscaped ?? string.Empty; } - /// Alert message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif - /// The priority property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Priority { get; set; } -#nullable restore -#else - public string Priority { get; set; } -#endif - /// Related PSA ticket ID -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_psaTicketId? PsaTicketId { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_psaTicketId PsaTicketId { get; set; } -#endif - /// The severity property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Severity { get; set; } -#nullable restore -#else - public string Severity { get; set; } -#endif - /// Source configuration/policy element reference - public Guid? SourceConfigUid { get; set; } - /// Source configuration/policy element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SourceName { get; set; } -#nullable restore -#else - public string SourceName { get; set; } -#endif - /// Alert origin - public global::NinjaOne.Client.V2.Alerts.Alerts_sourceType? SourceType { get; set; } - /// Alert subject -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subject { get; set; } -#nullable restore -#else - public string Subject { get; set; } -#endif - /// PSA ticket template - public int? TicketTemplateId { get; set; } - /// Alert UID (activity series UID) - public Guid? Uid { get; set; } - /// Alert last updated - public double? UpdateTime { get; set; } - /// User identifier - public int? UserId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Alerts() - { - 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::NinjaOne.Client.V2.Alerts.Alerts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "conditionName", n => { ConditionName = n.GetStringValue(); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "data", n => { DataEscaped = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_data.CreateFromDiscriminatorValue); } }, - { "device", n => { Device = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device.CreateFromDiscriminatorValue); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "message", n => { MessageEscaped = n.GetStringValue(); } }, - { "priority", n => { Priority = n.GetStringValue(); } }, - { "psaTicketId", n => { PsaTicketId = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_psaTicketId.CreateFromDiscriminatorValue); } }, - { "severity", n => { Severity = n.GetStringValue(); } }, - { "sourceConfigUid", n => { SourceConfigUid = n.GetGuidValue(); } }, - { "sourceName", n => { SourceName = n.GetStringValue(); } }, - { "sourceType", n => { SourceType = n.GetEnumValue(); } }, - { "subject", n => { Subject = n.GetStringValue(); } }, - { "ticketTemplateId", n => { TicketTemplateId = n.GetIntValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "userId", n => { UserId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("conditionName", ConditionName); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteObjectValue("data", DataEscaped); - writer.WriteObjectValue("device", Device); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("message", MessageEscaped); - writer.WriteStringValue("priority", Priority); - writer.WriteObjectValue("psaTicketId", PsaTicketId); - writer.WriteStringValue("severity", Severity); - writer.WriteGuidValue("sourceConfigUid", SourceConfigUid); - writer.WriteStringValue("sourceName", SourceName); - writer.WriteEnumValue("sourceType", SourceType); - writer.WriteStringValue("subject", Subject); - writer.WriteIntValue("ticketTemplateId", TicketTemplateId); - writer.WriteGuidValue("uid", Uid); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteIntValue("userId", UserId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/AlertsRequestBuilder.cs b/V2/Alerts/AlertsRequestBuilder.cs deleted file mode 100644 index 10708c0..0000000 --- a/V2/Alerts/AlertsRequestBuilder.cs +++ /dev/null @@ -1,142 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Builds and executes requests for operations under \v2\alerts - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AlertsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public AlertsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/alerts{?df*,lang*,sourceType*,tz*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/alerts{?df*,lang*,sourceType*,tz*}", rawUrl) - { - } - /// - /// Returns list of active alerts/triggered conditions - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Alerts.Alerts.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of active alerts/triggered conditions - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Alerts.AlertsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Alerts.AlertsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of active alerts/triggered conditions - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AlertsRequestBuilderGetQueryParameters - { - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Language tag -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("lang")] - public string? Lang { get; set; } -#nullable restore -#else - [QueryParameter("lang")] - public string Lang { get; set; } -#endif -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("sourceType")] - public string? SourceType { get; set; } -#nullable restore -#else - [QueryParameter("sourceType")] - public string SourceType { get; set; } -#endif - /// Time Zone -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("tz")] - public string? Tz { get; set; } -#nullable restore -#else - [QueryParameter("tz")] - public string Tz { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AlertsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_data.cs b/V2/Alerts/Alerts_data.cs deleted file mode 100644 index 94ffe20..0000000 --- a/V2/Alerts/Alerts_data.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Alert data - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_data : 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. - /// - public Alerts_data() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_data CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_data(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device.cs b/V2/Alerts/Alerts_device.cs deleted file mode 100644 index 8ab7870..0000000 --- a/V2/Alerts/Alerts_device.cs +++ /dev/null @@ -1,206 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Device information. - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device : 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; } - /// Approval Status - public global::NinjaOne.Client.V2.Alerts.Alerts_device_approvalStatus? ApprovalStatus { get; set; } - /// Node (Device) Owner UUID - public Guid? AssignedOwnerUid { get; set; } - /// Created - public double? Created { get; set; } - /// Display Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// DNS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DnsName { get; set; } -#nullable restore -#else - public string DnsName { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_fields Fields { get; set; } -#endif - /// Node (Device) identifier - public int? Id { get; set; } - /// Last Contact - public double? LastContact { get; set; } - /// Last data submission timestamp - public double? LastUpdate { get; set; } - /// Location identifier - public int? LocationId { get; set; } - /// Maintenance mode status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_maintenance? Maintenance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_maintenance Maintenance { get; set; } -#endif - /// NETBIOS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NetbiosName { get; set; } -#nullable restore -#else - public string NetbiosName { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Alerts.Alerts_device_nodeClass? NodeClass { get; set; } - /// Node Role identifier - public int? NodeRoleId { get; set; } - /// Is Offline? - public bool? Offline { get; set; } - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent Node identifier - public int? ParentDeviceId { get; set; } - /// Assigned policy ID (overrides organization and location policy mapping) - public int? PolicyId { get; set; } - /// Expanded entity references -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references? References { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references References { get; set; } -#endif - /// Node Role policy ID based on organization and location Policy Mapping - public int? RolePolicyId { get; set; } - /// System Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SystemName { get; set; } -#nullable restore -#else - public string SystemName { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Node (Device) UUID - public Guid? Uid { get; set; } - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "approvalStatus", n => { ApprovalStatus = n.GetEnumValue(); } }, - { "assignedOwnerUid", n => { AssignedOwnerUid = n.GetGuidValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "dnsName", n => { DnsName = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastContact", n => { LastContact = n.GetDoubleValue(); } }, - { "lastUpdate", n => { LastUpdate = n.GetDoubleValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "maintenance", n => { Maintenance = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_maintenance.CreateFromDiscriminatorValue); } }, - { "netbiosName", n => { NetbiosName = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "offline", n => { Offline = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentDeviceId", n => { ParentDeviceId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - { "references", n => { References = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references.CreateFromDiscriminatorValue); } }, - { "rolePolicyId", n => { RolePolicyId = n.GetIntValue(); } }, - { "systemName", n => { SystemName = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("approvalStatus", ApprovalStatus); - writer.WriteGuidValue("assignedOwnerUid", AssignedOwnerUid); - writer.WriteDoubleValue("created", Created); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("dnsName", DnsName); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteDoubleValue("lastContact", LastContact); - writer.WriteDoubleValue("lastUpdate", LastUpdate); - writer.WriteIntValue("locationId", LocationId); - writer.WriteObjectValue("maintenance", Maintenance); - writer.WriteStringValue("netbiosName", NetbiosName); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteBoolValue("offline", Offline); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentDeviceId", ParentDeviceId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteObjectValue("references", References); - writer.WriteIntValue("rolePolicyId", RolePolicyId); - writer.WriteStringValue("systemName", SystemName); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_approvalStatus.cs b/V2/Alerts/Alerts_device_approvalStatus.cs deleted file mode 100644 index 9708182..0000000 --- a/V2/Alerts/Alerts_device_approvalStatus.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// Approval Status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_device_approvalStatus - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "APPROVED")] - #pragma warning disable CS1591 - APPROVED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Alerts/Alerts_device_fields.cs b/V2/Alerts/Alerts_device_fields.cs deleted file mode 100644 index 491abb6..0000000 --- a/V2/Alerts/Alerts_device_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_fields : 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. - /// - public Alerts_device_fields() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_maintenance.cs b/V2/Alerts/Alerts_device_maintenance.cs deleted file mode 100644 index 6e838a1..0000000 --- a/V2/Alerts/Alerts_device_maintenance.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Maintenance mode status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_maintenance : 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; } - /// Maintenance mode end time - public double? End { get; set; } - /// Maintenance reason message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ReasonMessage { get; set; } -#nullable restore -#else - public string ReasonMessage { get; set; } -#endif - /// Maintenance mode start time - public double? Start { get; set; } - /// Maintenance mode status - public global::NinjaOne.Client.V2.Alerts.Alerts_device_maintenance_status? Status { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_maintenance() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_maintenance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_maintenance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "end", n => { End = n.GetDoubleValue(); } }, - { "reasonMessage", n => { ReasonMessage = n.GetStringValue(); } }, - { "start", n => { Start = n.GetDoubleValue(); } }, - { "status", n => { Status = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("end", End); - writer.WriteStringValue("reasonMessage", ReasonMessage); - writer.WriteDoubleValue("start", Start); - writer.WriteEnumValue("status", Status); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_maintenance_status.cs b/V2/Alerts/Alerts_device_maintenance_status.cs deleted file mode 100644 index 1591f31..0000000 --- a/V2/Alerts/Alerts_device_maintenance_status.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// Maintenance mode status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_device_maintenance_status - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_MAINTENANCE")] - #pragma warning disable CS1591 - IN_MAINTENANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILED")] - #pragma warning disable CS1591 - FAILED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Alerts/Alerts_device_nodeClass.cs b/V2/Alerts/Alerts_device_nodeClass.cs deleted file mode 100644 index 06f470f..0000000 --- a/V2/Alerts/Alerts_device_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_device_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Alerts/Alerts_device_references.cs b/V2/Alerts/Alerts_device_references.cs deleted file mode 100644 index 4d835ff..0000000 --- a/V2/Alerts/Alerts_device_references.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Expanded entity references - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references : 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; } - /// Assigned device owner -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_assignedOwner? AssignedOwner { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_assignedOwner AssignedOwner { get; set; } -#endif - /// Device Backup Bandwidth Throttle -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_backupBandwidthThrottle? BackupBandwidthThrottle { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_backupBandwidthThrottle BackupBandwidthThrottle { get; set; } -#endif - /// Device Backup Usage -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_backupUsage? BackupUsage { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_backupUsage BackupUsage { get; set; } -#endif - /// Location -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_location? Location { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_location Location { get; set; } -#endif - /// Organization -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_organization? Organization { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_organization Organization { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_policy? Policy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_policy Policy { get; set; } -#endif - /// Device Role -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_role? Role { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_role Role { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_rolePolicy? RolePolicy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_rolePolicy RolePolicy { get; set; } -#endif - /// Warranty Info -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_warranty? Warranty { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_warranty Warranty { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignedOwner", n => { AssignedOwner = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_assignedOwner.CreateFromDiscriminatorValue); } }, - { "backupBandwidthThrottle", n => { BackupBandwidthThrottle = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_backupBandwidthThrottle.CreateFromDiscriminatorValue); } }, - { "backupUsage", n => { BackupUsage = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_backupUsage.CreateFromDiscriminatorValue); } }, - { "location", n => { Location = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_location.CreateFromDiscriminatorValue); } }, - { "organization", n => { Organization = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_organization.CreateFromDiscriminatorValue); } }, - { "policy", n => { Policy = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_policy.CreateFromDiscriminatorValue); } }, - { "role", n => { Role = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_role.CreateFromDiscriminatorValue); } }, - { "rolePolicy", n => { RolePolicy = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_rolePolicy.CreateFromDiscriminatorValue); } }, - { "warranty", n => { Warranty = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_warranty.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assignedOwner", AssignedOwner); - writer.WriteObjectValue("backupBandwidthThrottle", BackupBandwidthThrottle); - writer.WriteObjectValue("backupUsage", BackupUsage); - writer.WriteObjectValue("location", Location); - writer.WriteObjectValue("organization", Organization); - writer.WriteObjectValue("policy", Policy); - writer.WriteObjectValue("role", Role); - writer.WriteObjectValue("rolePolicy", RolePolicy); - writer.WriteObjectValue("warranty", Warranty); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_assignedOwner.cs b/V2/Alerts/Alerts_device_references_assignedOwner.cs deleted file mode 100644 index 6f9181c..0000000 --- a/V2/Alerts/Alerts_device_references_assignedOwner.cs +++ /dev/null @@ -1,190 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Assigned device owner - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_assignedOwner : 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; } - /// The administrator property - public bool? Administrator { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Device IDs which end-user is authorized to access -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DeviceIds { get; set; } -#nullable restore -#else - public List DeviceIds { get; set; } -#endif - /// The email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The enabled property - public bool? Enabled { get; set; } - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_assignedOwner_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_assignedOwner_fields Fields { get; set; } -#endif - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// The invitationStatus property - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_assignedOwner_invitationStatus? InvitationStatus { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// The mfaConfigured property - public bool? MfaConfigured { get; set; } - /// The mustChangePw property - public bool? MustChangePw { get; set; } - /// The notifyAllClients property - public bool? NotifyAllClients { get; set; } - /// Identifier of organization for end-users - public int? OrganizationId { get; set; } - /// The permitAllClients property - public bool? PermitAllClients { get; set; } - /// The phone property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the user. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// User universally unique identifier - public Guid? Uid { get; set; } - /// The userType property - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_assignedOwner_userType? UserType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_assignedOwner() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_assignedOwner CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_assignedOwner(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "administrator", n => { Administrator = n.GetBoolValue(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "deviceIds", n => { DeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_assignedOwner_fields.CreateFromDiscriminatorValue); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "notifyAllClients", n => { NotifyAllClients = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "permitAllClients", n => { PermitAllClients = n.GetBoolValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userType", n => { UserType = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("administrator", Administrator); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteCollectionOfPrimitiveValues("deviceIds", DeviceIds); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteBoolValue("notifyAllClients", NotifyAllClients); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteBoolValue("permitAllClients", PermitAllClients); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteEnumValue("userType", UserType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_assignedOwner_fields.cs b/V2/Alerts/Alerts_device_references_assignedOwner_fields.cs deleted file mode 100644 index 7d1bac3..0000000 --- a/V2/Alerts/Alerts_device_references_assignedOwner_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_assignedOwner_fields : 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. - /// - public Alerts_device_references_assignedOwner_fields() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_assignedOwner_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_assignedOwner_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_assignedOwner_invitationStatus.cs b/V2/Alerts/Alerts_device_references_assignedOwner_invitationStatus.cs deleted file mode 100644 index 08f1e9a..0000000 --- a/V2/Alerts/Alerts_device_references_assignedOwner_invitationStatus.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Alerts_device_references_assignedOwner_invitationStatus - #pragma warning restore CS1591 - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Alerts/Alerts_device_references_assignedOwner_userType.cs b/V2/Alerts/Alerts_device_references_assignedOwner_userType.cs deleted file mode 100644 index 38d965e..0000000 --- a/V2/Alerts/Alerts_device_references_assignedOwner_userType.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Alerts_device_references_assignedOwner_userType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - } -} diff --git a/V2/Alerts/Alerts_device_references_backupBandwidthThrottle.cs b/V2/Alerts/Alerts_device_references_backupBandwidthThrottle.cs deleted file mode 100644 index aed653b..0000000 --- a/V2/Alerts/Alerts_device_references_backupBandwidthThrottle.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Device Backup Bandwidth Throttle - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_backupBandwidthThrottle : 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; } - /// Whether bandwidth throttle is enabled/true or disabled/false - public bool? Enabled { get; set; } - /// Bandwidth nonwork hours limit - public int? NonWorkHoursKbps { get; set; } - /// Bandwidth nonwork hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NonWorkHoursUserUnit { get; set; } -#nullable restore -#else - public string NonWorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work hours limit - public int? WorkHoursKbps { get; set; } - /// Bandwidth work hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? WorkHoursUserUnit { get; set; } -#nullable restore -#else - public string WorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work schedule -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_backupBandwidthThrottle_workSchedule? WorkSchedule { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_backupBandwidthThrottle_workSchedule WorkSchedule { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_backupBandwidthThrottle() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_backupBandwidthThrottle CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_backupBandwidthThrottle(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "nonWorkHoursKbps", n => { NonWorkHoursKbps = n.GetIntValue(); } }, - { "nonWorkHoursUserUnit", n => { NonWorkHoursUserUnit = n.GetStringValue(); } }, - { "workHoursKbps", n => { WorkHoursKbps = n.GetIntValue(); } }, - { "workHoursUserUnit", n => { WorkHoursUserUnit = n.GetStringValue(); } }, - { "workSchedule", n => { WorkSchedule = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_backupBandwidthThrottle_workSchedule.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("nonWorkHoursKbps", NonWorkHoursKbps); - writer.WriteStringValue("nonWorkHoursUserUnit", NonWorkHoursUserUnit); - writer.WriteIntValue("workHoursKbps", WorkHoursKbps); - writer.WriteStringValue("workHoursUserUnit", WorkHoursUserUnit); - writer.WriteObjectValue("workSchedule", WorkSchedule); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_backupBandwidthThrottle_workSchedule.cs b/V2/Alerts/Alerts_device_references_backupBandwidthThrottle_workSchedule.cs deleted file mode 100644 index 294922a..0000000 --- a/V2/Alerts/Alerts_device_references_backupBandwidthThrottle_workSchedule.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Bandwidth work schedule - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_backupBandwidthThrottle_workSchedule : 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; } - /// Work schedule end hour (0 to 23) - public int? EndHour { get; set; } - /// Work schedule end minute (0 to 59) - public int? EndMinute { get; set; } - /// Work schedule start hour (0 to 23) - public int? StartHour { get; set; } - /// Work schedule start minute (0 to 59) - public int? StartMinute { get; set; } - /// Work schedule week days list -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? WeekDays { get; set; } -#nullable restore -#else - public List WeekDays { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_backupBandwidthThrottle_workSchedule() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_backupBandwidthThrottle_workSchedule CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_backupBandwidthThrottle_workSchedule(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endHour", n => { EndHour = n.GetIntValue(); } }, - { "endMinute", n => { EndMinute = n.GetIntValue(); } }, - { "startHour", n => { StartHour = n.GetIntValue(); } }, - { "startMinute", n => { StartMinute = n.GetIntValue(); } }, - { "weekDays", n => { WeekDays = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("endHour", EndHour); - writer.WriteIntValue("endMinute", EndMinute); - writer.WriteIntValue("startHour", StartHour); - writer.WriteIntValue("startMinute", StartMinute); - writer.WriteCollectionOfPrimitiveValues("weekDays", WeekDays); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_backupUsage.cs b/V2/Alerts/Alerts_device_references_backupUsage.cs deleted file mode 100644 index 5b3abe3..0000000 --- a/V2/Alerts/Alerts_device_references_backupUsage.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Device Backup Usage - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_backupUsage : 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; } - /// Revisions cloud file folder size - public long? CloudFileFolderSize { get; set; } - /// Revisions cloud image size - public long? CloudImageSize { get; set; } - /// Revisions cloud image v2 size - public long? CloudImageV2Size { get; set; } - /// Revisions cloud network share size - public long? CloudNetworkShareSize { get; set; } - /// Revisions cloud total size - public long? CloudTotalSize { get; private set; } - /// Last failed job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastFailedBackupJob { get; set; } - /// Last successful job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastSuccessfulBackupJob { get; set; } - /// Revisions local file folder size - public long? LocalFileFolderSize { get; set; } - /// Revisions local image size - public long? LocalImageSize { get; set; } - /// Revisions local image v2 size - public long? LocalImageV2Size { get; set; } - /// Revisions local total size - public long? LocalTotalSize { get; private set; } - /// Revisions current size - public long? RevisionsCurrentSize { get; set; } - /// Revisions deleted size - public long? RevisionsDeletedSize { get; set; } - /// Revisions previous size - public long? RevisionsPreviousSize { get; set; } - /// Revisions total size - public long? RevisionsTotalSize { get; private set; } - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_backupUsage() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_backupUsage CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_backupUsage(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cloudFileFolderSize", n => { CloudFileFolderSize = n.GetLongValue(); } }, - { "cloudImageSize", n => { CloudImageSize = n.GetLongValue(); } }, - { "cloudImageV2Size", n => { CloudImageV2Size = n.GetLongValue(); } }, - { "cloudNetworkShareSize", n => { CloudNetworkShareSize = n.GetLongValue(); } }, - { "cloudTotalSize", n => { CloudTotalSize = n.GetLongValue(); } }, - { "lastFailedBackupJob", n => { LastFailedBackupJob = n.GetDoubleValue(); } }, - { "lastSuccessfulBackupJob", n => { LastSuccessfulBackupJob = n.GetDoubleValue(); } }, - { "localFileFolderSize", n => { LocalFileFolderSize = n.GetLongValue(); } }, - { "localImageSize", n => { LocalImageSize = n.GetLongValue(); } }, - { "localImageV2Size", n => { LocalImageV2Size = n.GetLongValue(); } }, - { "localTotalSize", n => { LocalTotalSize = n.GetLongValue(); } }, - { "revisionsCurrentSize", n => { RevisionsCurrentSize = n.GetLongValue(); } }, - { "revisionsDeletedSize", n => { RevisionsDeletedSize = n.GetLongValue(); } }, - { "revisionsPreviousSize", n => { RevisionsPreviousSize = n.GetLongValue(); } }, - { "revisionsTotalSize", n => { RevisionsTotalSize = n.GetLongValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteLongValue("cloudFileFolderSize", CloudFileFolderSize); - writer.WriteLongValue("cloudImageSize", CloudImageSize); - writer.WriteLongValue("cloudImageV2Size", CloudImageV2Size); - writer.WriteLongValue("cloudNetworkShareSize", CloudNetworkShareSize); - writer.WriteDoubleValue("lastFailedBackupJob", LastFailedBackupJob); - writer.WriteDoubleValue("lastSuccessfulBackupJob", LastSuccessfulBackupJob); - writer.WriteLongValue("localFileFolderSize", LocalFileFolderSize); - writer.WriteLongValue("localImageSize", LocalImageSize); - writer.WriteLongValue("localImageV2Size", LocalImageV2Size); - writer.WriteLongValue("revisionsCurrentSize", RevisionsCurrentSize); - writer.WriteLongValue("revisionsDeletedSize", RevisionsDeletedSize); - writer.WriteLongValue("revisionsPreviousSize", RevisionsPreviousSize); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_location.cs b/V2/Alerts/Alerts_device_references_location.cs deleted file mode 100644 index 630a973..0000000 --- a/V2/Alerts/Alerts_device_references_location.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_location : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_location_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_location_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_location_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_location_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_location() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_location CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_location(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_location_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_location_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_location_fields.cs b/V2/Alerts/Alerts_device_references_location_fields.cs deleted file mode 100644 index 3bf862d..0000000 --- a/V2/Alerts/Alerts_device_references_location_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_location_fields : 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. - /// - public Alerts_device_references_location_fields() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_location_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_location_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_location_userData.cs b/V2/Alerts/Alerts_device_references_location_userData.cs deleted file mode 100644 index d9a76f5..0000000 --- a/V2/Alerts/Alerts_device_references_location_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_location_userData : 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. - /// - public Alerts_device_references_location_userData() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_location_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_location_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_organization.cs b/V2/Alerts/Alerts_device_references_organization.cs deleted file mode 100644 index 0e07153..0000000 --- a/V2/Alerts/Alerts_device_references_organization.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_organization : 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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_organization_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_organization_fields Fields { get; set; } -#endif - /// Organization identifier - public int? Id { get; set; } - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_organization_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_organization_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_organization_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_organization() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_organization CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_organization(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_organization_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_organization_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_organization_fields.cs b/V2/Alerts/Alerts_device_references_organization_fields.cs deleted file mode 100644 index 43640d4..0000000 --- a/V2/Alerts/Alerts_device_references_organization_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_organization_fields : 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. - /// - public Alerts_device_references_organization_fields() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_organization_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_organization_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_organization_nodeApprovalMode.cs b/V2/Alerts/Alerts_device_references_organization_nodeApprovalMode.cs deleted file mode 100644 index f777ec9..0000000 --- a/V2/Alerts/Alerts_device_references_organization_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_device_references_organization_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Alerts/Alerts_device_references_organization_userData.cs b/V2/Alerts/Alerts_device_references_organization_userData.cs deleted file mode 100644 index 4c99024..0000000 --- a/V2/Alerts/Alerts_device_references_organization_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_organization_userData : 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. - /// - public Alerts_device_references_organization_userData() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_organization_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_organization_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_policy.cs b/V2/Alerts/Alerts_device_references_policy.cs deleted file mode 100644 index c4ec955..0000000 --- a/V2/Alerts/Alerts_device_references_policy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_policy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_policy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_policy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_policy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_policy() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_policy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_policy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_policy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_policy_fields.cs b/V2/Alerts/Alerts_device_references_policy_fields.cs deleted file mode 100644 index 69a64b6..0000000 --- a/V2/Alerts/Alerts_device_references_policy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_policy_fields : 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. - /// - public Alerts_device_references_policy_fields() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_policy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_policy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_policy_nodeClass.cs b/V2/Alerts/Alerts_device_references_policy_nodeClass.cs deleted file mode 100644 index 5342c44..0000000 --- a/V2/Alerts/Alerts_device_references_policy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_device_references_policy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Alerts/Alerts_device_references_role.cs b/V2/Alerts/Alerts_device_references_role.cs deleted file mode 100644 index 1e82434..0000000 --- a/V2/Alerts/Alerts_device_references_role.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Device Role - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_role : 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; } - /// Chassis Type - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_role_chassisType? ChassisType { get; set; } - /// Date created - public double? Created { get; set; } - /// Is custom node role? - public bool? Custom { get; set; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_role_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_role_fields Fields { get; set; } -#endif - /// Icon -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Icon { get; set; } -#nullable restore -#else - public string Icon { get; set; } -#endif - /// Device Role identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_role_nodeClass? NodeClass { get; set; } - /// Node Role Parent Id - public int? NodeRoleParentId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_role() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_role CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_role(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "chassisType", n => { ChassisType = n.GetEnumValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "custom", n => { Custom = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_role_fields.CreateFromDiscriminatorValue); } }, - { "icon", n => { Icon = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleParentId", n => { NodeRoleParentId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("chassisType", ChassisType); - writer.WriteDoubleValue("created", Created); - writer.WriteBoolValue("custom", Custom); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("icon", Icon); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleParentId", NodeRoleParentId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_rolePolicy.cs b/V2/Alerts/Alerts_device_references_rolePolicy.cs deleted file mode 100644 index bc34a74..0000000 --- a/V2/Alerts/Alerts_device_references_rolePolicy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_rolePolicy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_rolePolicy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_rolePolicy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Alerts.Alerts_device_references_rolePolicy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_rolePolicy() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_rolePolicy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_rolePolicy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Alerts.Alerts_device_references_rolePolicy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_rolePolicy_fields.cs b/V2/Alerts/Alerts_device_references_rolePolicy_fields.cs deleted file mode 100644 index 0fd0190..0000000 --- a/V2/Alerts/Alerts_device_references_rolePolicy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_rolePolicy_fields : 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. - /// - public Alerts_device_references_rolePolicy_fields() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_rolePolicy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_rolePolicy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_rolePolicy_nodeClass.cs b/V2/Alerts/Alerts_device_references_rolePolicy_nodeClass.cs deleted file mode 100644 index 0912af7..0000000 --- a/V2/Alerts/Alerts_device_references_rolePolicy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_device_references_rolePolicy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Alerts/Alerts_device_references_role_chassisType.cs b/V2/Alerts/Alerts_device_references_role_chassisType.cs deleted file mode 100644 index 747bb96..0000000 --- a/V2/Alerts/Alerts_device_references_role_chassisType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// Chassis Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_device_references_role_chassisType - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "DESKTOP")] - #pragma warning disable CS1591 - DESKTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "LAPTOP")] - #pragma warning disable CS1591 - LAPTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "MOBILE")] - #pragma warning disable CS1591 - MOBILE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Alerts/Alerts_device_references_role_fields.cs b/V2/Alerts/Alerts_device_references_role_fields.cs deleted file mode 100644 index 61ac70e..0000000 --- a/V2/Alerts/Alerts_device_references_role_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_role_fields : 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. - /// - public Alerts_device_references_role_fields() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_role_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_role_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_references_role_nodeClass.cs b/V2/Alerts/Alerts_device_references_role_nodeClass.cs deleted file mode 100644 index 275543c..0000000 --- a/V2/Alerts/Alerts_device_references_role_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_device_references_role_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Alerts/Alerts_device_references_warranty.cs b/V2/Alerts/Alerts_device_references_warranty.cs deleted file mode 100644 index d184dc4..0000000 --- a/V2/Alerts/Alerts_device_references_warranty.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Warranty Info - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_warranty : 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; } - /// Warranty End Date (Seconds) - public double? EndDate { get; set; } - /// Manufacturer Fulfillment Date - public double? ManufacturerFulfillmentDate { get; set; } - /// Warranty Start Date (Seconds) - public double? StartDate { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_warranty() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_references_warranty CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_references_warranty(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endDate", n => { EndDate = n.GetDoubleValue(); } }, - { "manufacturerFulfillmentDate", n => { ManufacturerFulfillmentDate = n.GetDoubleValue(); } }, - { "startDate", n => { StartDate = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("endDate", EndDate); - writer.WriteDoubleValue("manufacturerFulfillmentDate", ManufacturerFulfillmentDate); - writer.WriteDoubleValue("startDate", StartDate); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_device_userData.cs b/V2/Alerts/Alerts_device_userData.cs deleted file mode 100644 index f98f4a9..0000000 --- a/V2/Alerts/Alerts_device_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_userData : 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. - /// - public Alerts_device_userData() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_device_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_device_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_psaTicketId.cs b/V2/Alerts/Alerts_psaTicketId.cs deleted file mode 100644 index 0890236..0000000 --- a/V2/Alerts/Alerts_psaTicketId.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// - /// Related PSA ticket ID - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_psaTicketId : 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. - /// - public Alerts_psaTicketId() - { - 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::NinjaOne.Client.V2.Alerts.Alerts_psaTicketId CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Alerts.Alerts_psaTicketId(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Alerts/Alerts_sourceType.cs b/V2/Alerts/Alerts_sourceType.cs deleted file mode 100644 index bca43f1..0000000 --- a/V2/Alerts/Alerts_sourceType.cs +++ /dev/null @@ -1,371 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Alerts -{ - /// Alert origin - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_sourceType - { - [EnumMember(Value = "AGENT_OFFLINE")] - #pragma warning disable CS1591 - AGENT_OFFLINE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_CPU")] - #pragma warning disable CS1591 - CONDITION_AGENT_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_MEMORY")] - #pragma warning disable CS1591 - CONDITION_AGENT_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_NETWORK")] - #pragma warning disable CS1591 - CONDITION_AGENT_NETWORK, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_DISK_IO")] - #pragma warning disable CS1591 - CONDITION_AGENT_DISK_IO, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_DISK_FREE_SPACE")] - #pragma warning disable CS1591 - CONDITION_AGENT_DISK_FREE_SPACE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_DISK_USAGE")] - #pragma warning disable CS1591 - CONDITION_AGENT_DISK_USAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_CVSS_SCORE")] - #pragma warning disable CS1591 - CONDITION_AGENT_CVSS_SCORE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_PATCH_LAST_INSTALLED")] - #pragma warning disable CS1591 - CONDITION_AGENT_PATCH_LAST_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_CPU")] - #pragma warning disable CS1591 - CONDITION_NMS_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_MEMORY")] - #pragma warning disable CS1591 - CONDITION_NMS_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_NETWORK_TRAFFIC_BITS")] - #pragma warning disable CS1591 - CONDITION_NMS_NETWORK_TRAFFIC_BITS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_NETWORK_TRAFFIC_PERCENT")] - #pragma warning disable CS1591 - CONDITION_NMS_NETWORK_TRAFFIC_PERCENT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_NETWORK_STATUS")] - #pragma warning disable CS1591 - CONDITION_NMS_NETWORK_STATUS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_NETWORK_STATUS_CHANGE")] - #pragma warning disable CS1591 - CONDITION_NMS_NETWORK_STATUS_CHANGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_SYSTEM_UPTIME")] - #pragma warning disable CS1591 - CONDITION_NMS_SYSTEM_UPTIME, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PING")] - #pragma warning disable CS1591 - CONDITION_PING, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PING_LATENCY")] - #pragma warning disable CS1591 - CONDITION_PING_LATENCY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PING_PACKET_LOSS")] - #pragma warning disable CS1591 - CONDITION_PING_PACKET_LOSS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PING_RESPONSE")] - #pragma warning disable CS1591 - CONDITION_PING_RESPONSE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SYSTEM_UPTIME")] - #pragma warning disable CS1591 - CONDITION_SYSTEM_UPTIME, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SMART_STATUS_DEGRATED")] - #pragma warning disable CS1591 - CONDITION_SMART_STATUS_DEGRATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_RAID_HEALTH_STATUS")] - #pragma warning disable CS1591 - CONDITION_RAID_HEALTH_STATUS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SCRIPT_RESULT")] - #pragma warning disable CS1591 - CONDITION_SCRIPT_RESULT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_HTTP")] - #pragma warning disable CS1591 - CONDITION_HTTP, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_HTTP_RESPONSE")] - #pragma warning disable CS1591 - CONDITION_HTTP_RESPONSE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PORT")] - #pragma warning disable CS1591 - CONDITION_PORT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PORT_SCAN")] - #pragma warning disable CS1591 - CONDITION_PORT_SCAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SYSLOG")] - #pragma warning disable CS1591 - CONDITION_SYSLOG, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_CONFIGURATION_FILE")] - #pragma warning disable CS1591 - CONDITION_CONFIGURATION_FILE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SNMPTRAP")] - #pragma warning disable CS1591 - CONDITION_SNMPTRAP, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_CRITICAL_EVENT")] - #pragma warning disable CS1591 - CONDITION_CRITICAL_EVENT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_DNS")] - #pragma warning disable CS1591 - CONDITION_DNS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_EMAIL")] - #pragma warning disable CS1591 - CONDITION_EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_CUSTOM_SNMP")] - #pragma warning disable CS1591 - CONDITION_CUSTOM_SNMP, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_COMPOUND")] - #pragma warning disable CS1591 - CONDITION_COMPOUND, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_CREATE")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_CREATE, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_UPDATE")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_UPDATE, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_DELETE")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_DELETE, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_EXECUTE")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_EXECUTE, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_MANAGEDFOLDER_CREATE")] - #pragma warning disable CS1591 - IMAGEMANAGER_MANAGEDFOLDER_CREATE, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_MANAGEDFOLDER_UPDATE")] - #pragma warning disable CS1591 - IMAGEMANAGER_MANAGEDFOLDER_UPDATE, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_MANAGEDFOLDER_DELETE")] - #pragma warning disable CS1591 - IMAGEMANAGER_MANAGEDFOLDER_DELETE, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_MANAGEDFOLDER_EXECUTE")] - #pragma warning disable CS1591 - IMAGEMANAGER_MANAGEDFOLDER_EXECUTE, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONNECTION")] - #pragma warning disable CS1591 - TEAMVIEWER_CONNECTION, - #pragma warning restore CS1591 - [EnumMember(Value = "RETRIEVE_AGENT_LOGS")] - #pragma warning disable CS1591 - RETRIEVE_AGENT_LOGS, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK")] - #pragma warning disable CS1591 - SCHEDULED_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_EVENT_LOG_TRIGGERED")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_EVENT_LOG_TRIGGERED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_SERVICE_STATE_CHANGED")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_SERVICE_STATE_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "UI_MESSAGE_ACTION_REBOOT")] - #pragma warning disable CS1591 - UI_MESSAGE_ACTION_REBOOT, - #pragma warning restore CS1591 - [EnumMember(Value = "UI_MESSAGE_BD_INSTALLATION_ISSUES")] - #pragma warning disable CS1591 - UI_MESSAGE_BD_INSTALLATION_ISSUES, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_UI_MESSAGE_INSTALLATION_ISSUES")] - #pragma warning disable CS1591 - GRAVITYZONE_UI_MESSAGE_INSTALLATION_ISSUES, - #pragma warning restore CS1591 - [EnumMember(Value = "AV_QUARANTINE_THREAT")] - #pragma warning disable CS1591 - AV_QUARANTINE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "AV_RESTORE_THREAT")] - #pragma warning disable CS1591 - AV_RESTORE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "AV_DELETE_THREAT")] - #pragma warning disable CS1591 - AV_DELETE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "AV_REMOVE_THREAT")] - #pragma warning disable CS1591 - AV_REMOVE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_RESTORE_THREAT")] - #pragma warning disable CS1591 - BITDEFENDER_RESTORE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DELETE_THREAT")] - #pragma warning disable CS1591 - BITDEFENDER_DELETE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_BITLOCKER_STATUS")] - #pragma warning disable CS1591 - CONDITION_BITLOCKER_STATUS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_FILEVAULT_STATUS")] - #pragma warning disable CS1591 - CONDITION_FILEVAULT_STATUS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_PROCESS")] - #pragma warning disable CS1591 - CONDITION_LINUX_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_Daemon")] - #pragma warning disable CS1591 - CONDITION_LINUX_Daemon, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_PROCESS_RESOURCE")] - #pragma warning disable CS1591 - CONDITION_LINUX_PROCESS_RESOURCE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_PROCESS_RESOURCE_CPU")] - #pragma warning disable CS1591 - CONDITION_LINUX_PROCESS_RESOURCE_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_PROCESS_RESOURCE_MEMORY")] - #pragma warning disable CS1591 - CONDITION_LINUX_PROCESS_RESOURCE_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_DISK_FREE_SPACE")] - #pragma warning disable CS1591 - CONDITION_LINUX_DISK_FREE_SPACE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_DISK_USAGE")] - #pragma warning disable CS1591 - CONDITION_LINUX_DISK_USAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_AGGREGATE_CPU_USAGE")] - #pragma warning disable CS1591 - CONDITION_VM_AGGREGATE_CPU_USAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_DISK_USAGE")] - #pragma warning disable CS1591 - CONDITION_VM_DISK_USAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_DATASTORE")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_DATASTORE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_UPTIME")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_UPTIME, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_DEVICE_DOWN")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_DEVICE_DOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_BAD_SENSORS")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_BAD_SENSORS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_SENSOR_HEALTH")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_SENSOR_HEALTH, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_GUEST_GUEST_OPERATIONAL_MODE")] - #pragma warning disable CS1591 - CONDITION_VM_GUEST_GUEST_OPERATIONAL_MODE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_GUEST_SNAPSHOT_SIZE")] - #pragma warning disable CS1591 - CONDITION_VM_GUEST_SNAPSHOT_SIZE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_GUEST_SNAPSHOT_LIFESPAN")] - #pragma warning disable CS1591 - CONDITION_VM_GUEST_SNAPSHOT_LIFESPAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_GUEST_TOOLS_NOT_RUNNING")] - #pragma warning disable CS1591 - CONDITION_VM_GUEST_TOOLS_NOT_RUNNING, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_HV_GUEST_CHECKPOINT_SIZE")] - #pragma warning disable CS1591 - CONDITION_HV_GUEST_CHECKPOINT_SIZE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_HV_GUEST_CHECKPOINT_LIFESPAN")] - #pragma warning disable CS1591 - CONDITION_HV_GUEST_CHECKPOINT_LIFESPAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SOFTWARE")] - #pragma warning disable CS1591 - CONDITION_SOFTWARE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_PROCESS_STATE")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_PROCESS_STATE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_PROCESS_RESOURCE_CPU")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_PROCESS_RESOURCE_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_PROCESS_RESOURCE_MEMORY")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_PROCESS_RESOURCE_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_MAC_PROCESS_STATE")] - #pragma warning disable CS1591 - CONDITION_MAC_PROCESS_STATE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_MAC_PROCESS_RESOURCE_CPU")] - #pragma warning disable CS1591 - CONDITION_MAC_PROCESS_RESOURCE_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_MAC_PROCESS_RESOURCE_MEMORY")] - #pragma warning disable CS1591 - CONDITION_MAC_PROCESS_RESOURCE_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_MAC_DEAMON")] - #pragma warning disable CS1591 - CONDITION_MAC_DEAMON, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_CUSTOM_FIELD")] - #pragma warning disable CS1591 - CONDITION_CUSTOM_FIELD, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PENDING_REBOOT")] - #pragma warning disable CS1591 - CONDITION_PENDING_REBOOT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Attachments/AttachmentsRequestBuilder.cs b/V2/Attachments/AttachmentsRequestBuilder.cs deleted file mode 100644 index 8e99ad7..0000000 --- a/V2/Attachments/AttachmentsRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Attachments.Temp; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Attachments -{ - /// - /// Builds and executes requests for operations under \v2\attachments - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AttachmentsRequestBuilder : BaseRequestBuilder - { - /// The temp property - public global::NinjaOne.Client.V2.Attachments.Temp.TempRequestBuilder Temp - { - get => new global::NinjaOne.Client.V2.Attachments.Temp.TempRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public AttachmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/attachments", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/attachments", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/TempRequestBuilder.cs b/V2/Attachments/Temp/TempRequestBuilder.cs deleted file mode 100644 index 153d223..0000000 --- a/V2/Attachments/Temp/TempRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Attachments.Temp.Upload; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp -{ - /// - /// Builds and executes requests for operations under \v2\attachments\temp - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TempRequestBuilder : BaseRequestBuilder - { - /// The upload property - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadRequestBuilder Upload - { - get => new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public TempRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/attachments/temp", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TempRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/attachments/temp", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/PostEntityTypeQueryParameterType.cs b/V2/Attachments/Temp/Upload/PostEntityTypeQueryParameterType.cs deleted file mode 100644 index 1c36250..0000000 --- a/V2/Attachments/Temp/Upload/PostEntityTypeQueryParameterType.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum PostEntityTypeQueryParameterType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TICKET")] - #pragma warning disable CS1591 - TICKET, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM")] - #pragma warning disable CS1591 - RELATED_ITEM, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOMATION")] - #pragma warning disable CS1591 - AUTOMATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "TRIGGER")] - #pragma warning disable CS1591 - TRIGGER, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "FILE_TRANSFER_AUTOMATION")] - #pragma warning disable CS1591 - FILE_TRANSFER_AUTOMATION, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "EMAIL_TEMPLATE")] - #pragma warning disable CS1591 - EMAIL_TEMPLATE, - #pragma warning restore CS1591 - [EnumMember(Value = "POLICY")] - #pragma warning disable CS1591 - POLICY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Attachments/Temp/Upload/Upload.cs b/V2/Attachments/Temp/Upload/Upload.cs deleted file mode 100644 index 1c5cde7..0000000 --- a/V2/Attachments/Temp/Upload/Upload.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Upload : 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; } - /// Content identifier -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ContentId { get; set; } -#nullable restore -#else - public string ContentId { get; set; } -#endif - /// File extension -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Extension { get; set; } -#nullable restore -#else - public string Extension { get; set; } -#endif - /// Mime type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MimeType { get; set; } -#nullable restore -#else - public string MimeType { get; set; } -#endif - /// name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Size in bytes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Size { get; set; } -#nullable restore -#else - public string Size { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Upload() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.Upload CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.Upload(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "contentId", n => { ContentId = n.GetStringValue(); } }, - { "extension", n => { Extension = n.GetStringValue(); } }, - { "mimeType", n => { MimeType = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "size", n => { Size = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("contentId", ContentId); - writer.WriteStringValue("extension", Extension); - writer.WriteStringValue("mimeType", MimeType); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("size", Size); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody.cs deleted file mode 100644 index cfbd463..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody : 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 files property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Files { get; set; } -#nullable restore -#else - public List Files { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UploadPostRequestBody() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "files", n => { Files = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("files", Files); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files.cs deleted file mode 100644 index 46fc099..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files.cs +++ /dev/null @@ -1,169 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files : 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 contentDisposition property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_contentDisposition? ContentDisposition { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_contentDisposition ContentDisposition { get; set; } -#endif - /// The entity property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_entity? Entity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_entity Entity { get; set; } -#endif - /// The formDataContentDisposition property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_formDataContentDisposition? FormDataContentDisposition { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_formDataContentDisposition FormDataContentDisposition { get; set; } -#endif - /// The headers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_headers? Headers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_headers Headers { get; set; } -#endif - /// The mediaType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_mediaType? MediaType { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_mediaType MediaType { get; set; } -#endif - /// The messageBodyWorkers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_messageBodyWorkers? MessageBodyWorkers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_messageBodyWorkers MessageBodyWorkers { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The parameterizedHeaders property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parameterizedHeaders? ParameterizedHeaders { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parameterizedHeaders ParameterizedHeaders { get; set; } -#endif - /// The parent property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent? Parent { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent Parent { get; set; } -#endif - /// The providers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_providers? Providers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_providers Providers { get; set; } -#endif - /// The simple property - public bool? Simple { get; set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UploadPostRequestBody_files() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "contentDisposition", n => { ContentDisposition = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_contentDisposition.CreateFromDiscriminatorValue); } }, - { "entity", n => { Entity = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_entity.CreateFromDiscriminatorValue); } }, - { "formDataContentDisposition", n => { FormDataContentDisposition = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_formDataContentDisposition.CreateFromDiscriminatorValue); } }, - { "headers", n => { Headers = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_headers.CreateFromDiscriminatorValue); } }, - { "mediaType", n => { MediaType = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_mediaType.CreateFromDiscriminatorValue); } }, - { "messageBodyWorkers", n => { MessageBodyWorkers = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_messageBodyWorkers.CreateFromDiscriminatorValue); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "parameterizedHeaders", n => { ParameterizedHeaders = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parameterizedHeaders.CreateFromDiscriminatorValue); } }, - { "parent", n => { Parent = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent.CreateFromDiscriminatorValue); } }, - { "providers", n => { Providers = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_providers.CreateFromDiscriminatorValue); } }, - { "simple", n => { Simple = n.GetBoolValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("contentDisposition", ContentDisposition); - writer.WriteObjectValue("entity", Entity); - writer.WriteObjectValue("formDataContentDisposition", FormDataContentDisposition); - writer.WriteObjectValue("headers", Headers); - writer.WriteObjectValue("mediaType", MediaType); - writer.WriteObjectValue("messageBodyWorkers", MessageBodyWorkers); - writer.WriteStringValue("name", Name); - writer.WriteObjectValue("parameterizedHeaders", ParameterizedHeaders); - writer.WriteObjectValue("parent", Parent); - writer.WriteObjectValue("providers", Providers); - writer.WriteBoolValue("simple", Simple); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_contentDisposition.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_contentDisposition.cs deleted file mode 100644 index 121fb16..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_contentDisposition.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_contentDisposition : 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 creationDate property - public DateTimeOffset? CreationDate { get; set; } - /// The fileName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileName { get; set; } -#nullable restore -#else - public string FileName { get; set; } -#endif - /// The modificationDate property - public DateTimeOffset? ModificationDate { get; set; } - /// The parameters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_contentDisposition_parameters? Parameters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_contentDisposition_parameters Parameters { get; set; } -#endif - /// The readDate property - public DateTimeOffset? ReadDate { get; set; } - /// The size property - public long? Size { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UploadPostRequestBody_files_contentDisposition() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_contentDisposition CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_contentDisposition(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "creationDate", n => { CreationDate = n.GetDateTimeOffsetValue(); } }, - { "fileName", n => { FileName = n.GetStringValue(); } }, - { "modificationDate", n => { ModificationDate = n.GetDateTimeOffsetValue(); } }, - { "parameters", n => { Parameters = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_contentDisposition_parameters.CreateFromDiscriminatorValue); } }, - { "readDate", n => { ReadDate = n.GetDateTimeOffsetValue(); } }, - { "size", n => { Size = n.GetLongValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDateTimeOffsetValue("creationDate", CreationDate); - writer.WriteStringValue("fileName", FileName); - writer.WriteDateTimeOffsetValue("modificationDate", ModificationDate); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteDateTimeOffsetValue("readDate", ReadDate); - writer.WriteLongValue("size", Size); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_contentDisposition_parameters.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_contentDisposition_parameters.cs deleted file mode 100644 index d4a7329..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_contentDisposition_parameters.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_contentDisposition_parameters : 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. - /// - public UploadPostRequestBody_files_contentDisposition_parameters() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_contentDisposition_parameters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_contentDisposition_parameters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_entity.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_entity.cs deleted file mode 100644 index 07ce00f..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_entity.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_entity : 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. - /// - public UploadPostRequestBody_files_entity() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_entity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_entity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_formDataContentDisposition.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_formDataContentDisposition.cs deleted file mode 100644 index d93fcff..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_formDataContentDisposition.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_formDataContentDisposition : 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 creationDate property - public DateTimeOffset? CreationDate { get; set; } - /// The fileName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileName { get; set; } -#nullable restore -#else - public string FileName { get; set; } -#endif - /// The modificationDate property - public DateTimeOffset? ModificationDate { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The parameters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_formDataContentDisposition_parameters? Parameters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_formDataContentDisposition_parameters Parameters { get; set; } -#endif - /// The readDate property - public DateTimeOffset? ReadDate { get; set; } - /// The size property - public long? Size { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UploadPostRequestBody_files_formDataContentDisposition() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_formDataContentDisposition CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_formDataContentDisposition(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "creationDate", n => { CreationDate = n.GetDateTimeOffsetValue(); } }, - { "fileName", n => { FileName = n.GetStringValue(); } }, - { "modificationDate", n => { ModificationDate = n.GetDateTimeOffsetValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "parameters", n => { Parameters = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_formDataContentDisposition_parameters.CreateFromDiscriminatorValue); } }, - { "readDate", n => { ReadDate = n.GetDateTimeOffsetValue(); } }, - { "size", n => { Size = n.GetLongValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDateTimeOffsetValue("creationDate", CreationDate); - writer.WriteStringValue("fileName", FileName); - writer.WriteDateTimeOffsetValue("modificationDate", ModificationDate); - writer.WriteStringValue("name", Name); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteDateTimeOffsetValue("readDate", ReadDate); - writer.WriteLongValue("size", Size); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_formDataContentDisposition_parameters.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_formDataContentDisposition_parameters.cs deleted file mode 100644 index 1b3b93e..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_formDataContentDisposition_parameters.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_formDataContentDisposition_parameters : 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. - /// - public UploadPostRequestBody_files_formDataContentDisposition_parameters() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_formDataContentDisposition_parameters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_formDataContentDisposition_parameters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_headers.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_headers.cs deleted file mode 100644 index 858dae7..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_headers : 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. - /// - public UploadPostRequestBody_files_headers() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_headers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_headers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_mediaType.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_mediaType.cs deleted file mode 100644 index 239dad1..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_mediaType.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_mediaType : 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 parameters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_mediaType_parameters? Parameters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_mediaType_parameters Parameters { get; set; } -#endif - /// The subtype property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subtype { get; set; } -#nullable restore -#else - public string Subtype { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// The wildcardSubtype property - public bool? WildcardSubtype { get; set; } - /// The wildcardType property - public bool? WildcardType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public UploadPostRequestBody_files_mediaType() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_mediaType CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_mediaType(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "parameters", n => { Parameters = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_mediaType_parameters.CreateFromDiscriminatorValue); } }, - { "subtype", n => { Subtype = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - { "wildcardSubtype", n => { WildcardSubtype = n.GetBoolValue(); } }, - { "wildcardType", n => { WildcardType = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteStringValue("subtype", Subtype); - writer.WriteStringValue("type", Type); - writer.WriteBoolValue("wildcardSubtype", WildcardSubtype); - writer.WriteBoolValue("wildcardType", WildcardType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_mediaType_parameters.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_mediaType_parameters.cs deleted file mode 100644 index ee8ed25..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_mediaType_parameters.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_mediaType_parameters : 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. - /// - public UploadPostRequestBody_files_mediaType_parameters() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_mediaType_parameters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_mediaType_parameters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_messageBodyWorkers.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_messageBodyWorkers.cs deleted file mode 100644 index 0563c8f..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_messageBodyWorkers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_messageBodyWorkers : 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. - /// - public UploadPostRequestBody_files_messageBodyWorkers() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_messageBodyWorkers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_messageBodyWorkers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parameterizedHeaders.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parameterizedHeaders.cs deleted file mode 100644 index 961dd49..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parameterizedHeaders.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_parameterizedHeaders : 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. - /// - public UploadPostRequestBody_files_parameterizedHeaders() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parameterizedHeaders CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parameterizedHeaders(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent.cs deleted file mode 100644 index b897497..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using NinjaOne.Client.Models; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_parent : 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 bodyParts property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? BodyParts { get; set; } -#nullable restore -#else - public List BodyParts { get; set; } -#endif - /// The contentDisposition property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_contentDisposition? ContentDisposition { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_contentDisposition ContentDisposition { get; set; } -#endif - /// The entity property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_entity? Entity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_entity Entity { get; set; } -#endif - /// The headers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_headers? Headers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_headers Headers { get; set; } -#endif - /// The mediaType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_mediaType? MediaType { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_mediaType MediaType { get; set; } -#endif - /// The messageBodyWorkers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_messageBodyWorkers? MessageBodyWorkers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_messageBodyWorkers MessageBodyWorkers { get; set; } -#endif - /// The parameterizedHeaders property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_parameterizedHeaders? ParameterizedHeaders { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_parameterizedHeaders ParameterizedHeaders { get; set; } -#endif - /// The parent property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.MultiPart? Parent { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.MultiPart Parent { get; set; } -#endif - /// The providers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_providers? Providers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_providers Providers { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UploadPostRequestBody_files_parent() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "bodyParts", n => { BodyParts = n.GetCollectionOfObjectValues(global::NinjaOne.Client.Models.BodyPart.CreateFromDiscriminatorValue)?.AsList(); } }, - { "contentDisposition", n => { ContentDisposition = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_contentDisposition.CreateFromDiscriminatorValue); } }, - { "entity", n => { Entity = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_entity.CreateFromDiscriminatorValue); } }, - { "headers", n => { Headers = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_headers.CreateFromDiscriminatorValue); } }, - { "mediaType", n => { MediaType = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_mediaType.CreateFromDiscriminatorValue); } }, - { "messageBodyWorkers", n => { MessageBodyWorkers = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_messageBodyWorkers.CreateFromDiscriminatorValue); } }, - { "parameterizedHeaders", n => { ParameterizedHeaders = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_parameterizedHeaders.CreateFromDiscriminatorValue); } }, - { "parent", n => { Parent = n.GetObjectValue(global::NinjaOne.Client.Models.MultiPart.CreateFromDiscriminatorValue); } }, - { "providers", n => { Providers = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_providers.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("bodyParts", BodyParts); - writer.WriteObjectValue("contentDisposition", ContentDisposition); - writer.WriteObjectValue("entity", Entity); - writer.WriteObjectValue("headers", Headers); - writer.WriteObjectValue("mediaType", MediaType); - writer.WriteObjectValue("messageBodyWorkers", MessageBodyWorkers); - writer.WriteObjectValue("parameterizedHeaders", ParameterizedHeaders); - writer.WriteObjectValue("parent", Parent); - writer.WriteObjectValue("providers", Providers); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_contentDisposition.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_contentDisposition.cs deleted file mode 100644 index ff68adc..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_contentDisposition.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_parent_contentDisposition : 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 creationDate property - public DateTimeOffset? CreationDate { get; set; } - /// The fileName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileName { get; set; } -#nullable restore -#else - public string FileName { get; set; } -#endif - /// The modificationDate property - public DateTimeOffset? ModificationDate { get; set; } - /// The parameters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_contentDisposition_parameters? Parameters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_contentDisposition_parameters Parameters { get; set; } -#endif - /// The readDate property - public DateTimeOffset? ReadDate { get; set; } - /// The size property - public long? Size { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UploadPostRequestBody_files_parent_contentDisposition() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_contentDisposition CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_contentDisposition(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "creationDate", n => { CreationDate = n.GetDateTimeOffsetValue(); } }, - { "fileName", n => { FileName = n.GetStringValue(); } }, - { "modificationDate", n => { ModificationDate = n.GetDateTimeOffsetValue(); } }, - { "parameters", n => { Parameters = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_contentDisposition_parameters.CreateFromDiscriminatorValue); } }, - { "readDate", n => { ReadDate = n.GetDateTimeOffsetValue(); } }, - { "size", n => { Size = n.GetLongValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDateTimeOffsetValue("creationDate", CreationDate); - writer.WriteStringValue("fileName", FileName); - writer.WriteDateTimeOffsetValue("modificationDate", ModificationDate); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteDateTimeOffsetValue("readDate", ReadDate); - writer.WriteLongValue("size", Size); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_contentDisposition_parameters.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_contentDisposition_parameters.cs deleted file mode 100644 index 03597c6..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_contentDisposition_parameters.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_parent_contentDisposition_parameters : 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. - /// - public UploadPostRequestBody_files_parent_contentDisposition_parameters() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_contentDisposition_parameters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_contentDisposition_parameters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_entity.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_entity.cs deleted file mode 100644 index ae0ed90..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_entity.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_parent_entity : 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. - /// - public UploadPostRequestBody_files_parent_entity() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_entity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_entity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_headers.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_headers.cs deleted file mode 100644 index 4998d98..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_parent_headers : 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. - /// - public UploadPostRequestBody_files_parent_headers() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_headers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_headers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_mediaType.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_mediaType.cs deleted file mode 100644 index 0838abc..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_mediaType.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_parent_mediaType : 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 parameters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_mediaType_parameters? Parameters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_mediaType_parameters Parameters { get; set; } -#endif - /// The subtype property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subtype { get; set; } -#nullable restore -#else - public string Subtype { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// The wildcardSubtype property - public bool? WildcardSubtype { get; set; } - /// The wildcardType property - public bool? WildcardType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public UploadPostRequestBody_files_parent_mediaType() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_mediaType CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_mediaType(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "parameters", n => { Parameters = n.GetObjectValue(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_mediaType_parameters.CreateFromDiscriminatorValue); } }, - { "subtype", n => { Subtype = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - { "wildcardSubtype", n => { WildcardSubtype = n.GetBoolValue(); } }, - { "wildcardType", n => { WildcardType = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteStringValue("subtype", Subtype); - writer.WriteStringValue("type", Type); - writer.WriteBoolValue("wildcardSubtype", WildcardSubtype); - writer.WriteBoolValue("wildcardType", WildcardType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_mediaType_parameters.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_mediaType_parameters.cs deleted file mode 100644 index 6d1f374..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_mediaType_parameters.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_parent_mediaType_parameters : 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. - /// - public UploadPostRequestBody_files_parent_mediaType_parameters() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_mediaType_parameters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_mediaType_parameters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_messageBodyWorkers.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_messageBodyWorkers.cs deleted file mode 100644 index dbefc51..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_messageBodyWorkers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_parent_messageBodyWorkers : 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. - /// - public UploadPostRequestBody_files_parent_messageBodyWorkers() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_messageBodyWorkers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_messageBodyWorkers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_parameterizedHeaders.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_parameterizedHeaders.cs deleted file mode 100644 index 71a30fb..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_parameterizedHeaders.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_parent_parameterizedHeaders : 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. - /// - public UploadPostRequestBody_files_parent_parameterizedHeaders() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_parameterizedHeaders CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_parameterizedHeaders(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_providers.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_providers.cs deleted file mode 100644 index 182f68f..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_parent_providers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_parent_providers : 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. - /// - public UploadPostRequestBody_files_parent_providers() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_providers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_parent_providers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_providers.cs b/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_providers.cs deleted file mode 100644 index f5b1e94..0000000 --- a/V2/Attachments/Temp/Upload/UploadPostRequestBody_files_providers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostRequestBody_files_providers : 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. - /// - public UploadPostRequestBody_files_providers() - { - 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::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_providers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody_files_providers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Attachments/Temp/Upload/UploadRequestBuilder.cs b/V2/Attachments/Temp/Upload/UploadRequestBuilder.cs deleted file mode 100644 index 3e5851b..0000000 --- a/V2/Attachments/Temp/Upload/UploadRequestBuilder.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Attachments.Temp.Upload -{ - /// - /// Builds and executes requests for operations under \v2\attachments\temp\upload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class UploadRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public UploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/attachments/temp/upload{?entityType*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public UploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/attachments/temp/upload{?entityType*}", rawUrl) - { - } - /// - /// Upload temporary attachment - /// - /// A List<global::NinjaOne.Client.V2.Attachments.Temp.Upload.Upload> - /// The request body - /// 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?> PostAsync(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PostAsync(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Attachments.Temp.Upload.Upload.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Upload temporary attachment - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "multipart/form-data", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Attachments.Temp.Upload.UploadRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Upload temporary attachment - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class UploadRequestBuilderPostQueryParameters - { - [Obsolete("This property is deprecated, use EntityTypeAsPostEntityTypeQueryParameterType instead")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("entityType")] - public string? EntityType { get; set; } -#nullable restore -#else - [QueryParameter("entityType")] - public string EntityType { get; set; } -#endif - [QueryParameter("entityType")] - public global::NinjaOne.Client.V2.Attachments.Temp.Upload.PostEntityTypeQueryParameterType? EntityTypeAsPostEntityTypeQueryParameterType { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class UploadRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Automation/AutomationRequestBuilder.cs b/V2/Automation/AutomationRequestBuilder.cs deleted file mode 100644 index 9c8039b..0000000 --- a/V2/Automation/AutomationRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Automation.Scripts; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Automation -{ - /// - /// Builds and executes requests for operations under \v2\automation - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AutomationRequestBuilder : BaseRequestBuilder - { - /// The scripts property - public global::NinjaOne.Client.V2.Automation.Scripts.ScriptsRequestBuilder Scripts - { - get => new global::NinjaOne.Client.V2.Automation.Scripts.ScriptsRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public AutomationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/automation", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public AutomationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/automation", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Automation/Scripts/Scripts.cs b/V2/Automation/Scripts/Scripts.cs deleted file mode 100644 index 389bd58..0000000 --- a/V2/Automation/Scripts/Scripts.cs +++ /dev/null @@ -1,164 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Automation.Scripts -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Scripts : ApiException, IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Script is Active - public bool? Active { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Applicable Architectures -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Architecture { get; set; } -#nullable restore -#else - public List Architecture { get; set; } -#endif - /// Script Created By -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? CreatedBy { get; set; } -#nullable restore -#else - public string CreatedBy { get; set; } -#endif - /// Script date of creation - public double? CreatedOn { get; set; } - /// Script Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Script ID - public int? Id { get; set; } - /// Script Language -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Language { get; set; } -#nullable restore -#else - public string Language { get; set; } -#endif - /// Script Last Updated By -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastUpdatedBy { get; set; } -#nullable restore -#else - public string LastUpdatedBy { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Script Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Applicable Operating Systems -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? OperatingSystems { get; set; } -#nullable restore -#else - public List OperatingSystems { get; set; } -#endif - /// Script Parameters -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ScriptParameters { get; set; } -#nullable restore -#else - public List ScriptParameters { get; set; } -#endif - /// Script Variables -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ScriptVariables { get; set; } -#nullable restore -#else - public List ScriptVariables { get; set; } -#endif - /// Script last updated date - public double? UpdatedOn { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Scripts() - { - 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::NinjaOne.Client.V2.Automation.Scripts.Scripts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Automation.Scripts.Scripts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "architecture", n => { Architecture = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "createdBy", n => { CreatedBy = n.GetStringValue(); } }, - { "createdOn", n => { CreatedOn = n.GetDoubleValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "language", n => { Language = n.GetStringValue(); } }, - { "lastUpdatedBy", n => { LastUpdatedBy = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "operatingSystems", n => { OperatingSystems = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "scriptParameters", n => { ScriptParameters = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "scriptVariables", n => { ScriptVariables = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Automation.Scripts.Scripts_scriptVariables.CreateFromDiscriminatorValue)?.AsList(); } }, - { "updatedOn", n => { UpdatedOn = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteCollectionOfPrimitiveValues("architecture", Architecture); - writer.WriteStringValue("createdBy", CreatedBy); - writer.WriteDoubleValue("createdOn", CreatedOn); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("language", Language); - writer.WriteStringValue("lastUpdatedBy", LastUpdatedBy); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("operatingSystems", OperatingSystems); - writer.WriteCollectionOfPrimitiveValues("scriptParameters", ScriptParameters); - writer.WriteCollectionOfObjectValues("scriptVariables", ScriptVariables); - writer.WriteDoubleValue("updatedOn", UpdatedOn); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Automation/Scripts/ScriptsRequestBuilder.cs b/V2/Automation/Scripts/ScriptsRequestBuilder.cs deleted file mode 100644 index ec616fb..0000000 --- a/V2/Automation/Scripts/ScriptsRequestBuilder.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Automation.Scripts -{ - /// - /// Builds and executes requests for operations under \v2\automation\scripts - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScriptsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ScriptsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/automation/scripts{?lang*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ScriptsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/automation/scripts{?lang*}", rawUrl) - { - } - /// - /// Returns list of all available automation scripts - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Automation.Scripts.Scripts.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of all available automation scripts - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Automation.Scripts.ScriptsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Automation.Scripts.ScriptsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of all available automation scripts - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScriptsRequestBuilderGetQueryParameters - { - /// Language -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("lang")] - public string? Lang { get; set; } -#nullable restore -#else - [QueryParameter("lang")] - public string Lang { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScriptsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Automation/Scripts/Scripts_scriptVariables.cs b/V2/Automation/Scripts/Scripts_scriptVariables.cs deleted file mode 100644 index 731b791..0000000 --- a/V2/Automation/Scripts/Scripts_scriptVariables.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Automation.Scripts -{ - /// - /// Script Variables - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Scripts_scriptVariables : 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; } - /// Script Variable Default Value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DefaultValue { get; set; } -#nullable restore -#else - public string DefaultValue { get; set; } -#endif - /// Script Variable Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Script Variable ID -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Script Variable Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Script Variable is Required - public bool? Required { get; set; } - /// Script Variable Source - public global::NinjaOne.Client.V2.Automation.Scripts.Scripts_scriptVariables_source? Source { get; set; } - /// Script Variable Type - public global::NinjaOne.Client.V2.Automation.Scripts.Scripts_scriptVariables_type? Type { get; set; } - /// Script Variable List of Possible Values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ValueList { get; set; } -#nullable restore -#else - public List ValueList { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Scripts_scriptVariables() - { - 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::NinjaOne.Client.V2.Automation.Scripts.Scripts_scriptVariables CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Automation.Scripts.Scripts_scriptVariables(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "defaultValue", n => { DefaultValue = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "source", n => { Source = n.GetEnumValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "valueList", n => { ValueList = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("defaultValue", DefaultValue); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteBoolValue("required", Required); - writer.WriteEnumValue("source", Source); - writer.WriteEnumValue("type", Type); - writer.WriteCollectionOfPrimitiveValues("valueList", ValueList); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Automation/Scripts/Scripts_scriptVariables_source.cs b/V2/Automation/Scripts/Scripts_scriptVariables_source.cs deleted file mode 100644 index 79554f3..0000000 --- a/V2/Automation/Scripts/Scripts_scriptVariables_source.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Automation.Scripts -{ - /// Script Variable Source - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Scripts_scriptVariables_source - { - [EnumMember(Value = "LITERAL")] - #pragma warning disable CS1591 - LITERAL, - #pragma warning restore CS1591 - [EnumMember(Value = "OTHER")] - #pragma warning disable CS1591 - OTHER, - #pragma warning restore CS1591 - } -} diff --git a/V2/Automation/Scripts/Scripts_scriptVariables_type.cs b/V2/Automation/Scripts/Scripts_scriptVariables_type.cs deleted file mode 100644 index 2171357..0000000 --- a/V2/Automation/Scripts/Scripts_scriptVariables_type.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Automation.Scripts -{ - /// Script Variable Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Scripts_scriptVariables_type - { - [EnumMember(Value = "CHECKBOX")] - #pragma warning disable CS1591 - CHECKBOX, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE")] - #pragma warning disable CS1591 - DATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DATETIME")] - #pragma warning disable CS1591 - DATETIME, - #pragma warning restore CS1591 - [EnumMember(Value = "DECIMAL")] - #pragma warning disable CS1591 - DECIMAL, - #pragma warning restore CS1591 - [EnumMember(Value = "INTEGER")] - #pragma warning disable CS1591 - INTEGER, - #pragma warning restore CS1591 - [EnumMember(Value = "IPADDRESS")] - #pragma warning disable CS1591 - IPADDRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "DROPDOWN")] - #pragma warning disable CS1591 - DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT")] - #pragma warning disable CS1591 - TEXT, - #pragma warning restore CS1591 - [EnumMember(Value = "OTHER")] - #pragma warning disable CS1591 - OTHER, - #pragma warning restore CS1591 - } -} diff --git a/V2/Checklist/Archive/Archive.cs b/V2/Checklist/Archive/Archive.cs deleted file mode 100644 index ac74efa..0000000 --- a/V2/Checklist/Archive/Archive.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Archive -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Archive : 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; } - /// Indicates if the checklist template is archived - public bool? Archived { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Checklist.Archive.Archive_archivedBy? ArchivedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Checklist.Archive.Archive_archivedBy ArchivedBy { get; set; } -#endif - /// Archive time - public double? ArchiveTime { get; set; } - /// Task description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Checklist.Archive.Archive_description? Description { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Checklist.Archive.Archive_description Description { get; set; } -#endif - /// Identifier - public int? Id { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Checklist.Archive.Archive_lastUpdatedBy? LastUpdatedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Checklist.Archive.Archive_lastUpdatedBy LastUpdatedBy { get; set; } -#endif - /// Last updated on - public double? LastUpdatedOn { get; set; } - /// Checklist template name (must be unique) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Indicates if the checklist completion is required - public bool? Required { get; set; } - /// Checklist template tasks -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tasks { get; set; } -#nullable restore -#else - public List Tasks { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Archive() - { - 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::NinjaOne.Client.V2.Checklist.Archive.Archive CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Archive.Archive(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "archiveTime", n => { ArchiveTime = n.GetDoubleValue(); } }, - { "archived", n => { Archived = n.GetBoolValue(); } }, - { "archivedBy", n => { ArchivedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Checklist.Archive.Archive_archivedBy.CreateFromDiscriminatorValue); } }, - { "description", n => { Description = n.GetObjectValue(global::NinjaOne.Client.V2.Checklist.Archive.Archive_description.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastUpdatedBy", n => { LastUpdatedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Checklist.Archive.Archive_lastUpdatedBy.CreateFromDiscriminatorValue); } }, - { "lastUpdatedOn", n => { LastUpdatedOn = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tasks", n => { Tasks = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Checklist.Archive.Archive_tasks.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("archived", Archived); - writer.WriteObjectValue("archivedBy", ArchivedBy); - writer.WriteDoubleValue("archiveTime", ArchiveTime); - writer.WriteObjectValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("lastUpdatedBy", LastUpdatedBy); - writer.WriteDoubleValue("lastUpdatedOn", LastUpdatedOn); - writer.WriteStringValue("name", Name); - writer.WriteBoolValue("required", Required); - writer.WriteCollectionOfObjectValues("tasks", Tasks); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Archive/ArchivePostRequestBody.cs b/V2/Checklist/Archive/ArchivePostRequestBody.cs deleted file mode 100644 index ac4ca01..0000000 --- a/V2/Checklist/Archive/ArchivePostRequestBody.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Archive -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ArchivePostRequestBody : 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 checklistTemplateIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ChecklistTemplateIds { get; set; } -#nullable restore -#else - public List ChecklistTemplateIds { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ArchivePostRequestBody() - { - 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::NinjaOne.Client.V2.Checklist.Archive.ArchivePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Archive.ArchivePostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "checklistTemplateIds", n => { ChecklistTemplateIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("checklistTemplateIds", ChecklistTemplateIds); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Archive/ArchiveRequestBuilder.cs b/V2/Checklist/Archive/ArchiveRequestBuilder.cs deleted file mode 100644 index 6cb263e..0000000 --- a/V2/Checklist/Archive/ArchiveRequestBuilder.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Checklist.Archive -{ - /// - /// Builds and executes requests for operations under \v2\checklist\archive - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchiveRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ArchiveRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/checklist/archive", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ArchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/checklist/archive", rawUrl) - { - } - /// - /// Archive a checklist template by id - /// - /// A List<global::NinjaOne.Client.V2.Checklist.Archive.Archive> - /// The request body - /// 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?> PostAsync(global::NinjaOne.Client.V2.Checklist.Archive.ArchivePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PostAsync(global::NinjaOne.Client.V2.Checklist.Archive.ArchivePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Checklist.Archive.Archive.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Archive a checklist template by id - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Checklist.Archive.ArchivePostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Checklist.Archive.ArchivePostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Checklist.Archive.ArchiveRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Checklist.Archive.ArchiveRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchiveRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Archive/Archive_archivedBy.cs b/V2/Checklist/Archive/Archive_archivedBy.cs deleted file mode 100644 index 3c06257..0000000 --- a/V2/Checklist/Archive/Archive_archivedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Archive -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Archive_archivedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Archive_archivedBy() - { - 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::NinjaOne.Client.V2.Checklist.Archive.Archive_archivedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Archive.Archive_archivedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Archive/Archive_description.cs b/V2/Checklist/Archive/Archive_description.cs deleted file mode 100644 index 4e4f24f..0000000 --- a/V2/Checklist/Archive/Archive_description.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Archive -{ - /// - /// Task description - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Archive_description : 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; } - /// The html property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// The text property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Archive_description() - { - 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::NinjaOne.Client.V2.Checklist.Archive.Archive_description CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Archive.Archive_description(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Archive/Archive_lastUpdatedBy.cs b/V2/Checklist/Archive/Archive_lastUpdatedBy.cs deleted file mode 100644 index d5641ed..0000000 --- a/V2/Checklist/Archive/Archive_lastUpdatedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Archive -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Archive_lastUpdatedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Archive_lastUpdatedBy() - { - 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::NinjaOne.Client.V2.Checklist.Archive.Archive_lastUpdatedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Archive.Archive_lastUpdatedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Archive/Archive_tasks.cs b/V2/Checklist/Archive/Archive_tasks.cs deleted file mode 100644 index c70aca9..0000000 --- a/V2/Checklist/Archive/Archive_tasks.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Archive -{ - /// - /// Checklist template tasks - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Archive_tasks : 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; } - /// Task description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Checklist.Archive.Archive_tasks_description? Description { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Checklist.Archive.Archive_tasks_description Description { get; set; } -#endif - /// Task name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Position of the task - public int? Position { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Archive_tasks() - { - 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::NinjaOne.Client.V2.Checklist.Archive.Archive_tasks CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Archive.Archive_tasks(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetObjectValue(global::NinjaOne.Client.V2.Checklist.Archive.Archive_tasks_description.CreateFromDiscriminatorValue); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "position", n => { Position = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("description", Description); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("position", Position); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Archive/Archive_tasks_description.cs b/V2/Checklist/Archive/Archive_tasks_description.cs deleted file mode 100644 index 36201f4..0000000 --- a/V2/Checklist/Archive/Archive_tasks_description.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Archive -{ - /// - /// Task description - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Archive_tasks_description : 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; } - /// The html property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// The text property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Archive_tasks_description() - { - 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::NinjaOne.Client.V2.Checklist.Archive.Archive_tasks_description CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Archive.Archive_tasks_description(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/ChecklistRequestBuilder.cs b/V2/Checklist/ChecklistRequestBuilder.cs deleted file mode 100644 index cc6cc47..0000000 --- a/V2/Checklist/ChecklistRequestBuilder.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Checklist.Archive; -using NinjaOne.Client.V2.Checklist.Restore; -using NinjaOne.Client.V2.Checklist.Template; -using NinjaOne.Client.V2.Checklist.Templates; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Checklist -{ - /// - /// Builds and executes requests for operations under \v2\checklist - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ChecklistRequestBuilder : BaseRequestBuilder - { - /// The archive property - public global::NinjaOne.Client.V2.Checklist.Archive.ArchiveRequestBuilder Archive - { - get => new global::NinjaOne.Client.V2.Checklist.Archive.ArchiveRequestBuilder(PathParameters, RequestAdapter); - } - /// The restore property - public global::NinjaOne.Client.V2.Checklist.Restore.RestoreRequestBuilder Restore - { - get => new global::NinjaOne.Client.V2.Checklist.Restore.RestoreRequestBuilder(PathParameters, RequestAdapter); - } - /// The template property - public global::NinjaOne.Client.V2.Checklist.Template.TemplateRequestBuilder Template - { - get => new global::NinjaOne.Client.V2.Checklist.Template.TemplateRequestBuilder(PathParameters, RequestAdapter); - } - /// The templates property - public global::NinjaOne.Client.V2.Checklist.Templates.TemplatesRequestBuilder Templates - { - get => new global::NinjaOne.Client.V2.Checklist.Templates.TemplatesRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ChecklistRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/checklist", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ChecklistRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/checklist", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Restore/Restore.cs b/V2/Checklist/Restore/Restore.cs deleted file mode 100644 index 7884c4b..0000000 --- a/V2/Checklist/Restore/Restore.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Restore : 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; } - /// Indicates if the checklist template is archived - public bool? Archived { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Checklist.Restore.Restore_archivedBy? ArchivedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Checklist.Restore.Restore_archivedBy ArchivedBy { get; set; } -#endif - /// Archive time - public double? ArchiveTime { get; set; } - /// Task description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Checklist.Restore.Restore_description? Description { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Checklist.Restore.Restore_description Description { get; set; } -#endif - /// Identifier - public int? Id { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Checklist.Restore.Restore_lastUpdatedBy? LastUpdatedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Checklist.Restore.Restore_lastUpdatedBy LastUpdatedBy { get; set; } -#endif - /// Last updated on - public double? LastUpdatedOn { get; set; } - /// Checklist template name (must be unique) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Indicates if the checklist completion is required - public bool? Required { get; set; } - /// Checklist template tasks -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tasks { get; set; } -#nullable restore -#else - public List Tasks { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Restore() - { - 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::NinjaOne.Client.V2.Checklist.Restore.Restore CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Restore.Restore(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "archiveTime", n => { ArchiveTime = n.GetDoubleValue(); } }, - { "archived", n => { Archived = n.GetBoolValue(); } }, - { "archivedBy", n => { ArchivedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Checklist.Restore.Restore_archivedBy.CreateFromDiscriminatorValue); } }, - { "description", n => { Description = n.GetObjectValue(global::NinjaOne.Client.V2.Checklist.Restore.Restore_description.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastUpdatedBy", n => { LastUpdatedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Checklist.Restore.Restore_lastUpdatedBy.CreateFromDiscriminatorValue); } }, - { "lastUpdatedOn", n => { LastUpdatedOn = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tasks", n => { Tasks = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Checklist.Restore.Restore_tasks.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("archived", Archived); - writer.WriteObjectValue("archivedBy", ArchivedBy); - writer.WriteDoubleValue("archiveTime", ArchiveTime); - writer.WriteObjectValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("lastUpdatedBy", LastUpdatedBy); - writer.WriteDoubleValue("lastUpdatedOn", LastUpdatedOn); - writer.WriteStringValue("name", Name); - writer.WriteBoolValue("required", Required); - writer.WriteCollectionOfObjectValues("tasks", Tasks); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Restore/RestorePostRequestBody.cs b/V2/Checklist/Restore/RestorePostRequestBody.cs deleted file mode 100644 index 5f4fbb4..0000000 --- a/V2/Checklist/Restore/RestorePostRequestBody.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestorePostRequestBody : 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 checklistTemplateIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ChecklistTemplateIds { get; set; } -#nullable restore -#else - public List ChecklistTemplateIds { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostRequestBody() - { - 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::NinjaOne.Client.V2.Checklist.Restore.RestorePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Restore.RestorePostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "checklistTemplateIds", n => { ChecklistTemplateIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("checklistTemplateIds", ChecklistTemplateIds); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Restore/RestoreRequestBuilder.cs b/V2/Checklist/Restore/RestoreRequestBuilder.cs deleted file mode 100644 index 2117b22..0000000 --- a/V2/Checklist/Restore/RestoreRequestBuilder.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Checklist.Restore -{ - /// - /// Builds and executes requests for operations under \v2\checklist\restore - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestoreRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/checklist/restore", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/checklist/restore", rawUrl) - { - } - /// - /// Restore a checklist template by id - /// - /// A List<global::NinjaOne.Client.V2.Checklist.Restore.Restore> - /// The request body - /// 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?> PostAsync(global::NinjaOne.Client.V2.Checklist.Restore.RestorePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PostAsync(global::NinjaOne.Client.V2.Checklist.Restore.RestorePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Checklist.Restore.Restore.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Restore a checklist template by id - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Checklist.Restore.RestorePostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Checklist.Restore.RestorePostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Checklist.Restore.RestoreRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Checklist.Restore.RestoreRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestoreRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Restore/Restore_archivedBy.cs b/V2/Checklist/Restore/Restore_archivedBy.cs deleted file mode 100644 index 7f6ffde..0000000 --- a/V2/Checklist/Restore/Restore_archivedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Restore -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Restore_archivedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Restore_archivedBy() - { - 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::NinjaOne.Client.V2.Checklist.Restore.Restore_archivedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Restore.Restore_archivedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Restore/Restore_description.cs b/V2/Checklist/Restore/Restore_description.cs deleted file mode 100644 index bf65567..0000000 --- a/V2/Checklist/Restore/Restore_description.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Restore -{ - /// - /// Task description - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Restore_description : 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; } - /// The html property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// The text property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Restore_description() - { - 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::NinjaOne.Client.V2.Checklist.Restore.Restore_description CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Restore.Restore_description(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Restore/Restore_lastUpdatedBy.cs b/V2/Checklist/Restore/Restore_lastUpdatedBy.cs deleted file mode 100644 index 654ce92..0000000 --- a/V2/Checklist/Restore/Restore_lastUpdatedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Restore -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Restore_lastUpdatedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Restore_lastUpdatedBy() - { - 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::NinjaOne.Client.V2.Checklist.Restore.Restore_lastUpdatedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Restore.Restore_lastUpdatedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Restore/Restore_tasks.cs b/V2/Checklist/Restore/Restore_tasks.cs deleted file mode 100644 index e9966ea..0000000 --- a/V2/Checklist/Restore/Restore_tasks.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Restore -{ - /// - /// Checklist template tasks - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Restore_tasks : 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; } - /// Task description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Checklist.Restore.Restore_tasks_description? Description { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Checklist.Restore.Restore_tasks_description Description { get; set; } -#endif - /// Task name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Position of the task - public int? Position { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Restore_tasks() - { - 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::NinjaOne.Client.V2.Checklist.Restore.Restore_tasks CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Restore.Restore_tasks(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetObjectValue(global::NinjaOne.Client.V2.Checklist.Restore.Restore_tasks_description.CreateFromDiscriminatorValue); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "position", n => { Position = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("description", Description); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("position", Position); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Restore/Restore_tasks_description.cs b/V2/Checklist/Restore/Restore_tasks_description.cs deleted file mode 100644 index 9d660ca..0000000 --- a/V2/Checklist/Restore/Restore_tasks_description.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Restore -{ - /// - /// Task description - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Restore_tasks_description : 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; } - /// The html property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// The text property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Restore_tasks_description() - { - 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::NinjaOne.Client.V2.Checklist.Restore.Restore_tasks_description CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Restore.Restore_tasks_description(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Template/Item/WithChecklistTemplateItemRequestBuilder.cs b/V2/Checklist/Template/Item/WithChecklistTemplateItemRequestBuilder.cs deleted file mode 100644 index 0b398a7..0000000 --- a/V2/Checklist/Template/Item/WithChecklistTemplateItemRequestBuilder.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Checklist.Template.Item -{ - /// - /// Builds and executes requests for operations under \v2\checklist\template\{checklistTemplateId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithChecklistTemplateItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithChecklistTemplateItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/checklist/template/{checklistTemplateId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithChecklistTemplateItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/checklist/template/{checklistTemplateId}", rawUrl) - { - } - /// - /// Delete a checklist template by id - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete a checklist template by id - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Checklist.Template.Item.WithChecklistTemplateItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Checklist.Template.Item.WithChecklistTemplateItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithChecklistTemplateItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Template/TemplateRequestBuilder.cs b/V2/Checklist/Template/TemplateRequestBuilder.cs deleted file mode 100644 index fe3f645..0000000 --- a/V2/Checklist/Template/TemplateRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Checklist.Template.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Checklist.Template -{ - /// - /// Builds and executes requests for operations under \v2\checklist\template - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TemplateRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.checklist.template.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Checklist.Template.Item.WithChecklistTemplateItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("checklistTemplateId", position); - return new global::NinjaOne.Client.V2.Checklist.Template.Item.WithChecklistTemplateItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.checklist.template.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Checklist.Template.Item.WithChecklistTemplateItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("checklistTemplateId", position); - return new global::NinjaOne.Client.V2.Checklist.Template.Item.WithChecklistTemplateItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public TemplateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/checklist/template", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TemplateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/checklist/template", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Templates/Delete/DeleteRequestBuilder.cs b/V2/Checklist/Templates/Delete/DeleteRequestBuilder.cs deleted file mode 100644 index 91fc9d0..0000000 --- a/V2/Checklist/Templates/Delete/DeleteRequestBuilder.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Checklist.Templates.Delete -{ - /// - /// Builds and executes requests for operations under \v2\checklist\templates\delete - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeleteRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/checklist/templates/delete", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/checklist/templates/delete", rawUrl) - { - } - /// - /// Deletes checklist templates by id - /// - /// The request body - /// 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 PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Deletes checklist templates by id - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromScalarCollection(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Checklist.Templates.Delete.DeleteRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Checklist.Templates.Delete.DeleteRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeleteRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Templates/Templates.cs b/V2/Checklist/Templates/Templates.cs deleted file mode 100644 index af0fb5c..0000000 --- a/V2/Checklist/Templates/Templates.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Templates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Templates : 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; } - /// Indicates if the checklist template is archived - public bool? Archived { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Checklist.Templates.Templates_archivedBy? ArchivedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Checklist.Templates.Templates_archivedBy ArchivedBy { get; set; } -#endif - /// Archive time - public double? ArchiveTime { get; set; } - /// Task description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Checklist.Templates.Templates_description? Description { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Checklist.Templates.Templates_description Description { get; set; } -#endif - /// Identifier - public int? Id { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Checklist.Templates.Templates_lastUpdatedBy? LastUpdatedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Checklist.Templates.Templates_lastUpdatedBy LastUpdatedBy { get; set; } -#endif - /// Last updated on - public double? LastUpdatedOn { get; set; } - /// Checklist template name (must be unique) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Indicates if the checklist completion is required - public bool? Required { get; set; } - /// Checklist template tasks -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tasks { get; set; } -#nullable restore -#else - public List Tasks { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Templates() - { - 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::NinjaOne.Client.V2.Checklist.Templates.Templates CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Templates.Templates(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "archiveTime", n => { ArchiveTime = n.GetDoubleValue(); } }, - { "archived", n => { Archived = n.GetBoolValue(); } }, - { "archivedBy", n => { ArchivedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Checklist.Templates.Templates_archivedBy.CreateFromDiscriminatorValue); } }, - { "description", n => { Description = n.GetObjectValue(global::NinjaOne.Client.V2.Checklist.Templates.Templates_description.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastUpdatedBy", n => { LastUpdatedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Checklist.Templates.Templates_lastUpdatedBy.CreateFromDiscriminatorValue); } }, - { "lastUpdatedOn", n => { LastUpdatedOn = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tasks", n => { Tasks = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Checklist.Templates.Templates_tasks.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("archived", Archived); - writer.WriteObjectValue("archivedBy", ArchivedBy); - writer.WriteDoubleValue("archiveTime", ArchiveTime); - writer.WriteObjectValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("lastUpdatedBy", LastUpdatedBy); - writer.WriteDoubleValue("lastUpdatedOn", LastUpdatedOn); - writer.WriteStringValue("name", Name); - writer.WriteBoolValue("required", Required); - writer.WriteCollectionOfObjectValues("tasks", Tasks); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Templates/TemplatesRequestBuilder.cs b/V2/Checklist/Templates/TemplatesRequestBuilder.cs deleted file mode 100644 index 5dc593a..0000000 --- a/V2/Checklist/Templates/TemplatesRequestBuilder.cs +++ /dev/null @@ -1,229 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Checklist.Templates.Delete; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Checklist.Templates -{ - /// - /// Builds and executes requests for operations under \v2\checklist\templates - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TemplatesRequestBuilder : BaseRequestBuilder - { - /// The deletePath property - public global::NinjaOne.Client.V2.Checklist.Templates.Delete.DeleteRequestBuilder DeletePath - { - get => new global::NinjaOne.Client.V2.Checklist.Templates.Delete.DeleteRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public TemplatesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/checklist/templates{?checklistTemplateIds*,checklistTemplateName*,includeArchived*,required*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/checklist/templates{?checklistTemplateIds*,checklistTemplateName*,includeArchived*,required*}", rawUrl) - { - } - /// - /// List checklists templates with given criteria - /// - /// A List<global::NinjaOne.Client.V2.Checklist.Templates.Templates> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Checklist.Templates.Templates.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Creates multiple checklist templates - /// - /// A List<global::NinjaOne.Client.V2.Checklist.Templates.Templates> - /// The request body - /// 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?> PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Checklist.Templates.Templates.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Updates multiple checklist templates - /// - /// A List<global::NinjaOne.Client.V2.Checklist.Templates.Templates> - /// The request body - /// 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?> PutAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PutAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Checklist.Templates.Templates.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// List checklists templates with given criteria - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Creates multiple checklist templates - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Updates multiple checklist templates - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Checklist.Templates.TemplatesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Checklist.Templates.TemplatesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// List checklists templates with given criteria - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TemplatesRequestBuilderGetQueryParameters - { -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("checklistTemplateIds")] - public string? ChecklistTemplateIds { get; set; } -#nullable restore -#else - [QueryParameter("checklistTemplateIds")] - public string ChecklistTemplateIds { get; set; } -#endif -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("checklistTemplateName")] - public string? ChecklistTemplateName { get; set; } -#nullable restore -#else - [QueryParameter("checklistTemplateName")] - public string ChecklistTemplateName { get; set; } -#endif - [QueryParameter("includeArchived")] - public bool? IncludeArchived { get; set; } - [QueryParameter("required")] - public bool? Required { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TemplatesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TemplatesRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TemplatesRequestBuilderPutRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Templates/Templates_archivedBy.cs b/V2/Checklist/Templates/Templates_archivedBy.cs deleted file mode 100644 index 09eb7c3..0000000 --- a/V2/Checklist/Templates/Templates_archivedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Templates -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Templates_archivedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Templates_archivedBy() - { - 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::NinjaOne.Client.V2.Checklist.Templates.Templates_archivedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Templates.Templates_archivedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Templates/Templates_description.cs b/V2/Checklist/Templates/Templates_description.cs deleted file mode 100644 index aa992d5..0000000 --- a/V2/Checklist/Templates/Templates_description.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Templates -{ - /// - /// Task description - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Templates_description : 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; } - /// The html property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// The text property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Templates_description() - { - 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::NinjaOne.Client.V2.Checklist.Templates.Templates_description CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Templates.Templates_description(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Templates/Templates_lastUpdatedBy.cs b/V2/Checklist/Templates/Templates_lastUpdatedBy.cs deleted file mode 100644 index 8cbca76..0000000 --- a/V2/Checklist/Templates/Templates_lastUpdatedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Templates -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Templates_lastUpdatedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Templates_lastUpdatedBy() - { - 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::NinjaOne.Client.V2.Checklist.Templates.Templates_lastUpdatedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Templates.Templates_lastUpdatedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Templates/Templates_tasks.cs b/V2/Checklist/Templates/Templates_tasks.cs deleted file mode 100644 index fb4c56c..0000000 --- a/V2/Checklist/Templates/Templates_tasks.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Templates -{ - /// - /// Checklist template tasks - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Templates_tasks : 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; } - /// Task description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Checklist.Templates.Templates_tasks_description? Description { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Checklist.Templates.Templates_tasks_description Description { get; set; } -#endif - /// Task name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Position of the task - public int? Position { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Templates_tasks() - { - 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::NinjaOne.Client.V2.Checklist.Templates.Templates_tasks CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Templates.Templates_tasks(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetObjectValue(global::NinjaOne.Client.V2.Checklist.Templates.Templates_tasks_description.CreateFromDiscriminatorValue); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "position", n => { Position = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("description", Description); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("position", Position); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Checklist/Templates/Templates_tasks_description.cs b/V2/Checklist/Templates/Templates_tasks_description.cs deleted file mode 100644 index cf215e6..0000000 --- a/V2/Checklist/Templates/Templates_tasks_description.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Checklist.Templates -{ - /// - /// Task description - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Templates_tasks_description : 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; } - /// The html property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// The text property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Templates_tasks_description() - { - 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::NinjaOne.Client.V2.Checklist.Templates.Templates_tasks_description CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Checklist.Templates.Templates_tasks_description(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Contact/ContactRequestBuilder.cs b/V2/Contact/ContactRequestBuilder.cs deleted file mode 100644 index e542cdb..0000000 --- a/V2/Contact/ContactRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Contact.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Contact -{ - /// - /// Builds and executes requests for operations under \v2\contact - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ContactRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.contact.item collection - /// Contact identifier - /// A - public global::NinjaOne.Client.V2.Contact.Item.ContactItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new global::NinjaOne.Client.V2.Contact.Item.ContactItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.contact.item collection - /// Contact identifier - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Contact.Item.ContactItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("id", position); - return new global::NinjaOne.Client.V2.Contact.Item.ContactItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ContactRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/contact", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ContactRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/contact", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Contact/Item/ContactGetResponse.cs b/V2/Contact/Item/ContactGetResponse.cs deleted file mode 100644 index 54e9161..0000000 --- a/V2/Contact/Item/ContactGetResponse.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Contact.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ContactGetResponse : 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 email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The jobTitle property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? JobTitle { get; set; } -#nullable restore -#else - public string JobTitle { get; set; } -#endif - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// The organizationId property - public int? OrganizationId { get; set; } - /// The phone property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// The uid property - public Guid? Uid { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ContactGetResponse() - { - 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::NinjaOne.Client.V2.Contact.Item.ContactGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Contact.Item.ContactGetResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "jobTitle", n => { JobTitle = n.GetStringValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("jobTitle", JobTitle); - writer.WriteStringValue("lastName", LastName); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteStringValue("phone", Phone); - writer.WriteGuidValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Contact/Item/ContactItemRequestBuilder.cs b/V2/Contact/Item/ContactItemRequestBuilder.cs deleted file mode 100644 index 61977cd..0000000 --- a/V2/Contact/Item/ContactItemRequestBuilder.cs +++ /dev/null @@ -1,224 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Contact.Item -{ - /// - /// Builds and executes requests for operations under \v2\contact\{id} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ContactItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ContactItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/contact/{id}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ContactItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/contact/{id}", rawUrl) - { - } - /// - /// Delete a contact by their ID - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get a contact by their ID - /// - /// 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 GetAsContactGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsContactGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Contact.Item.ContactGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get a contact by their ID - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use GetAsContactGetResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Contact.Item.ContactResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Update a contact by their ID - /// - /// A - /// Patch contact request payload - /// 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 PatchAsContactPatchResponseAsync(global::NinjaOne.Client.V2.Contact.Item.ContactPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsContactPatchResponseAsync(global::NinjaOne.Client.V2.Contact.Item.ContactPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Contact.Item.ContactPatchResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Update a contact by their ID - /// - /// A - /// Patch contact request payload - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PatchAsContactPatchResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PatchAsync(global::NinjaOne.Client.V2.Contact.Item.ContactPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::NinjaOne.Client.V2.Contact.Item.ContactPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Contact.Item.ContactResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete a contact by their ID - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Get a contact by their ID - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Update a contact by their ID - /// - /// A - /// Patch contact request payload - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Contact.Item.ContactPatchRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Contact.Item.ContactPatchRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Contact.Item.ContactItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Contact.Item.ContactItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ContactItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ContactItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ContactItemRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Contact/Item/ContactPatchRequestBody.cs b/V2/Contact/Item/ContactPatchRequestBody.cs deleted file mode 100644 index e03fa43..0000000 --- a/V2/Contact/Item/ContactPatchRequestBody.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Contact.Item -{ - /// - /// Patch contact request payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ContactPatchRequestBody : 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; } - /// Email address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// First name should be between 0 and 150 characters -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// Job title should be between 0 and 150 characters -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? JobTitle { get; set; } -#nullable restore -#else - public string JobTitle { get; set; } -#endif - /// Last name should be between 0 and 150 characters -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// Phone number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ContactPatchRequestBody() - { - 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::NinjaOne.Client.V2.Contact.Item.ContactPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Contact.Item.ContactPatchRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "jobTitle", n => { JobTitle = n.GetStringValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteStringValue("firstName", FirstName); - writer.WriteStringValue("jobTitle", JobTitle); - writer.WriteStringValue("lastName", LastName); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteStringValue("phone", Phone); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Contact/Item/ContactPatchResponse.cs b/V2/Contact/Item/ContactPatchResponse.cs deleted file mode 100644 index fd5c1af..0000000 --- a/V2/Contact/Item/ContactPatchResponse.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Contact.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ContactPatchResponse : 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 email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The jobTitle property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? JobTitle { get; set; } -#nullable restore -#else - public string JobTitle { get; set; } -#endif - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// The organizationId property - public int? OrganizationId { get; set; } - /// The phone property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// The uid property - public Guid? Uid { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ContactPatchResponse() - { - 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::NinjaOne.Client.V2.Contact.Item.ContactPatchResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Contact.Item.ContactPatchResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "jobTitle", n => { JobTitle = n.GetStringValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("jobTitle", JobTitle); - writer.WriteStringValue("lastName", LastName); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteStringValue("phone", Phone); - writer.WriteGuidValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Contact/Item/ContactResponse.cs b/V2/Contact/Item/ContactResponse.cs deleted file mode 100644 index 97b9533..0000000 --- a/V2/Contact/Item/ContactResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Contact.Item -{ - [Obsolete("This class is obsolete. Use ContactGetResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ContactResponse : global::NinjaOne.Client.V2.Contact.Item.ContactGetResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.Contact.Item.ContactResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Contact.Item.ContactResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Contacts/Contacts.cs b/V2/Contacts/Contacts.cs deleted file mode 100644 index 2be44b1..0000000 --- a/V2/Contacts/Contacts.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Contacts -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Contacts : 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 email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The jobTitle property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? JobTitle { get; set; } -#nullable restore -#else - public string JobTitle { get; set; } -#endif - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// The organizationId property - public int? OrganizationId { get; set; } - /// The phone property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// The uid property - public Guid? Uid { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Contacts() - { - 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::NinjaOne.Client.V2.Contacts.Contacts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Contacts.Contacts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "jobTitle", n => { JobTitle = n.GetStringValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("jobTitle", JobTitle); - writer.WriteStringValue("lastName", LastName); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteStringValue("phone", Phone); - writer.WriteGuidValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Contacts/ContactsPostRequestBody.cs b/V2/Contacts/ContactsPostRequestBody.cs deleted file mode 100644 index fe98fcc..0000000 --- a/V2/Contacts/ContactsPostRequestBody.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Contacts -{ - /// - /// Create contact request payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ContactsPostRequestBody : 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; } - /// Email address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// First name should be between 1 and 150 characters -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// Job title should be between 0 and 150 characters -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? JobTitle { get; set; } -#nullable restore -#else - public string JobTitle { get; set; } -#endif - /// First name should be between 1 and 150 characters -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// Contact Phone number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ContactsPostRequestBody() - { - 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::NinjaOne.Client.V2.Contacts.ContactsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Contacts.ContactsPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "jobTitle", n => { JobTitle = n.GetStringValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteStringValue("firstName", FirstName); - writer.WriteStringValue("jobTitle", JobTitle); - writer.WriteStringValue("lastName", LastName); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteStringValue("phone", Phone); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Contacts/ContactsPostResponse.cs b/V2/Contacts/ContactsPostResponse.cs deleted file mode 100644 index 9e0f088..0000000 --- a/V2/Contacts/ContactsPostResponse.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Contacts -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ContactsPostResponse : 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 email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The jobTitle property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? JobTitle { get; set; } -#nullable restore -#else - public string JobTitle { get; set; } -#endif - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// The organizationId property - public int? OrganizationId { get; set; } - /// The phone property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// The uid property - public Guid? Uid { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ContactsPostResponse() - { - 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::NinjaOne.Client.V2.Contacts.ContactsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Contacts.ContactsPostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "jobTitle", n => { JobTitle = n.GetStringValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("jobTitle", JobTitle); - writer.WriteStringValue("lastName", LastName); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteStringValue("phone", Phone); - writer.WriteGuidValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Contacts/ContactsRequestBuilder.cs b/V2/Contacts/ContactsRequestBuilder.cs deleted file mode 100644 index 69fc911..0000000 --- a/V2/Contacts/ContactsRequestBuilder.cs +++ /dev/null @@ -1,163 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Contacts -{ - /// - /// Builds and executes requests for operations under \v2\contacts - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ContactsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ContactsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/contacts", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ContactsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/contacts", rawUrl) - { - } - /// - /// Get all contacts - /// - /// A List<global::NinjaOne.Client.V2.Contacts.Contacts> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Contacts.Contacts.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Create a new contact - /// - /// A - /// Create contact request payload - /// 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 PostAsContactsPostResponseAsync(global::NinjaOne.Client.V2.Contacts.ContactsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsContactsPostResponseAsync(global::NinjaOne.Client.V2.Contacts.ContactsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Contacts.ContactsPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create a new contact - /// - /// A - /// Create contact request payload - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsContactsPostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.Contacts.ContactsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Contacts.ContactsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Contacts.ContactsResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get all contacts - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Create a new contact - /// - /// A - /// Create contact request payload - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Contacts.ContactsPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Contacts.ContactsPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Contacts.ContactsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Contacts.ContactsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ContactsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ContactsRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Contacts/ContactsResponse.cs b/V2/Contacts/ContactsResponse.cs deleted file mode 100644 index 53a1f5c..0000000 --- a/V2/Contacts/ContactsResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Contacts -{ - [Obsolete("This class is obsolete. Use ContactsPostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ContactsResponse : global::NinjaOne.Client.V2.Contacts.ContactsPostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.Contacts.ContactsResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Contacts.ContactsResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/CustomFields/CustomFieldsRequestBuilder.cs b/V2/CustomFields/CustomFieldsRequestBuilder.cs deleted file mode 100644 index 9e153cc..0000000 --- a/V2/CustomFields/CustomFieldsRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.CustomFields.EntityType; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.CustomFields -{ - /// - /// Builds and executes requests for operations under \v2\custom-fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilder : BaseRequestBuilder - { - /// The entityType property - public global::NinjaOne.Client.V2.CustomFields.EntityType.EntityTypeRequestBuilder EntityType - { - get => new global::NinjaOne.Client.V2.CustomFields.EntityType.EntityTypeRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public CustomFieldsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/custom-fields", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public CustomFieldsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/custom-fields", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/CustomFields/EntityType/EntityTypeRequestBuilder.cs b/V2/CustomFields/EntityType/EntityTypeRequestBuilder.cs deleted file mode 100644 index a3fb154..0000000 --- a/V2/CustomFields/EntityType/EntityTypeRequestBuilder.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.CustomFields.EntityType.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.CustomFields.EntityType -{ - /// - /// Builds and executes requests for operations under \v2\custom-fields\entity-type - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EntityTypeRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.customFields.entityType.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.CustomFields.EntityType.Item.WithEntityTypeItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("entityType", position); - return new global::NinjaOne.Client.V2.CustomFields.EntityType.Item.WithEntityTypeItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public EntityTypeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/custom-fields/entity-type", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public EntityTypeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/custom-fields/entity-type", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/CustomFields/EntityType/Item/Item/SignedUrls/SignedUrlsRequestBuilder.cs b/V2/CustomFields/EntityType/Item/Item/SignedUrls/SignedUrlsRequestBuilder.cs deleted file mode 100644 index 90dc195..0000000 --- a/V2/CustomFields/EntityType/Item/Item/SignedUrls/SignedUrlsRequestBuilder.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.CustomFields.EntityType.Item.Item.SignedUrls -{ - /// - /// Builds and executes requests for operations under \v2\custom-fields\entity-type\{entityType}\{entityId}\signed-urls - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SignedUrlsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SignedUrlsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/custom-fields/entity-type/{entityType}/{entityId}/signed-urls", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SignedUrlsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/custom-fields/entity-type/{entityType}/{entityId}/signed-urls", rawUrl) - { - } - /// - /// Get custom field signed urls - /// - /// 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) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get custom field signed urls - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.CustomFields.EntityType.Item.Item.SignedUrls.SignedUrlsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.CustomFields.EntityType.Item.Item.SignedUrls.SignedUrlsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SignedUrlsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/CustomFields/EntityType/Item/Item/WithEntityItemRequestBuilder.cs b/V2/CustomFields/EntityType/Item/Item/WithEntityItemRequestBuilder.cs deleted file mode 100644 index d611c6a..0000000 --- a/V2/CustomFields/EntityType/Item/Item/WithEntityItemRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.CustomFields.EntityType.Item.Item.SignedUrls; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.CustomFields.EntityType.Item.Item -{ - /// - /// Builds and executes requests for operations under \v2\custom-fields\entity-type\{entityType}\{entityId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntityItemRequestBuilder : BaseRequestBuilder - { - /// The signedUrls property - public global::NinjaOne.Client.V2.CustomFields.EntityType.Item.Item.SignedUrls.SignedUrlsRequestBuilder SignedUrls - { - get => new global::NinjaOne.Client.V2.CustomFields.EntityType.Item.Item.SignedUrls.SignedUrlsRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithEntityItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/custom-fields/entity-type/{entityType}/{entityId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithEntityItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/custom-fields/entity-type/{entityType}/{entityId}", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/CustomFields/EntityType/Item/WithEntityTypeItemRequestBuilder.cs b/V2/CustomFields/EntityType/Item/WithEntityTypeItemRequestBuilder.cs deleted file mode 100644 index 9146264..0000000 --- a/V2/CustomFields/EntityType/Item/WithEntityTypeItemRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.CustomFields.EntityType.Item.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.CustomFields.EntityType.Item -{ - /// - /// Builds and executes requests for operations under \v2\custom-fields\entity-type\{entityType} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntityTypeItemRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.customFields.entityType.item.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.CustomFields.EntityType.Item.Item.WithEntityItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("entityId", position); - return new global::NinjaOne.Client.V2.CustomFields.EntityType.Item.Item.WithEntityItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.customFields.entityType.item.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.CustomFields.EntityType.Item.Item.WithEntityItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("entityId", position); - return new global::NinjaOne.Client.V2.CustomFields.EntityType.Item.Item.WithEntityItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithEntityTypeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/custom-fields/entity-type/{entityType}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithEntityTypeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/custom-fields/entity-type/{entityType}", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/DeviceRequestBuilder.cs b/V2/Device/DeviceRequestBuilder.cs deleted file mode 100644 index b8865f0..0000000 --- a/V2/Device/DeviceRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Device.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Device -{ - /// - /// Builds and executes requests for operations under \v2\device - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.device.item collection - /// Device identifier - /// A - public global::NinjaOne.Client.V2.Device.Item.DeviceItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new global::NinjaOne.Client.V2.Device.Item.DeviceItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.device.item collection - /// Device identifier - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Device.Item.DeviceItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("id", position); - return new global::NinjaOne.Client.V2.Device.Item.DeviceItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DeviceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DeviceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Activities/Activities4XXError.cs b/V2/Device/Item/Activities/Activities4XXError.cs deleted file mode 100644 index 175dd1b..0000000 --- a/V2/Device/Item/Activities/Activities4XXError.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Activities -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Activities4XXError : ApiException, IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The activities property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Activities { get; set; } -#nullable restore -#else - public List Activities { get; set; } -#endif - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Last recorded activity ID for account - public long? LastActivityId { get; set; } - /// Last recorded activity ID for device - public long? LastNodeActivityId { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// - /// Instantiates a new and sets the default values. - /// - public Activities4XXError() - { - 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::NinjaOne.Client.V2.Device.Item.Activities.Activities4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Activities.Activities4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "activities", n => { Activities = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Device.Item.Activities.Activities4XXError_activities.CreateFromDiscriminatorValue)?.AsList(); } }, - { "lastActivityId", n => { LastActivityId = n.GetLongValue(); } }, - { "lastNodeActivityId", n => { LastNodeActivityId = n.GetLongValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("activities", Activities); - writer.WriteLongValue("lastActivityId", LastActivityId); - writer.WriteLongValue("lastNodeActivityId", LastNodeActivityId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Activities/Activities4XXError_activities.cs b/V2/Device/Item/Activities/Activities4XXError_activities.cs deleted file mode 100644 index 1b135bf..0000000 --- a/V2/Device/Item/Activities/Activities4XXError_activities.cs +++ /dev/null @@ -1,159 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Activities -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Activities4XXError_activities : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Activity result - public global::NinjaOne.Client.V2.Device.Item.Activities.Activities4XXError_activities_activityResult? ActivityResult { get; set; } - /// Activity timestamp - public double? ActivityTime { get; set; } - /// Activity type code - public global::NinjaOne.Client.V2.Device.Item.Activities.Activities4XXError_activities_activityType? ActivityType { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Activity data -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Activities.Activities4XXError_activities_data? Data { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Activities.Activities4XXError_activities_data Data { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// Activity identifier - public long? Id { get; set; } - /// Activity message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Message { get; set; } -#nullable restore -#else - public string Message { get; set; } -#endif - /// Priority - public global::NinjaOne.Client.V2.Device.Item.Activities.Activities4XXError_activities_priority? Priority { get; set; } - /// Activity series UID (job/condition UID) - public Guid? SeriesUid { get; set; } - /// Severity - public global::NinjaOne.Client.V2.Device.Item.Activities.Activities4XXError_activities_severity? Severity { get; set; } - /// Source configuration/policy element reference - public Guid? SourceConfigUid { get; set; } - /// Source configuration/policy element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SourceName { get; set; } -#nullable restore -#else - public string SourceName { get; set; } -#endif - /// Status description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Activity status code - public global::NinjaOne.Client.V2.Device.Item.Activities.Activities4XXError_activities_statusCode? StatusCode { get; set; } - /// Activity subject -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subject { get; set; } -#nullable restore -#else - public string Subject { get; set; } -#endif - /// Activity type description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// User identifier - public int? UserId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Activities4XXError_activities() - { - 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::NinjaOne.Client.V2.Device.Item.Activities.Activities4XXError_activities CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Activities.Activities4XXError_activities(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "activityResult", n => { ActivityResult = n.GetEnumValue(); } }, - { "activityTime", n => { ActivityTime = n.GetDoubleValue(); } }, - { "activityType", n => { ActivityType = n.GetEnumValue(); } }, - { "data", n => { Data = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Activities.Activities4XXError_activities_data.CreateFromDiscriminatorValue); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetLongValue(); } }, - { "message", n => { Message = n.GetStringValue(); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "seriesUid", n => { SeriesUid = n.GetGuidValue(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - { "sourceConfigUid", n => { SourceConfigUid = n.GetGuidValue(); } }, - { "sourceName", n => { SourceName = n.GetStringValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "statusCode", n => { StatusCode = n.GetEnumValue(); } }, - { "subject", n => { Subject = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - { "userId", n => { UserId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("activityResult", ActivityResult); - writer.WriteDoubleValue("activityTime", ActivityTime); - writer.WriteEnumValue("activityType", ActivityType); - writer.WriteObjectValue("data", Data); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteLongValue("id", Id); - writer.WriteStringValue("message", Message); - writer.WriteEnumValue("priority", Priority); - writer.WriteGuidValue("seriesUid", SeriesUid); - writer.WriteEnumValue("severity", Severity); - writer.WriteGuidValue("sourceConfigUid", SourceConfigUid); - writer.WriteStringValue("sourceName", SourceName); - writer.WriteStringValue("status", Status); - writer.WriteEnumValue("statusCode", StatusCode); - writer.WriteStringValue("subject", Subject); - writer.WriteStringValue("type", Type); - writer.WriteIntValue("userId", UserId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Activities/Activities4XXError_activities_activityResult.cs b/V2/Device/Item/Activities/Activities4XXError_activities_activityResult.cs deleted file mode 100644 index 648b203..0000000 --- a/V2/Device/Item/Activities/Activities4XXError_activities_activityResult.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Activities -{ - /// Activity result - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities4XXError_activities_activityResult - { - [EnumMember(Value = "SUCCESS")] - #pragma warning disable CS1591 - SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILURE")] - #pragma warning disable CS1591 - FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "UNSUPPORTED")] - #pragma warning disable CS1591 - UNSUPPORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNCOMPLETED")] - #pragma warning disable CS1591 - UNCOMPLETED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Activities/Activities4XXError_activities_activityType.cs b/V2/Device/Item/Activities/Activities4XXError_activities_activityType.cs deleted file mode 100644 index 817a233..0000000 --- a/V2/Device/Item/Activities/Activities4XXError_activities_activityType.cs +++ /dev/null @@ -1,163 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Activities -{ - /// Activity type code - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities4XXError_activities_activityType - { - [EnumMember(Value = "ACTIONSET")] - #pragma warning disable CS1591 - ACTIONSET, - #pragma warning restore CS1591 - [EnumMember(Value = "ACTION")] - #pragma warning disable CS1591 - ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION")] - #pragma warning disable CS1591 - CONDITION, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_ACTIONSET")] - #pragma warning disable CS1591 - CONDITION_ACTIONSET, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_ACTION")] - #pragma warning disable CS1591 - CONDITION_ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "ANTIVIRUS")] - #pragma warning disable CS1591 - ANTIVIRUS, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER")] - #pragma warning disable CS1591 - TEAMVIEWER, - #pragma warning restore CS1591 - [EnumMember(Value = "MONITOR")] - #pragma warning disable CS1591 - MONITOR, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "COMMENT")] - #pragma warning disable CS1591 - COMMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT")] - #pragma warning disable CS1591 - SHADOWPROTECT, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER")] - #pragma warning disable CS1591 - IMAGEMANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "HELP_REQUEST")] - #pragma warning disable CS1591 - HELP_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP")] - #pragma warning disable CS1591 - SPLASHTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY")] - #pragma warning disable CS1591 - CLOUDBERRY, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUP")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUP, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK")] - #pragma warning disable CS1591 - SCHEDULED_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP")] - #pragma warning disable CS1591 - RDP, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPTING")] - #pragma warning disable CS1591 - SCRIPTING, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURITY")] - #pragma warning disable CS1591 - SECURITY, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS")] - #pragma warning disable CS1591 - REMOTE_TOOLS, - #pragma warning restore CS1591 - [EnumMember(Value = "VIRTUALIZATION")] - #pragma warning disable CS1591 - VIRTUALIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA")] - #pragma warning disable CS1591 - PSA, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM")] - #pragma warning disable CS1591 - MDM, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_REMOTE")] - #pragma warning disable CS1591 - NINJA_REMOTE, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_QUICK_CONNECT")] - #pragma warning disable CS1591 - NINJA_QUICK_CONNECT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_NETWORK_DISCOVERY")] - #pragma warning disable CS1591 - NINJA_NETWORK_DISCOVERY, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP")] - #pragma warning disable CS1591 - NINJA_BACKUP, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING")] - #pragma warning disable CS1591 - NINJA_TICKETING, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM")] - #pragma warning disable CS1591 - RELATED_ITEM, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENTATION")] - #pragma warning disable CS1591 - DOCUMENTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MICROSOFT_INTUNE")] - #pragma warning disable CS1591 - MICROSOFT_INTUNE, - #pragma warning restore CS1591 - [EnumMember(Value = "DYNAMIC_POLICY")] - #pragma warning disable CS1591 - DYNAMIC_POLICY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Activities/Activities4XXError_activities_data.cs b/V2/Device/Item/Activities/Activities4XXError_activities_data.cs deleted file mode 100644 index 96b73e7..0000000 --- a/V2/Device/Item/Activities/Activities4XXError_activities_data.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Activities -{ - /// - /// Activity data - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Activities4XXError_activities_data : 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. - /// - public Activities4XXError_activities_data() - { - 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::NinjaOne.Client.V2.Device.Item.Activities.Activities4XXError_activities_data CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Activities.Activities4XXError_activities_data(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Activities/Activities4XXError_activities_priority.cs b/V2/Device/Item/Activities/Activities4XXError_activities_priority.cs deleted file mode 100644 index 71399a2..0000000 --- a/V2/Device/Item/Activities/Activities4XXError_activities_priority.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Activities -{ - /// Priority - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities4XXError_activities_priority - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Activities/Activities4XXError_activities_severity.cs b/V2/Device/Item/Activities/Activities4XXError_activities_severity.cs deleted file mode 100644 index 587da07..0000000 --- a/V2/Device/Item/Activities/Activities4XXError_activities_severity.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Activities -{ - /// Severity - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities4XXError_activities_severity - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Activities/Activities4XXError_activities_statusCode.cs b/V2/Device/Item/Activities/Activities4XXError_activities_statusCode.cs deleted file mode 100644 index 9d39230..0000000 --- a/V2/Device/Item/Activities/Activities4XXError_activities_statusCode.cs +++ /dev/null @@ -1,2703 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Activities -{ - /// Activity status code - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities4XXError_activities_statusCode - { - [EnumMember(Value = "START_REQUESTED")] - #pragma warning disable CS1591 - START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "STARTED")] - #pragma warning disable CS1591 - STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_PROCESS")] - #pragma warning disable CS1591 - IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "COMPLETED")] - #pragma warning disable CS1591 - COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CANCEL_REQUESTED")] - #pragma warning disable CS1591 - CANCEL_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CANCELLED")] - #pragma warning disable CS1591 - CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "BLOCKED")] - #pragma warning disable CS1591 - BLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRIGGERED")] - #pragma warning disable CS1591 - TRIGGERED, - #pragma warning restore CS1591 - [EnumMember(Value = "RESET")] - #pragma warning disable CS1591 - RESET, - #pragma warning restore CS1591 - [EnumMember(Value = "ACKNOWLEDGED")] - #pragma warning disable CS1591 - ACKNOWLEDGED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISABLED")] - #pragma warning disable CS1591 - DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "EVALUATION_FAILURE")] - #pragma warning disable CS1591 - EVALUATION_FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CREATED")] - #pragma warning disable CS1591 - CLIENT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_UPDATED")] - #pragma warning disable CS1591 - CLIENT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DELETED")] - #pragma warning disable CS1591 - CLIENT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL_CREATED")] - #pragma warning disable CS1591 - CREDENTIAL_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL_UPDATED")] - #pragma warning disable CS1591 - CREDENTIAL_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL_DELETED")] - #pragma warning disable CS1591 - CREDENTIAL_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION_CREATED")] - #pragma warning disable CS1591 - LOCATION_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION_UPDATED")] - #pragma warning disable CS1591 - LOCATION_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION_DELETED")] - #pragma warning disable CS1591 - LOCATION_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "POLICY_CREATED")] - #pragma warning disable CS1591 - POLICY_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "POLICY_UPDATED")] - #pragma warning disable CS1591 - POLICY_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "POLICY_DELETED")] - #pragma warning disable CS1591 - POLICY_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_CREATED")] - #pragma warning disable CS1591 - NODE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_UPDATED")] - #pragma warning disable CS1591 - NODE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_DELETED")] - #pragma warning disable CS1591 - NODE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_RE_ENROLLED")] - #pragma warning disable CS1591 - NODE_RE_ENROLLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ACCESS_GRANTED")] - #pragma warning disable CS1591 - NODE_ACCESS_GRANTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ACCESS_DENIED")] - #pragma warning disable CS1591 - NODE_ACCESS_DENIED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_REGISTRATION_REJECTED")] - #pragma warning disable CS1591 - NODE_REGISTRATION_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_IDENTIFICATION_UPDATED")] - #pragma warning disable CS1591 - NODE_IDENTIFICATION_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_CLONING_DETECTED")] - #pragma warning disable CS1591 - NODE_CLONING_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_CLONE_ADVISED_TO_REGISTER")] - #pragma warning disable CS1591 - NODE_CLONE_ADVISED_TO_REGISTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MANUALLY_APPROVED")] - #pragma warning disable CS1591 - NODE_MANUALLY_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_AUTOMATICALLY_APPROVED")] - #pragma warning disable CS1591 - NODE_AUTOMATICALLY_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MANUALLY_REJECTED")] - #pragma warning disable CS1591 - NODE_MANUALLY_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_AUTOMATICALLY_REJECTED")] - #pragma warning disable CS1591 - NODE_AUTOMATICALLY_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECTED_NODE_CLEARED")] - #pragma warning disable CS1591 - REJECTED_NODE_CLEARED, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECTED_NODE_DELETED")] - #pragma warning disable CS1591 - REJECTED_NODE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "MOBILE_DEVICE_UNREGISTERED")] - #pragma warning disable CS1591 - MOBILE_DEVICE_UNREGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_CREATED")] - #pragma warning disable CS1591 - APP_USER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_UPDATED")] - #pragma warning disable CS1591 - APP_USER_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_DELETED")] - #pragma warning disable CS1591 - APP_USER_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_LOGGED_IN")] - #pragma warning disable CS1591 - APP_USER_LOGGED_IN, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_LOGGED_OUT")] - #pragma warning disable CS1591 - APP_USER_LOGGED_OUT, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_MFA_SETUP")] - #pragma warning disable CS1591 - APP_USER_MFA_SETUP, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_MFA_DELETED")] - #pragma warning disable CS1591 - APP_USER_MFA_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_CRITICAL_ACTION")] - #pragma warning disable CS1591 - APP_USER_CRITICAL_ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_AUDIT_FAILED_LOGIN")] - #pragma warning disable CS1591 - APP_USER_AUDIT_FAILED_LOGIN, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_AUTO_ASSIGN_CHANGED")] - #pragma warning disable CS1591 - APP_USER_AUTO_ASSIGN_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_CREATED")] - #pragma warning disable CS1591 - END_USER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_CREATED_API")] - #pragma warning disable CS1591 - END_USER_CREATED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_UPDATED")] - #pragma warning disable CS1591 - END_USER_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_UPDATED_API")] - #pragma warning disable CS1591 - END_USER_UPDATED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_DELETED")] - #pragma warning disable CS1591 - END_USER_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_DELETED_API")] - #pragma warning disable CS1591 - END_USER_DELETED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_LOGGED_IN")] - #pragma warning disable CS1591 - END_USER_LOGGED_IN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_LOGGED_OUT")] - #pragma warning disable CS1591 - END_USER_LOGGED_OUT, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_MFA_SETUP")] - #pragma warning disable CS1591 - END_USER_MFA_SETUP, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_MFA_DELETED")] - #pragma warning disable CS1591 - END_USER_MFA_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_AUDIT_FAILED_LOGIN")] - #pragma warning disable CS1591 - END_USER_AUDIT_FAILED_LOGIN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_CRITICAL_ACTION")] - #pragma warning disable CS1591 - END_USER_CRITICAL_ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_CREATED")] - #pragma warning disable CS1591 - CONTACT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_CREATED_API")] - #pragma warning disable CS1591 - CONTACT_CREATED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_UPDATED")] - #pragma warning disable CS1591 - CONTACT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_UPDATED_API")] - #pragma warning disable CS1591 - CONTACT_UPDATED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_DELETED")] - #pragma warning disable CS1591 - CONTACT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_DELETED_API")] - #pragma warning disable CS1591 - CONTACT_DELETED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_GROUP_CREATED")] - #pragma warning disable CS1591 - DEVICE_GROUP_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_GROUP_UPDATED")] - #pragma warning disable CS1591 - DEVICE_GROUP_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_GROUP_DELETED")] - #pragma warning disable CS1591 - DEVICE_GROUP_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "TICKET_TEMPLATE_CREATED")] - #pragma warning disable CS1591 - TICKET_TEMPLATE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TICKET_TEMPLATE_UPDATED")] - #pragma warning disable CS1591 - TICKET_TEMPLATE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TICKET_TEMPLATE_DELETED")] - #pragma warning disable CS1591 - TICKET_TEMPLATE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CUSTOM_HEALTH_STATUS_CHANGED")] - #pragma warning disable CS1591 - CUSTOM_HEALTH_STATUS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "CUSTOM_HEALTH_STATUS_RESET")] - #pragma warning disable CS1591 - CUSTOM_HEALTH_STATUS_RESET, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_CREATION_FAILED")] - #pragma warning disable CS1591 - PSA_TICKET_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_CREATION_SUCCEEDED")] - #pragma warning disable CS1591 - PSA_TICKET_CREATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "RESET_BY_PSA_TICKET_CALLBACK")] - #pragma warning disable CS1591 - RESET_BY_PSA_TICKET_CALLBACK, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_CREATION_TEST")] - #pragma warning disable CS1591 - PSA_TICKET_CREATION_TEST, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_ENABLED")] - #pragma warning disable CS1591 - PSA_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_DISABLED")] - #pragma warning disable CS1591 - PSA_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_CREDENTIALS_FAILED")] - #pragma warning disable CS1591 - PSA_CREDENTIALS_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_AGREEMENTS_SYNC_COMPLETED")] - #pragma warning disable CS1591 - CONNECTWISE_AGREEMENTS_SYNC_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_AGREEMENTS_SYNC_STARTED")] - #pragma warning disable CS1591 - CONNECTWISE_AGREEMENTS_SYNC_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_COMPLETED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_STARTED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_NODE_CREATED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_NODE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_NODE_UPDATED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_NODE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_NODE_DELETED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_NODE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_UPDATED")] - #pragma warning disable CS1591 - CONNECTWISE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISECONTROL_ATTEMPT")] - #pragma warning disable CS1591 - CONNECTWISECONTROL_ATTEMPT, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_STARTED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_COMPLETED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_NODE_CREATED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_NODE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_NODE_UPDATED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_NODE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_NODE_DELETED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_NODE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_UPDATED")] - #pragma warning disable CS1591 - AUTOTASK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_ATTACHMENT_FAILURE")] - #pragma warning disable CS1591 - AUTOTASK_ATTACHMENT_FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_UPDATED_FAILED")] - #pragma warning disable CS1591 - PSA_TICKET_UPDATED_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_UPDATED_SUCCEEDED")] - #pragma warning disable CS1591 - PSA_TICKET_UPDATED_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_CREATED")] - #pragma warning disable CS1591 - REPORT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_UPDATED")] - #pragma warning disable CS1591 - REPORT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_DELETED")] - #pragma warning disable CS1591 - REPORT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "TIME_ZONE_UPDATED")] - #pragma warning disable CS1591 - TIME_ZONE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "LANGUAGE_TAG_UPDATED")] - #pragma warning disable CS1591 - LANGUAGE_TAG_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ROLE_CREATED")] - #pragma warning disable CS1591 - NODE_ROLE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ROLE_UPDATED")] - #pragma warning disable CS1591 - NODE_ROLE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ROLE_DELETED")] - #pragma warning disable CS1591 - NODE_ROLE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "COMMENT")] - #pragma warning disable CS1591 - COMMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_INSTALLED")] - #pragma warning disable CS1591 - VIPREAV_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_INSTALL_FAILED")] - #pragma warning disable CS1591 - VIPREAV_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_UNINSTALLED")] - #pragma warning disable CS1591 - VIPREAV_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - VIPREAV_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_ACTIVEPROTECTION_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - VIPREAV_ACTIVEPROTECTION_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_USERINITIATED_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - VIPREAV_USERINITIATED_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_QUARANTINED_THREAT_REMOVED")] - #pragma warning disable CS1591 - VIPREAV_QUARANTINED_THREAT_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_REBOOT_REQUIRED")] - #pragma warning disable CS1591 - VIPREAV_REBOOT_REQUIRED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_STARTED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_COMPLETED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_ABORTED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_ABORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_FAILED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_PAUSED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_PAUSED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_DISABLED")] - #pragma warning disable CS1591 - VIPREAV_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "WEBROOT_COMMAND_SUBMITTED")] - #pragma warning disable CS1591 - WEBROOT_COMMAND_SUBMITTED, - #pragma warning restore CS1591 - [EnumMember(Value = "WEBROOT_THREAT_DETECTED")] - #pragma warning disable CS1591 - WEBROOT_THREAT_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "WEBROOT_INSTALL_FAILED")] - #pragma warning disable CS1591 - WEBROOT_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_SCAN_STARTED")] - #pragma warning disable CS1591 - BITDEFENDER_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_SCAN_COMPLETED")] - #pragma warning disable CS1591 - BITDEFENDER_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_THREAT_DELETE_FROM_QUARANTINE")] - #pragma warning disable CS1591 - BITDEFENDER_THREAT_DELETE_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_THREAT_RESTORE_FROM_QUARANTINE")] - #pragma warning disable CS1591 - BITDEFENDER_THREAT_RESTORE_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_SCAN_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_SCAN_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_THREAT_DELETE_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_THREAT_DELETE_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_THREAT_RESTORE_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_THREAT_RESTORE_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DOWNLOAD_STARTED")] - #pragma warning disable CS1591 - BITDEFENDER_DOWNLOAD_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DOWNLOAD_SUCCEEDED")] - #pragma warning disable CS1591 - BITDEFENDER_DOWNLOAD_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DOWNLOAD_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_DOWNLOAD_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_INSTALLATION_STARTED")] - #pragma warning disable CS1591 - BITDEFENDER_INSTALLATION_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_INSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - BITDEFENDER_INSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_INSTALLATION_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_INSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_UNINSTALLATION_STARTED")] - #pragma warning disable CS1591 - BITDEFENDER_UNINSTALLATION_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_UNINSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - BITDEFENDER_UNINSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_UNINSTALLATION_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_UNINSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_UNPACKING_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_UNPACKING_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_IGNORED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_IGNORED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_PRESENT")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_PRESENT, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_DELETED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_BLOCKED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_BLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_CLEANED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_CLEANED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_PURGE_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_PURGE_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_PURGE_QUARANTINE_SUCCESS")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_PURGE_QUARANTINE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_QUARANTINE_RESTORED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_QUARANTINE_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_QUARANTINE_RESTORED_CUSTOMPATH")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_QUARANTINE_RESTORED_CUSTOMPATH, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_QUARANTINE_DELETED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_QUARANTINE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_RETRY_INSTALL_COMPLETED")] - #pragma warning disable CS1591 - BITDEFENDER_RETRY_INSTALL_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DISABLED")] - #pragma warning disable CS1591 - BITDEFENDER_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_EXISTING_PRODUCT_UNINSTALL")] - #pragma warning disable CS1591 - BITDEFENDER_EXISTING_PRODUCT_UNINSTALL, - #pragma warning restore CS1591 - [EnumMember(Value = "COMPETITOR_EXISTING_PRODUCT_UNINSTALL")] - #pragma warning disable CS1591 - COMPETITOR_EXISTING_PRODUCT_UNINSTALL, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULE_INSTALL_OPTION_CHANGED")] - #pragma warning disable CS1591 - SCHEDULE_INSTALL_OPTION_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURITY_CREDENTIAL_ACCESS_GRANTED")] - #pragma warning disable CS1591 - SECURITY_CREDENTIAL_ACCESS_GRANTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURITY_CREDENTIAL_ACCESS_DENIED")] - #pragma warning disable CS1591 - SECURITY_CREDENTIAL_ACCESS_DENIED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_SCAN_STARTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_SCAN_COMPLETED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_APPLY_PATCH_STARTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_APPLY_PATCH_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_APPLY_PATCH_COMPLETED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_APPLY_PATCH_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_INSTALLED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_INSTALL_FAILED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_MESSAGE")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_MESSAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_FAILURE")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_ROLLBACK_PATCH_REQUESTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_ROLLBACK_PATCH_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_ROLLBACK_PATCH_STARTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_ROLLBACK_PATCH_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_ROLLBACK_PATCH_COMPLETED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_ROLLBACK_PATCH_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_PATCH_APPROVED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_PATCH_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_PATCH_REJECTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_PATCH_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_SCAN_STARTED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_SCAN_COMPLETED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_APPLY_PATCH_STARTED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_APPLY_PATCH_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_APPLY_PATCH_COMPLETED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_APPLY_PATCH_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_INSTALLED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_INSTALL_FAILED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_MESSAGE")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_MESSAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_PATCH_APPROVED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_PATCH_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_PATCH_REJECTED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_PATCH_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_INSTALLED")] - #pragma warning disable CS1591 - TEAMVIEWER_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_INSTALL_FAILED")] - #pragma warning disable CS1591 - TEAMVIEWER_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_UNINSTALLED")] - #pragma warning disable CS1591 - TEAMVIEWER_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - TEAMVIEWER_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONNECTION_ESTABLISHED")] - #pragma warning disable CS1591 - TEAMVIEWER_CONNECTION_ESTABLISHED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONNECTION_TERMINATED")] - #pragma warning disable CS1591 - TEAMVIEWER_CONNECTION_TERMINATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_PERMANENT_PASSWORD_CHANGED")] - #pragma warning disable CS1591 - TEAMVIEWER_PERMANENT_PASSWORD_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_ACCOUNTNAME_ADDED")] - #pragma warning disable CS1591 - TEAMVIEWER_ACCOUNTNAME_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_ACCOUNTNAME_CHANGED")] - #pragma warning disable CS1591 - TEAMVIEWER_ACCOUNTNAME_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_ACCOUNTNAME_REMOVED")] - #pragma warning disable CS1591 - TEAMVIEWER_ACCOUNTNAME_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONNECTION_CANCELLED")] - #pragma warning disable CS1591 - TEAMVIEWER_CONNECTION_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONFIG_CHANGED")] - #pragma warning disable CS1591 - TEAMVIEWER_CONFIG_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP_CONNECTION_INITIATED")] - #pragma warning disable CS1591 - SPLASHTOP_CONNECTION_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP_CONNECTION_ESTABLISHED")] - #pragma warning disable CS1591 - SPLASHTOP_CONNECTION_ESTABLISHED, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP_CONNECTION_TERMINATED")] - #pragma warning disable CS1591 - SPLASHTOP_CONNECTION_TERMINATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_UPLOAD_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_UPLOAD_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DOWNLOAD_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DOWNLOAD_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COMPRESS_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COMPRESS_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COMPRESS_FILE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COMPRESS_FILE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COMPRESS_FILE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COMPRESS_FILE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_DIRECTORY_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_DIRECTORY_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MODIFY_OBJECT_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MODIFY_OBJECT_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MODIFY_OBJECT_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MODIFY_OBJECT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COPY_OBJECT_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COPY_OBJECT_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COPY_OBJECT_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COPY_OBJECT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MOVE_OBJECT_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MOVE_OBJECT_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MOVE_OBJECT_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MOVE_OBJECT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_OBJECT_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_OBJECT_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_OBJECT_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_OBJECT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_DIRECTORY_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_DIRECTORY_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_DIRECTORY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_DIRECTORY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_FILE_TRANSFER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_FILE_TRANSFER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_FILE_TRANSFER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_FILE_TRANSFER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_SERVICE_CONTROL_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_SERVICE_CONTROL_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_START_SERVICE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_START_SERVICE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_START_SERVICE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_START_SERVICE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_STOP_SERVICE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_STOP_SERVICE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_STOP_SERVICE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_STOP_SERVICE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RESTART_SERVICE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RESTART_SERVICE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RESTART_SERVICE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RESTART_SERVICE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_START_TYPE_CHANGE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_START_TYPE_CHANGE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_START_TYPE_CHANGE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_START_TYPE_CHANGE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_PROCESS_CONTROL_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_PROCESS_CONTROL_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_SET_PROCESS_PRIORITY_SUCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_SET_PROCESS_PRIORITY_SUCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_SET_PROCESS_PRIORITY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_SET_PROCESS_PRIORITY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_TERMINATE_PROCESS_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_TERMINATE_PROCESS_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_TERMINATE_PROCESS_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_TERMINATE_PROCESS_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_TERMINATE_PROCESS_TREE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_TERMINATE_PROCESS_TREE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_TERMINATE_PROCESS_TREE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_TERMINATE_PROCESS_TREE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_REGISTRY_CONTROL_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_REGISTRY_CONTROL_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_KEY_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_KEY_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_KEY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_KEY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_KEY_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_KEY_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_KEY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_KEY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_KEY_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_KEY_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_KEY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_KEY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_PARAMETER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_PARAMETER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_PARAMETER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_PARAMETER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_PARAMETER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_PARAMETER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_PARAMETER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_PARAMETER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_PARAMETER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_PARAMETER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_PARAMETER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_PARAMETER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MODIFY_PARAMETER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MODIFY_PARAMETER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MODIFY_PARAMETER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MODIFY_PARAMETER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_ACTIVE_DIRECTORY_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_ACTIVE_DIRECTORY_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "ADAPTER_ADDED")] - #pragma warning disable CS1591 - ADAPTER_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "ADAPTER_REMOVED")] - #pragma warning disable CS1591 - ADAPTER_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "ADAPTER_CONFIG_CHANGED")] - #pragma warning disable CS1591 - ADAPTER_CONFIG_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "ADAPTER_STATUS_CHANGED")] - #pragma warning disable CS1591 - ADAPTER_STATUS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "CPU_ADDED")] - #pragma warning disable CS1591 - CPU_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CPU_REMOVED")] - #pragma warning disable CS1591 - CPU_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "MEMORY_ADDED")] - #pragma warning disable CS1591 - MEMORY_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "MEMORY_REMOVED")] - #pragma warning disable CS1591 - MEMORY_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_DRIVE_ADDED")] - #pragma warning disable CS1591 - DISK_DRIVE_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_DRIVE_REMOVED")] - #pragma warning disable CS1591 - DISK_DRIVE_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "USER_LOGGED_IN")] - #pragma warning disable CS1591 - USER_LOGGED_IN, - #pragma warning restore CS1591 - [EnumMember(Value = "USER_LOGGED_OUT")] - #pragma warning disable CS1591 - USER_LOGGED_OUT, - #pragma warning restore CS1591 - [EnumMember(Value = "PORT_OPENED")] - #pragma warning disable CS1591 - PORT_OPENED, - #pragma warning restore CS1591 - [EnumMember(Value = "PORT_CLOSED")] - #pragma warning disable CS1591 - PORT_CLOSED, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_SERVICE_STARTED")] - #pragma warning disable CS1591 - WINDOWS_SERVICE_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_SERVICE_STOPPED")] - #pragma warning disable CS1591 - WINDOWS_SERVICE_STOPPED, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_DAEMON_STARTED")] - #pragma warning disable CS1591 - MAC_DAEMON_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_DAEMON_STOPPED")] - #pragma warning disable CS1591 - MAC_DAEMON_STOPPED, - #pragma warning restore CS1591 - [EnumMember(Value = "USER_ACCOUNT_ADDED")] - #pragma warning disable CS1591 - USER_ACCOUNT_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "USER_ACCOUNT_REMOVED")] - #pragma warning disable CS1591 - USER_ACCOUNT_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "PROCESS_STARTED")] - #pragma warning disable CS1591 - PROCESS_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PROCESS_STOPPED")] - #pragma warning disable CS1591 - PROCESS_STOPPED, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM_REBOOTED")] - #pragma warning disable CS1591 - SYSTEM_REBOOTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_ADDED")] - #pragma warning disable CS1591 - SOFTWARE_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_REMOVED")] - #pragma warning disable CS1591 - SOFTWARE_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_UPDATED")] - #pragma warning disable CS1591 - SOFTWARE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_OS_UPDATED")] - #pragma warning disable CS1591 - SOFTWARE_OS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_PARTITION_ADDED")] - #pragma warning disable CS1591 - DISK_PARTITION_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_PARTITION_REMOVED")] - #pragma warning disable CS1591 - DISK_PARTITION_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_VOLUME_ADDED")] - #pragma warning disable CS1591 - DISK_VOLUME_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_VOLUME_REMOVED")] - #pragma warning disable CS1591 - DISK_VOLUME_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIALS_CHANGED")] - #pragma warning disable CS1591 - CREDENTIALS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_CONTROLLER_ADDED")] - #pragma warning disable CS1591 - RAID_CONTROLLER_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_CONTROLLER_REMOVED")] - #pragma warning disable CS1591 - RAID_CONTROLLER_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_PHYSICAL_DRIVE_ADDED")] - #pragma warning disable CS1591 - RAID_PHYSICAL_DRIVE_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_PHYSICAL_DRIVE_REMOVED")] - #pragma warning disable CS1591 - RAID_PHYSICAL_DRIVE_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_LOGICAL_DISK_ADDED")] - #pragma warning disable CS1591 - RAID_LOGICAL_DISK_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_LOGICAL_DISK_REMOVED")] - #pragma warning disable CS1591 - RAID_LOGICAL_DISK_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITLOCKER_ENABLED")] - #pragma warning disable CS1591 - BITLOCKER_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITLOCKER_DISABLED")] - #pragma warning disable CS1591 - BITLOCKER_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "FILEVAULT_ENABLED")] - #pragma warning disable CS1591 - FILEVAULT_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "FILEVAULT_DISABLED")] - #pragma warning disable CS1591 - FILEVAULT_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRUSTED_PLATFORM_MODULE_ENABLED")] - #pragma warning disable CS1591 - TRUSTED_PLATFORM_MODULE_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRUSTED_PLATFORM_MODULE_DISABLED")] - #pragma warning disable CS1591 - TRUSTED_PLATFORM_MODULE_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRUSTED_PLATFORM_MODULE_INSTALLED")] - #pragma warning disable CS1591 - TRUSTED_PLATFORM_MODULE_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRUSTED_PLATFORM_MODULE_UNINSTALLED")] - #pragma warning disable CS1591 - TRUSTED_PLATFORM_MODULE_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_INSTALLED")] - #pragma warning disable CS1591 - SHADOWPROTECT_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_INSTALL_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_UNINSTALLED")] - #pragma warning disable CS1591 - SHADOWPROTECT_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_ABORTED")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_ABORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_PROVISIONED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_PROVISIONED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_PROVISION_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_PROVISION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_ACTIVATED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_ACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_ACTIVATION_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_ACTIVATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_DEACTIVATED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_DEACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_DEACTIVATION_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_DEACTIVATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_INSTALLED")] - #pragma warning disable CS1591 - IMAGEMANAGER_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_INSTALL_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_UNINSTALLED")] - #pragma warning disable CS1591 - IMAGEMANAGER_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_PROVISIONED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_PROVISIONED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_PROVISION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_PROVISION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_ACTIVATED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_ACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_ACTIVATION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_ACTIVATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_DEACTIVATED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_DEACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_DEACTIVATION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_DEACTIVATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_CONSOLIDATION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_CONSOLIDATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_VERIFICATION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_VERIFICATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "HELP_REQUEST_SUBMITTED")] - #pragma warning disable CS1591 - HELP_REQUEST_SUBMITTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_INSTALLED")] - #pragma warning disable CS1591 - CLOUDBERRY_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_INSTALL_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_UNINSTALLED")] - #pragma warning disable CS1591 - CLOUDBERRY_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPPLAN_CREATED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPPLAN_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPPLAN_EDITED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPPLAN_EDITED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPPLAN_DELETED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPPLAN_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPPLAN_CREATION_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPPLAN_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPJOB_STARTED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPJOB_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPJOB_SUCCEEDED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPJOB_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPJOB_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPJOB_COMPLETED_WITH_WARNING")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPJOB_COMPLETED_WITH_WARNING, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_USER_CREATED")] - #pragma warning disable CS1591 - CLOUDBERRY_USER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_NETWORK_CREDENTIAL_CREATED")] - #pragma warning disable CS1591 - CLOUDBERRY_NETWORK_CREDENTIAL_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_NETWORK_CREDENTIAL_CREATION_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_NETWORK_CREDENTIAL_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP_CONNECTION_INITIATED")] - #pragma warning disable CS1591 - RDP_CONNECTION_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP_CONNECTION_ESTABLISHED")] - #pragma warning disable CS1591 - RDP_CONNECTION_ESTABLISHED, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP_CONNECTION_TERMINATED")] - #pragma warning disable CS1591 - RDP_CONNECTION_TERMINATED, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP_AUTO_PROVISION")] - #pragma warning disable CS1591 - RDP_AUTO_PROVISION, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK_CREATED")] - #pragma warning disable CS1591 - SCHEDULED_TASK_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK_UPDATED")] - #pragma warning disable CS1591 - SCHEDULED_TASK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK_DELETED")] - #pragma warning disable CS1591 - SCHEDULED_TASK_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT_CREATED")] - #pragma warning disable CS1591 - SCRIPT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT_UPDATED")] - #pragma warning disable CS1591 - SCRIPT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT_DELETED")] - #pragma warning disable CS1591 - SCRIPT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_START_REQUESTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_IN_PROCESS")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_START_REQUESTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_IN_PROCESS")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_COMPLETED_WITH_WARNING")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_COMPLETED_WITH_WARNING, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUP_DOWNLOADED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUP_DOWNLOADED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPPLAN_ADDED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPPLAN_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPPLAN_EDITED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPPLAN_EDITED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPPLAN_DELETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPPLAN_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_CANCELLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_PROCESSING")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_PROCESSING, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INSTALL_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INSTALLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UNINSTALLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_CANCELLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPPLAN_CREATION_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPPLAN_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUP_CONFIGURE_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUP_CONFIGURE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_FILE_DOWNLOAD")] - #pragma warning disable CS1591 - NINJA_BACKUP_FILE_DOWNLOAD, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_FOLDER_DOWNLOAD")] - #pragma warning disable CS1591 - NINJA_BACKUP_FOLDER_DOWNLOAD, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_START_REQUESTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_PROCESSING")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_PROCESSING, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_IN_PROCESS")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_CANCELLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUP_NAS_ACCESS_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUP_NAS_ACCESS_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_RESTORE_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_RESTORE_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_RESTORE_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_RESTORE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_RESTORE_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_RESTORE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_MOUNT_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_MOUNT_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_MOUNT_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_MOUNT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_START_REQUESTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_IN_PROCESS")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_CANCELLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BACKUP_IMAGE_RESTORE_CANCELED")] - #pragma warning disable CS1591 - BACKUP_IMAGE_RESTORE_CANCELED, - #pragma warning restore CS1591 - [EnumMember(Value = "BACKUP_IMAGE_DOWNLOAD_CANCELED")] - #pragma warning disable CS1591 - BACKUP_IMAGE_DOWNLOAD_CANCELED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_INVITATION_CREATED")] - #pragma warning disable CS1591 - QC_INVITATION_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_INVITATION_DISABLED")] - #pragma warning disable CS1591 - QC_INVITATION_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_EXPIRED_INVITATION_BLOCKED")] - #pragma warning disable CS1591 - QC_EXPIRED_INVITATION_BLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_INVITATION_UPDATED")] - #pragma warning disable CS1591 - QC_INVITATION_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_DEVICE_DELETED")] - #pragma warning disable CS1591 - QC_DEVICE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_DEVICE_AGENT_INSTALL_REQUESTED")] - #pragma warning disable CS1591 - QC_DEVICE_AGENT_INSTALL_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_SESSION_STARTED")] - #pragma warning disable CS1591 - QC_SESSION_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_SESSION_TERMINATED")] - #pragma warning disable CS1591 - QC_SESSION_TERMINATED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_SESSION_REPORT_SUBMITTED")] - #pragma warning disable CS1591 - QC_SESSION_REPORT_SUBMITTED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_SUPPORT_CREATED")] - #pragma warning disable CS1591 - REMOTE_SUPPORT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_SUPPORT_UPDATED")] - #pragma warning disable CS1591 - REMOTE_SUPPORT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_SUPPORT_DELETED")] - #pragma warning disable CS1591 - REMOTE_SUPPORT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_LOCK_DEVICE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_LOCK_DEVICE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_REBOOT_DEVICE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_REBOOT_DEVICE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RESET_PASSCODE_DEVICE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_RESET_PASSCODE_DEVICE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RELINQUISH_OWNERSHIP_DEVICE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_RELINQUISH_OWNERSHIP_DEVICE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_LOCK_DEVICE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_LOCK_DEVICE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_REBOOT_DEVICE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_REBOOT_DEVICE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RESET_PASSCODE_DEVICE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_RESET_PASSCODE_DEVICE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RELINQUISH_OWNERSHIP_DEVICE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_RELINQUISH_OWNERSHIP_DEVICE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_CLEAR_PASSCODE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_CLEAR_PASSCODE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_CLEAR_PASSCODE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_CLEAR_PASSCODE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ERASE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_ERASE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ERASE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_ERASE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_UPDATE_POLICY_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_UPDATE_POLICY_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_UPDATE_POLICY_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_UPDATE_POLICY_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ASSIGN_POLICY_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_ASSIGN_POLICY_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ASSIGN_POLICY_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_ASSIGN_POLICY_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DIVISION_CONFIG_ENABLED")] - #pragma warning disable CS1591 - MDM_DIVISION_CONFIG_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DIVISION_CONFIG_DISABLED")] - #pragma warning disable CS1591 - MDM_DIVISION_CONFIG_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DIVISION_CONFIG_UPDATED")] - #pragma warning disable CS1591 - MDM_DIVISION_CONFIG_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_APN_CERTIFICATE_UPLOADED")] - #pragma warning disable CS1591 - MDM_APN_CERTIFICATE_UPLOADED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ACTION_DEVICE_STATUS_FAILED")] - #pragma warning disable CS1591 - MDM_ACTION_DEVICE_STATUS_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DISOWN_STATUS_FORBIDDEN")] - #pragma warning disable CS1591 - MDM_DISOWN_STATUS_FORBIDDEN, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DISOWN_STATUS_COMPLETED")] - #pragma warning disable CS1591 - MDM_DISOWN_STATUS_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ADE_TOKEN_UPLOADED")] - #pragma warning disable CS1591 - MDM_ADE_TOKEN_UPLOADED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ADE_TOKEN_RENEWED")] - #pragma warning disable CS1591 - MDM_ADE_TOKEN_RENEWED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RENEW_ENROLLMENT_PROFILE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_RENEW_ENROLLMENT_PROFILE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RENEW_ENROLLMENT_PROFILE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_RENEW_ENROLLMENT_PROFILE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_INSTALL_APP_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_INSTALL_APP_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_APN_CERTIFICATE_RENEWED")] - #pragma warning disable CS1591 - MDM_APN_CERTIFICATE_RENEWED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_CONNECTION_ANDROID_ENTERPRISE_RENAME_SUCCESS")] - #pragma warning disable CS1591 - MDM_CONNECTION_ANDROID_ENTERPRISE_RENAME_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_TEMPLATE_CREATED")] - #pragma warning disable CS1591 - REPORT_TEMPLATE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_TEMPLATE_UPDATED")] - #pragma warning disable CS1591 - REPORT_TEMPLATE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_TEMPLATE_DELETED")] - #pragma warning disable CS1591 - REPORT_TEMPLATE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_SCHEDULE_CREATED")] - #pragma warning disable CS1591 - REPORT_SCHEDULE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_SCHEDULE_UPDATED")] - #pragma warning disable CS1591 - REPORT_SCHEDULE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_SCHEDULE_DELETED")] - #pragma warning disable CS1591 - REPORT_SCHEDULE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_TEMPLATE_DUPLICATED")] - #pragma warning disable CS1591 - REPORT_TEMPLATE_DUPLICATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_SCHEDULE_DUPLICATED")] - #pragma warning disable CS1591 - REPORT_SCHEDULE_DUPLICATED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_ENABLED")] - #pragma warning disable CS1591 - GRAVITYZONE_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DISABLED")] - #pragma warning disable CS1591 - GRAVITYZONE_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_STARTED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_IGNORED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_IGNORED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_PRESENT")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_PRESENT, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_BLOCKED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_BLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_CLEANED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_CLEANED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PURGE_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_PURGE_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PURGE_QUARANTINE_SUCCESS")] - #pragma warning disable CS1591 - GRAVITYZONE_PURGE_QUARANTINE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PROVISION_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_PROVISION_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PROVISION_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_PROVISION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_RETRY_INSTALL_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_RETRY_INSTALL_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PARTNER_ASSIST_DISABLED")] - #pragma warning disable CS1591 - GRAVITYZONE_PARTNER_ASSIST_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_ATTEMPT_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_ATTEMPT_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_RESET_INACCESSIBLE_LICENSE_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_RESET_INACCESSIBLE_LICENSE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_REQUESTED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_REQUESTED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE_REQUESTED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_STARTED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DOWNLOAD_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_DOWNLOAD_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_RETRY_STARTED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_RETRY_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_CANCELLED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DISABLING_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_DISABLING_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_EXISTS_DETECTED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_EXISTS_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_REQUESTED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DEVICE_MANAGED")] - #pragma warning disable CS1591 - GRAVITYZONE_DEVICE_MANAGED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DEVICE_UNMANAGED")] - #pragma warning disable CS1591 - GRAVITYZONE_DEVICE_UNMANAGED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_COMPANY_CANNOT_BE_ACCESSED")] - #pragma warning disable CS1591 - GRAVITYZONE_COMPANY_CANNOT_BE_ACCESSED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_QUARANTINED_THREAT_DELETED_OR_RESTORED")] - #pragma warning disable CS1591 - GRAVITYZONE_QUARANTINED_THREAT_DELETED_OR_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SUCCEEDED_TO_REQUEST_RECONFIGURE_TASK")] - #pragma warning disable CS1591 - GRAVITYZONE_SUCCEEDED_TO_REQUEST_RECONFIGURE_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_FAILED_TO_REQUEST_RECONFIGURE_TASK")] - #pragma warning disable CS1591 - GRAVITYZONE_FAILED_TO_REQUEST_RECONFIGURE_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT_FILE_SUSPICIOUS")] - #pragma warning disable CS1591 - ATTACHMENT_FILE_SUSPICIOUS, - #pragma warning restore CS1591 - [EnumMember(Value = "SMTP_SEND_ERROR")] - #pragma warning disable CS1591 - SMTP_SEND_ERROR, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_ROLE_CREATED")] - #pragma warning disable CS1591 - TECHNICIAN_ROLE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_ROLE_UPDATED")] - #pragma warning disable CS1591 - TECHNICIAN_ROLE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_ROLE_DELETED")] - #pragma warning disable CS1591 - TECHNICIAN_ROLE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_ROLE_ASSIGNMENT_CHANGED")] - #pragma warning disable CS1591 - TECHNICIAN_ROLE_ASSIGNMENT_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_PERMISSIONS_CHANGED")] - #pragma warning disable CS1591 - TECHNICIAN_PERMISSIONS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLE_CREATED")] - #pragma warning disable CS1591 - END_USER_ROLE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLE_UPDATED")] - #pragma warning disable CS1591 - END_USER_ROLE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLE_DELETED")] - #pragma warning disable CS1591 - END_USER_ROLE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLE_ASSIGNMENT_CHANGED")] - #pragma warning disable CS1591 - END_USER_ROLE_ASSIGNMENT_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_PERMISSIONS_CHANGED")] - #pragma warning disable CS1591 - END_USER_PERMISSIONS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_ENABLED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_DISABLED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_STARTED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_UPGRADED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_UPGRADED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_SHUT_DOWN")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_SHUT_DOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_INSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_INSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_INSTALLATION_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_INSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_POLICY_CHANGED")] - #pragma warning disable CS1591 - SENTINEL_ONE_POLICY_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_LOCAL_CONFIG_CHANGE_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_LOCAL_CONFIG_CHANGE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_REGISTRATION_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_REGISTRATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_REGISTRATION_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_REGISTRATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_REMEDIATION_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_REMEDIATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_REMEDIATION_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_REMEDIATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_REQUIRE_REBOOT")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_REQUIRE_REBOOT, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_CANNOT_KILL")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_CANNOT_KILL, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_FAILED_TO_KILL")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_FAILED_TO_KILL, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_QUARANTINE_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_QUARANTINE_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_UNQUARANTINE_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_UNQUARANTINE_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_UNQUARANTINE_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_UNQUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_THREAT_DETECTED")] - #pragma warning disable CS1591 - SENTINEL_ONE_THREAT_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_SCAN_STARTED")] - #pragma warning disable CS1591 - SENTINEL_ONE_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_SCAN_COMPLETED")] - #pragma warning disable CS1591 - SENTINEL_ONE_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_SCAN_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_SCAN_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_SCAN_ABORTED")] - #pragma warning disable CS1591 - SENTINEL_ONE_SCAN_ABORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_COMMAND_RECEIVED")] - #pragma warning disable CS1591 - SENTINEL_ONE_COMMAND_RECEIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_COMMAND_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_COMMAND_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "OAUTH2_CREATED")] - #pragma warning disable CS1591 - OAUTH2_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "OAUTH2_UPDATED")] - #pragma warning disable CS1591 - OAUTH2_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "OAUTH2_DELETED")] - #pragma warning disable CS1591 - OAUTH2_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_ENABLED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_DISABLED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_STARTED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_UPGRADED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_UPGRADED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_SHUT_DOWN")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_SHUT_DOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_INSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_INSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_INSTALLATION_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_INSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_REGISTRATION_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_REGISTRATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_REGISTRATION_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_REGISTRATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_REMEDIATION_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_REMEDIATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_REMEDIATION_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_REMEDIATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_MITIGATION_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_MITIGATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_MITIGATION_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_MITIGATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_QUARANTINE_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_QUARANTINE_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_THREAT_DETECTED")] - #pragma warning disable CS1591 - CROWDSTRIKE_THREAT_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_MISSING_PERMISSIONS")] - #pragma warning disable CS1591 - CROWDSTRIKE_MISSING_PERMISSIONS, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_CREDENTIAL_INVALID")] - #pragma warning disable CS1591 - CROWDSTRIKE_CREDENTIAL_INVALID, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_CREATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_DELETED")] - #pragma warning disable CS1591 - SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_RESET_AUTHENTICATION")] - #pragma warning disable CS1591 - SERVICE_NOW_RESET_AUTHENTICATION, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_NODE_CREATED")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_NODE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_NODE_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_NODE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_NODE_ERROR")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_NODE_ERROR, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_BY_CLIENT_STARTED")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_BY_CLIENT_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_BY_CLIENT_COMPLETED")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_BY_CLIENT_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CLIENT_MAPPING_CREATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CLIENT_MAPPING_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CLIENT_MAPPING_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CLIENT_MAPPING_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CLIENT_MAPPING_DELETED")] - #pragma warning disable CS1591 - SERVICE_NOW_CLIENT_MAPPING_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_SYNC_CLIENT_ON_DEMAND")] - #pragma warning disable CS1591 - SERVICE_NOW_SYNC_CLIENT_ON_DEMAND, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CLIENT_MAPPING_STATUS_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CLIENT_MAPPING_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "ZENDESK_UPDATED")] - #pragma warning disable CS1591 - ZENDESK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "FRESHSERVICE_UPDATED")] - #pragma warning disable CS1591 - FRESHSERVICE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_CREATION_FAILED")] - #pragma warning disable CS1591 - NINJA_TICKETING_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_ACTIVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_ACTIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_DEACTIVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_DEACTIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ATTRIBUTE_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ATTRIBUTE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ATTRIBUTE_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ATTRIBUTE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ATTRIBUTE_ACTIVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ATTRIBUTE_ACTIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ATTRIBUTE_DEACTIVATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ATTRIBUTE_DEACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_RULESET_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_RULESET_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_RULESET_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_RULESET_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_RULESET_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_RULESET_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_MAKE_DEFAULT")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_MAKE_DEFAULT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TRIGGER_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TRIGGER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TRIGGER_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TRIGGER_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TRIGGER_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TRIGGER_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TICKET_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TICKET_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TICKET_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TICKET_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_PENDING_EMAIL_CREATION_APPROVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_PENDING_EMAIL_CREATION_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_PENDING_EMAIL_UPDATE_APPROVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_PENDING_EMAIL_UPDATE_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_PENDING_EMAIL_REJECTED")] - #pragma warning disable CS1591 - NINJA_TICKETING_PENDING_EMAIL_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ENABLED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_DISABLED")] - #pragma warning disable CS1591 - NINJA_TICKETING_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_MAKE_DEFAULT")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_MAKE_DEFAULT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_CONDITION_RULE_MAKE_DEFAULT")] - #pragma warning disable CS1591 - NINJA_TICKETING_CONDITION_RULE_MAKE_DEFAULT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_SCRIPT_RULE_MAKE_DEFAULT")] - #pragma warning disable CS1591 - NINJA_TICKETING_SCRIPT_RULE_MAKE_DEFAULT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_PENDING_EMAIL_RECEIVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_PENDING_EMAIL_RECEIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TICKET_REINSTATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TICKET_REINSTATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_STATUS_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_STATUS_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_STATUS_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_STATUS_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_AGREEMENT_BULK_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_AGREEMENT_BULK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_CREATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_UPDATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_ARCHIVED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_RESTORED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_DELETED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_CREATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_UPDATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_ARCHIVED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_RESTORED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_DELETED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_PUBLIC_TEMPORARY_TOKEN_CREATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_PUBLIC_TEMPORARY_TOKEN_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_PUBLIC_LINK_CREATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_PUBLIC_LINK_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_PUBLIC_LINK_UPDATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_PUBLIC_LINK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_PUBLIC_LINK_DELETED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_PUBLIC_LINK_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_MOVED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_MOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_MOVED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_MOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_SHARED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_SHARED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_ACCESS_RESTRICTED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_ACCESS_RESTRICTED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_CREATED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_UPDATED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_ARCHIVED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_RESTORED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_DELETED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_CREATED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_UPDATED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_ARCHIVED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_RESTORED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_DELETED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_ATTRIBUTE_VALUE_DECRYPTED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_ATTRIBUTE_VALUE_DECRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_REVISION_DELETED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_REVISION_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENTATION_DELEGATE_NODE_RESPONSIBILITY_ADDED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENTATION_DELEGATE_NODE_RESPONSIBILITY_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENTATION_DELEGATE_NODE_RESPONSIBILITY_REMOVED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENTATION_DELEGATE_NODE_RESPONSIBILITY_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_ATTRIBUTE_TEMPORARY_PUBLIC_TOKEN_CREATED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_ATTRIBUTE_TEMPORARY_PUBLIC_TOKEN_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_CREATED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_UPDATED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_DELETED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_PROMOTED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_PROMOTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_TEMPORARY_PUBLIC_TOKEN_CREATED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_TEMPORARY_PUBLIC_TOKEN_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_ARCHIVED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_RESTORED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_CREATED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_UPDATED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_DELETED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_ARCHIVED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_RESTORED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_CREATED")] - #pragma warning disable CS1591 - RELATED_ITEM_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_UPDATED")] - #pragma warning disable CS1591 - RELATED_ITEM_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_DELETED")] - #pragma warning disable CS1591 - RELATED_ITEM_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_SECURE_VALUE_DECRYPTED")] - #pragma warning disable CS1591 - RELATED_ITEM_SECURE_VALUE_DECRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_TEMPORARY_PUBLIC_TOKEN_CREATED")] - #pragma warning disable CS1591 - RELATED_ITEM_TEMPORARY_PUBLIC_TOKEN_CREATED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Activities/Activities5XXError.cs b/V2/Device/Item/Activities/Activities5XXError.cs deleted file mode 100644 index b36b750..0000000 --- a/V2/Device/Item/Activities/Activities5XXError.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Activities -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Activities5XXError : ApiException, IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The activities property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Activities { get; set; } -#nullable restore -#else - public List Activities { get; set; } -#endif - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Last recorded activity ID for account - public long? LastActivityId { get; set; } - /// Last recorded activity ID for device - public long? LastNodeActivityId { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// - /// Instantiates a new and sets the default values. - /// - public Activities5XXError() - { - 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::NinjaOne.Client.V2.Device.Item.Activities.Activities5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Activities.Activities5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "activities", n => { Activities = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Device.Item.Activities.Activities5XXError_activities.CreateFromDiscriminatorValue)?.AsList(); } }, - { "lastActivityId", n => { LastActivityId = n.GetLongValue(); } }, - { "lastNodeActivityId", n => { LastNodeActivityId = n.GetLongValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("activities", Activities); - writer.WriteLongValue("lastActivityId", LastActivityId); - writer.WriteLongValue("lastNodeActivityId", LastNodeActivityId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Activities/Activities5XXError_activities.cs b/V2/Device/Item/Activities/Activities5XXError_activities.cs deleted file mode 100644 index 3de691d..0000000 --- a/V2/Device/Item/Activities/Activities5XXError_activities.cs +++ /dev/null @@ -1,159 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Activities -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Activities5XXError_activities : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Activity result - public global::NinjaOne.Client.V2.Device.Item.Activities.Activities5XXError_activities_activityResult? ActivityResult { get; set; } - /// Activity timestamp - public double? ActivityTime { get; set; } - /// Activity type code - public global::NinjaOne.Client.V2.Device.Item.Activities.Activities5XXError_activities_activityType? ActivityType { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Activity data -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Activities.Activities5XXError_activities_data? Data { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Activities.Activities5XXError_activities_data Data { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// Activity identifier - public long? Id { get; set; } - /// Activity message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Message { get; set; } -#nullable restore -#else - public string Message { get; set; } -#endif - /// Priority - public global::NinjaOne.Client.V2.Device.Item.Activities.Activities5XXError_activities_priority? Priority { get; set; } - /// Activity series UID (job/condition UID) - public Guid? SeriesUid { get; set; } - /// Severity - public global::NinjaOne.Client.V2.Device.Item.Activities.Activities5XXError_activities_severity? Severity { get; set; } - /// Source configuration/policy element reference - public Guid? SourceConfigUid { get; set; } - /// Source configuration/policy element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SourceName { get; set; } -#nullable restore -#else - public string SourceName { get; set; } -#endif - /// Status description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Activity status code - public global::NinjaOne.Client.V2.Device.Item.Activities.Activities5XXError_activities_statusCode? StatusCode { get; set; } - /// Activity subject -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subject { get; set; } -#nullable restore -#else - public string Subject { get; set; } -#endif - /// Activity type description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// User identifier - public int? UserId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Activities5XXError_activities() - { - 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::NinjaOne.Client.V2.Device.Item.Activities.Activities5XXError_activities CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Activities.Activities5XXError_activities(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "activityResult", n => { ActivityResult = n.GetEnumValue(); } }, - { "activityTime", n => { ActivityTime = n.GetDoubleValue(); } }, - { "activityType", n => { ActivityType = n.GetEnumValue(); } }, - { "data", n => { Data = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Activities.Activities5XXError_activities_data.CreateFromDiscriminatorValue); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetLongValue(); } }, - { "message", n => { Message = n.GetStringValue(); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "seriesUid", n => { SeriesUid = n.GetGuidValue(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - { "sourceConfigUid", n => { SourceConfigUid = n.GetGuidValue(); } }, - { "sourceName", n => { SourceName = n.GetStringValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "statusCode", n => { StatusCode = n.GetEnumValue(); } }, - { "subject", n => { Subject = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - { "userId", n => { UserId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("activityResult", ActivityResult); - writer.WriteDoubleValue("activityTime", ActivityTime); - writer.WriteEnumValue("activityType", ActivityType); - writer.WriteObjectValue("data", Data); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteLongValue("id", Id); - writer.WriteStringValue("message", Message); - writer.WriteEnumValue("priority", Priority); - writer.WriteGuidValue("seriesUid", SeriesUid); - writer.WriteEnumValue("severity", Severity); - writer.WriteGuidValue("sourceConfigUid", SourceConfigUid); - writer.WriteStringValue("sourceName", SourceName); - writer.WriteStringValue("status", Status); - writer.WriteEnumValue("statusCode", StatusCode); - writer.WriteStringValue("subject", Subject); - writer.WriteStringValue("type", Type); - writer.WriteIntValue("userId", UserId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Activities/Activities5XXError_activities_activityResult.cs b/V2/Device/Item/Activities/Activities5XXError_activities_activityResult.cs deleted file mode 100644 index c1805e6..0000000 --- a/V2/Device/Item/Activities/Activities5XXError_activities_activityResult.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Activities -{ - /// Activity result - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities5XXError_activities_activityResult - { - [EnumMember(Value = "SUCCESS")] - #pragma warning disable CS1591 - SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILURE")] - #pragma warning disable CS1591 - FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "UNSUPPORTED")] - #pragma warning disable CS1591 - UNSUPPORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNCOMPLETED")] - #pragma warning disable CS1591 - UNCOMPLETED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Activities/Activities5XXError_activities_activityType.cs b/V2/Device/Item/Activities/Activities5XXError_activities_activityType.cs deleted file mode 100644 index 1aae9dd..0000000 --- a/V2/Device/Item/Activities/Activities5XXError_activities_activityType.cs +++ /dev/null @@ -1,163 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Activities -{ - /// Activity type code - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities5XXError_activities_activityType - { - [EnumMember(Value = "ACTIONSET")] - #pragma warning disable CS1591 - ACTIONSET, - #pragma warning restore CS1591 - [EnumMember(Value = "ACTION")] - #pragma warning disable CS1591 - ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION")] - #pragma warning disable CS1591 - CONDITION, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_ACTIONSET")] - #pragma warning disable CS1591 - CONDITION_ACTIONSET, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_ACTION")] - #pragma warning disable CS1591 - CONDITION_ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "ANTIVIRUS")] - #pragma warning disable CS1591 - ANTIVIRUS, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER")] - #pragma warning disable CS1591 - TEAMVIEWER, - #pragma warning restore CS1591 - [EnumMember(Value = "MONITOR")] - #pragma warning disable CS1591 - MONITOR, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "COMMENT")] - #pragma warning disable CS1591 - COMMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT")] - #pragma warning disable CS1591 - SHADOWPROTECT, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER")] - #pragma warning disable CS1591 - IMAGEMANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "HELP_REQUEST")] - #pragma warning disable CS1591 - HELP_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP")] - #pragma warning disable CS1591 - SPLASHTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY")] - #pragma warning disable CS1591 - CLOUDBERRY, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUP")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUP, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK")] - #pragma warning disable CS1591 - SCHEDULED_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP")] - #pragma warning disable CS1591 - RDP, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPTING")] - #pragma warning disable CS1591 - SCRIPTING, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURITY")] - #pragma warning disable CS1591 - SECURITY, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS")] - #pragma warning disable CS1591 - REMOTE_TOOLS, - #pragma warning restore CS1591 - [EnumMember(Value = "VIRTUALIZATION")] - #pragma warning disable CS1591 - VIRTUALIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA")] - #pragma warning disable CS1591 - PSA, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM")] - #pragma warning disable CS1591 - MDM, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_REMOTE")] - #pragma warning disable CS1591 - NINJA_REMOTE, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_QUICK_CONNECT")] - #pragma warning disable CS1591 - NINJA_QUICK_CONNECT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_NETWORK_DISCOVERY")] - #pragma warning disable CS1591 - NINJA_NETWORK_DISCOVERY, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP")] - #pragma warning disable CS1591 - NINJA_BACKUP, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING")] - #pragma warning disable CS1591 - NINJA_TICKETING, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM")] - #pragma warning disable CS1591 - RELATED_ITEM, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENTATION")] - #pragma warning disable CS1591 - DOCUMENTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MICROSOFT_INTUNE")] - #pragma warning disable CS1591 - MICROSOFT_INTUNE, - #pragma warning restore CS1591 - [EnumMember(Value = "DYNAMIC_POLICY")] - #pragma warning disable CS1591 - DYNAMIC_POLICY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Activities/Activities5XXError_activities_data.cs b/V2/Device/Item/Activities/Activities5XXError_activities_data.cs deleted file mode 100644 index 0c00465..0000000 --- a/V2/Device/Item/Activities/Activities5XXError_activities_data.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Activities -{ - /// - /// Activity data - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Activities5XXError_activities_data : 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. - /// - public Activities5XXError_activities_data() - { - 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::NinjaOne.Client.V2.Device.Item.Activities.Activities5XXError_activities_data CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Activities.Activities5XXError_activities_data(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Activities/Activities5XXError_activities_priority.cs b/V2/Device/Item/Activities/Activities5XXError_activities_priority.cs deleted file mode 100644 index fe4c592..0000000 --- a/V2/Device/Item/Activities/Activities5XXError_activities_priority.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Activities -{ - /// Priority - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities5XXError_activities_priority - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Activities/Activities5XXError_activities_severity.cs b/V2/Device/Item/Activities/Activities5XXError_activities_severity.cs deleted file mode 100644 index 5489a3d..0000000 --- a/V2/Device/Item/Activities/Activities5XXError_activities_severity.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Activities -{ - /// Severity - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities5XXError_activities_severity - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Activities/Activities5XXError_activities_statusCode.cs b/V2/Device/Item/Activities/Activities5XXError_activities_statusCode.cs deleted file mode 100644 index 9ef56b1..0000000 --- a/V2/Device/Item/Activities/Activities5XXError_activities_statusCode.cs +++ /dev/null @@ -1,2703 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Activities -{ - /// Activity status code - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Activities5XXError_activities_statusCode - { - [EnumMember(Value = "START_REQUESTED")] - #pragma warning disable CS1591 - START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "STARTED")] - #pragma warning disable CS1591 - STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_PROCESS")] - #pragma warning disable CS1591 - IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "COMPLETED")] - #pragma warning disable CS1591 - COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CANCEL_REQUESTED")] - #pragma warning disable CS1591 - CANCEL_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CANCELLED")] - #pragma warning disable CS1591 - CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "BLOCKED")] - #pragma warning disable CS1591 - BLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRIGGERED")] - #pragma warning disable CS1591 - TRIGGERED, - #pragma warning restore CS1591 - [EnumMember(Value = "RESET")] - #pragma warning disable CS1591 - RESET, - #pragma warning restore CS1591 - [EnumMember(Value = "ACKNOWLEDGED")] - #pragma warning disable CS1591 - ACKNOWLEDGED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISABLED")] - #pragma warning disable CS1591 - DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "EVALUATION_FAILURE")] - #pragma warning disable CS1591 - EVALUATION_FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CREATED")] - #pragma warning disable CS1591 - CLIENT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_UPDATED")] - #pragma warning disable CS1591 - CLIENT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DELETED")] - #pragma warning disable CS1591 - CLIENT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL_CREATED")] - #pragma warning disable CS1591 - CREDENTIAL_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL_UPDATED")] - #pragma warning disable CS1591 - CREDENTIAL_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL_DELETED")] - #pragma warning disable CS1591 - CREDENTIAL_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION_CREATED")] - #pragma warning disable CS1591 - LOCATION_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION_UPDATED")] - #pragma warning disable CS1591 - LOCATION_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION_DELETED")] - #pragma warning disable CS1591 - LOCATION_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "POLICY_CREATED")] - #pragma warning disable CS1591 - POLICY_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "POLICY_UPDATED")] - #pragma warning disable CS1591 - POLICY_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "POLICY_DELETED")] - #pragma warning disable CS1591 - POLICY_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_CREATED")] - #pragma warning disable CS1591 - NODE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_UPDATED")] - #pragma warning disable CS1591 - NODE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_DELETED")] - #pragma warning disable CS1591 - NODE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_RE_ENROLLED")] - #pragma warning disable CS1591 - NODE_RE_ENROLLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ACCESS_GRANTED")] - #pragma warning disable CS1591 - NODE_ACCESS_GRANTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ACCESS_DENIED")] - #pragma warning disable CS1591 - NODE_ACCESS_DENIED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_REGISTRATION_REJECTED")] - #pragma warning disable CS1591 - NODE_REGISTRATION_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_IDENTIFICATION_UPDATED")] - #pragma warning disable CS1591 - NODE_IDENTIFICATION_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_CLONING_DETECTED")] - #pragma warning disable CS1591 - NODE_CLONING_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_CLONE_ADVISED_TO_REGISTER")] - #pragma warning disable CS1591 - NODE_CLONE_ADVISED_TO_REGISTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MANUALLY_APPROVED")] - #pragma warning disable CS1591 - NODE_MANUALLY_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_AUTOMATICALLY_APPROVED")] - #pragma warning disable CS1591 - NODE_AUTOMATICALLY_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MANUALLY_REJECTED")] - #pragma warning disable CS1591 - NODE_MANUALLY_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_AUTOMATICALLY_REJECTED")] - #pragma warning disable CS1591 - NODE_AUTOMATICALLY_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECTED_NODE_CLEARED")] - #pragma warning disable CS1591 - REJECTED_NODE_CLEARED, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECTED_NODE_DELETED")] - #pragma warning disable CS1591 - REJECTED_NODE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "MOBILE_DEVICE_UNREGISTERED")] - #pragma warning disable CS1591 - MOBILE_DEVICE_UNREGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_CREATED")] - #pragma warning disable CS1591 - APP_USER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_UPDATED")] - #pragma warning disable CS1591 - APP_USER_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_DELETED")] - #pragma warning disable CS1591 - APP_USER_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_LOGGED_IN")] - #pragma warning disable CS1591 - APP_USER_LOGGED_IN, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_LOGGED_OUT")] - #pragma warning disable CS1591 - APP_USER_LOGGED_OUT, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_MFA_SETUP")] - #pragma warning disable CS1591 - APP_USER_MFA_SETUP, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_MFA_DELETED")] - #pragma warning disable CS1591 - APP_USER_MFA_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_CRITICAL_ACTION")] - #pragma warning disable CS1591 - APP_USER_CRITICAL_ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_AUDIT_FAILED_LOGIN")] - #pragma warning disable CS1591 - APP_USER_AUDIT_FAILED_LOGIN, - #pragma warning restore CS1591 - [EnumMember(Value = "APP_USER_AUTO_ASSIGN_CHANGED")] - #pragma warning disable CS1591 - APP_USER_AUTO_ASSIGN_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_CREATED")] - #pragma warning disable CS1591 - END_USER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_CREATED_API")] - #pragma warning disable CS1591 - END_USER_CREATED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_UPDATED")] - #pragma warning disable CS1591 - END_USER_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_UPDATED_API")] - #pragma warning disable CS1591 - END_USER_UPDATED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_DELETED")] - #pragma warning disable CS1591 - END_USER_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_DELETED_API")] - #pragma warning disable CS1591 - END_USER_DELETED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_LOGGED_IN")] - #pragma warning disable CS1591 - END_USER_LOGGED_IN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_LOGGED_OUT")] - #pragma warning disable CS1591 - END_USER_LOGGED_OUT, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_MFA_SETUP")] - #pragma warning disable CS1591 - END_USER_MFA_SETUP, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_MFA_DELETED")] - #pragma warning disable CS1591 - END_USER_MFA_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_AUDIT_FAILED_LOGIN")] - #pragma warning disable CS1591 - END_USER_AUDIT_FAILED_LOGIN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_CRITICAL_ACTION")] - #pragma warning disable CS1591 - END_USER_CRITICAL_ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_CREATED")] - #pragma warning disable CS1591 - CONTACT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_CREATED_API")] - #pragma warning disable CS1591 - CONTACT_CREATED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_UPDATED")] - #pragma warning disable CS1591 - CONTACT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_UPDATED_API")] - #pragma warning disable CS1591 - CONTACT_UPDATED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_DELETED")] - #pragma warning disable CS1591 - CONTACT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT_DELETED_API")] - #pragma warning disable CS1591 - CONTACT_DELETED_API, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_GROUP_CREATED")] - #pragma warning disable CS1591 - DEVICE_GROUP_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_GROUP_UPDATED")] - #pragma warning disable CS1591 - DEVICE_GROUP_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_GROUP_DELETED")] - #pragma warning disable CS1591 - DEVICE_GROUP_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "TICKET_TEMPLATE_CREATED")] - #pragma warning disable CS1591 - TICKET_TEMPLATE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TICKET_TEMPLATE_UPDATED")] - #pragma warning disable CS1591 - TICKET_TEMPLATE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TICKET_TEMPLATE_DELETED")] - #pragma warning disable CS1591 - TICKET_TEMPLATE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CUSTOM_HEALTH_STATUS_CHANGED")] - #pragma warning disable CS1591 - CUSTOM_HEALTH_STATUS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "CUSTOM_HEALTH_STATUS_RESET")] - #pragma warning disable CS1591 - CUSTOM_HEALTH_STATUS_RESET, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_CREATION_FAILED")] - #pragma warning disable CS1591 - PSA_TICKET_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_CREATION_SUCCEEDED")] - #pragma warning disable CS1591 - PSA_TICKET_CREATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "RESET_BY_PSA_TICKET_CALLBACK")] - #pragma warning disable CS1591 - RESET_BY_PSA_TICKET_CALLBACK, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_CREATION_TEST")] - #pragma warning disable CS1591 - PSA_TICKET_CREATION_TEST, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_ENABLED")] - #pragma warning disable CS1591 - PSA_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_DISABLED")] - #pragma warning disable CS1591 - PSA_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_CREDENTIALS_FAILED")] - #pragma warning disable CS1591 - PSA_CREDENTIALS_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_AGREEMENTS_SYNC_COMPLETED")] - #pragma warning disable CS1591 - CONNECTWISE_AGREEMENTS_SYNC_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_AGREEMENTS_SYNC_STARTED")] - #pragma warning disable CS1591 - CONNECTWISE_AGREEMENTS_SYNC_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_COMPLETED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_STARTED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_NODE_CREATED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_NODE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_NODE_UPDATED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_NODE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_NODE_SYNC_NODE_DELETED")] - #pragma warning disable CS1591 - CONNECTWISE_NODE_SYNC_NODE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISE_UPDATED")] - #pragma warning disable CS1591 - CONNECTWISE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONNECTWISECONTROL_ATTEMPT")] - #pragma warning disable CS1591 - CONNECTWISECONTROL_ATTEMPT, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_STARTED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_COMPLETED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_NODE_CREATED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_NODE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_NODE_UPDATED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_NODE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_NODE_SYNC_NODE_DELETED")] - #pragma warning disable CS1591 - AUTOTASK_NODE_SYNC_NODE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_UPDATED")] - #pragma warning disable CS1591 - AUTOTASK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTOTASK_ATTACHMENT_FAILURE")] - #pragma warning disable CS1591 - AUTOTASK_ATTACHMENT_FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_UPDATED_FAILED")] - #pragma warning disable CS1591 - PSA_TICKET_UPDATED_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA_TICKET_UPDATED_SUCCEEDED")] - #pragma warning disable CS1591 - PSA_TICKET_UPDATED_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_CREATED")] - #pragma warning disable CS1591 - REPORT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_UPDATED")] - #pragma warning disable CS1591 - REPORT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_DELETED")] - #pragma warning disable CS1591 - REPORT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "TIME_ZONE_UPDATED")] - #pragma warning disable CS1591 - TIME_ZONE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "LANGUAGE_TAG_UPDATED")] - #pragma warning disable CS1591 - LANGUAGE_TAG_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ROLE_CREATED")] - #pragma warning disable CS1591 - NODE_ROLE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ROLE_UPDATED")] - #pragma warning disable CS1591 - NODE_ROLE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ROLE_DELETED")] - #pragma warning disable CS1591 - NODE_ROLE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "COMMENT")] - #pragma warning disable CS1591 - COMMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_INSTALLED")] - #pragma warning disable CS1591 - VIPREAV_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_INSTALL_FAILED")] - #pragma warning disable CS1591 - VIPREAV_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_UNINSTALLED")] - #pragma warning disable CS1591 - VIPREAV_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - VIPREAV_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_ACTIVEPROTECTION_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - VIPREAV_ACTIVEPROTECTION_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_USERINITIATED_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - VIPREAV_USERINITIATED_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_QUARANTINED_THREAT_REMOVED")] - #pragma warning disable CS1591 - VIPREAV_QUARANTINED_THREAT_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_REBOOT_REQUIRED")] - #pragma warning disable CS1591 - VIPREAV_REBOOT_REQUIRED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_STARTED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_COMPLETED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_ABORTED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_ABORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_FAILED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_SCAN_PAUSED")] - #pragma warning disable CS1591 - VIPREAV_SCAN_PAUSED, - #pragma warning restore CS1591 - [EnumMember(Value = "VIPREAV_DISABLED")] - #pragma warning disable CS1591 - VIPREAV_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "WEBROOT_COMMAND_SUBMITTED")] - #pragma warning disable CS1591 - WEBROOT_COMMAND_SUBMITTED, - #pragma warning restore CS1591 - [EnumMember(Value = "WEBROOT_THREAT_DETECTED")] - #pragma warning disable CS1591 - WEBROOT_THREAT_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "WEBROOT_INSTALL_FAILED")] - #pragma warning disable CS1591 - WEBROOT_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_SCAN_STARTED")] - #pragma warning disable CS1591 - BITDEFENDER_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_SCAN_COMPLETED")] - #pragma warning disable CS1591 - BITDEFENDER_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_THREAT_DELETE_FROM_QUARANTINE")] - #pragma warning disable CS1591 - BITDEFENDER_THREAT_DELETE_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_THREAT_RESTORE_FROM_QUARANTINE")] - #pragma warning disable CS1591 - BITDEFENDER_THREAT_RESTORE_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_SCAN_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_SCAN_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_THREAT_DELETE_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_THREAT_DELETE_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_THREAT_RESTORE_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_THREAT_RESTORE_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DOWNLOAD_STARTED")] - #pragma warning disable CS1591 - BITDEFENDER_DOWNLOAD_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DOWNLOAD_SUCCEEDED")] - #pragma warning disable CS1591 - BITDEFENDER_DOWNLOAD_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DOWNLOAD_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_DOWNLOAD_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_INSTALLATION_STARTED")] - #pragma warning disable CS1591 - BITDEFENDER_INSTALLATION_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_INSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - BITDEFENDER_INSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_INSTALLATION_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_INSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_UNINSTALLATION_STARTED")] - #pragma warning disable CS1591 - BITDEFENDER_UNINSTALLATION_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_UNINSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - BITDEFENDER_UNINSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_UNINSTALLATION_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_UNINSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_UNPACKING_FAILED")] - #pragma warning disable CS1591 - BITDEFENDER_UNPACKING_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_IGNORED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_IGNORED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_PRESENT")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_PRESENT, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_DELETED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_BLOCKED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_BLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_CLEANED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_CLEANED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_PURGE_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_PURGE_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_PURGE_QUARANTINE_SUCCESS")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_PURGE_QUARANTINE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_QUARANTINE_RESTORED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_QUARANTINE_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_QUARANTINE_RESTORED_CUSTOMPATH")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_QUARANTINE_RESTORED_CUSTOMPATH, - #pragma warning restore CS1591 - [EnumMember(Value = "BDAS_BITDEFENDER_THREAT_QUARANTINE_DELETED")] - #pragma warning disable CS1591 - BDAS_BITDEFENDER_THREAT_QUARANTINE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_RETRY_INSTALL_COMPLETED")] - #pragma warning disable CS1591 - BITDEFENDER_RETRY_INSTALL_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DISABLED")] - #pragma warning disable CS1591 - BITDEFENDER_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_EXISTING_PRODUCT_UNINSTALL")] - #pragma warning disable CS1591 - BITDEFENDER_EXISTING_PRODUCT_UNINSTALL, - #pragma warning restore CS1591 - [EnumMember(Value = "COMPETITOR_EXISTING_PRODUCT_UNINSTALL")] - #pragma warning disable CS1591 - COMPETITOR_EXISTING_PRODUCT_UNINSTALL, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULE_INSTALL_OPTION_CHANGED")] - #pragma warning disable CS1591 - SCHEDULE_INSTALL_OPTION_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURITY_CREDENTIAL_ACCESS_GRANTED")] - #pragma warning disable CS1591 - SECURITY_CREDENTIAL_ACCESS_GRANTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURITY_CREDENTIAL_ACCESS_DENIED")] - #pragma warning disable CS1591 - SECURITY_CREDENTIAL_ACCESS_DENIED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_SCAN_STARTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_SCAN_COMPLETED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_APPLY_PATCH_STARTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_APPLY_PATCH_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_APPLY_PATCH_COMPLETED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_APPLY_PATCH_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_INSTALLED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_INSTALL_FAILED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_MESSAGE")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_MESSAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_FAILURE")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_ROLLBACK_PATCH_REQUESTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_ROLLBACK_PATCH_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_ROLLBACK_PATCH_STARTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_ROLLBACK_PATCH_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_ROLLBACK_PATCH_COMPLETED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_ROLLBACK_PATCH_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_PATCH_APPROVED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_PATCH_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT_PATCH_REJECTED")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT_PATCH_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_SCAN_STARTED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_SCAN_COMPLETED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_APPLY_PATCH_STARTED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_APPLY_PATCH_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_APPLY_PATCH_COMPLETED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_APPLY_PATCH_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_INSTALLED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_INSTALL_FAILED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_MESSAGE")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_MESSAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_PATCH_APPROVED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_PATCH_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT_PATCH_REJECTED")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT_PATCH_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_INSTALLED")] - #pragma warning disable CS1591 - TEAMVIEWER_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_INSTALL_FAILED")] - #pragma warning disable CS1591 - TEAMVIEWER_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_UNINSTALLED")] - #pragma warning disable CS1591 - TEAMVIEWER_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - TEAMVIEWER_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONNECTION_ESTABLISHED")] - #pragma warning disable CS1591 - TEAMVIEWER_CONNECTION_ESTABLISHED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONNECTION_TERMINATED")] - #pragma warning disable CS1591 - TEAMVIEWER_CONNECTION_TERMINATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_PERMANENT_PASSWORD_CHANGED")] - #pragma warning disable CS1591 - TEAMVIEWER_PERMANENT_PASSWORD_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_ACCOUNTNAME_ADDED")] - #pragma warning disable CS1591 - TEAMVIEWER_ACCOUNTNAME_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_ACCOUNTNAME_CHANGED")] - #pragma warning disable CS1591 - TEAMVIEWER_ACCOUNTNAME_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_ACCOUNTNAME_REMOVED")] - #pragma warning disable CS1591 - TEAMVIEWER_ACCOUNTNAME_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONNECTION_CANCELLED")] - #pragma warning disable CS1591 - TEAMVIEWER_CONNECTION_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONFIG_CHANGED")] - #pragma warning disable CS1591 - TEAMVIEWER_CONFIG_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP_CONNECTION_INITIATED")] - #pragma warning disable CS1591 - SPLASHTOP_CONNECTION_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP_CONNECTION_ESTABLISHED")] - #pragma warning disable CS1591 - SPLASHTOP_CONNECTION_ESTABLISHED, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP_CONNECTION_TERMINATED")] - #pragma warning disable CS1591 - SPLASHTOP_CONNECTION_TERMINATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_UPLOAD_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_UPLOAD_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DOWNLOAD_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DOWNLOAD_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COMPRESS_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COMPRESS_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COMPRESS_FILE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COMPRESS_FILE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COMPRESS_FILE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COMPRESS_FILE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_DIRECTORY_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_DIRECTORY_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_FILE_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_FILE_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MODIFY_OBJECT_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MODIFY_OBJECT_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MODIFY_OBJECT_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MODIFY_OBJECT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COPY_OBJECT_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COPY_OBJECT_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_COPY_OBJECT_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_COPY_OBJECT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MOVE_OBJECT_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MOVE_OBJECT_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MOVE_OBJECT_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MOVE_OBJECT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_OBJECT_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_OBJECT_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_OBJECT_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_OBJECT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_DIRECTORY_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_DIRECTORY_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_DIRECTORY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_DIRECTORY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_FILE_TRANSFER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_FILE_TRANSFER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_FILE_TRANSFER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_FILE_TRANSFER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_SERVICE_CONTROL_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_SERVICE_CONTROL_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_START_SERVICE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_START_SERVICE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_START_SERVICE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_START_SERVICE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_STOP_SERVICE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_STOP_SERVICE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_STOP_SERVICE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_STOP_SERVICE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RESTART_SERVICE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RESTART_SERVICE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RESTART_SERVICE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RESTART_SERVICE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_START_TYPE_CHANGE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_START_TYPE_CHANGE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_START_TYPE_CHANGE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_START_TYPE_CHANGE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_PROCESS_CONTROL_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_PROCESS_CONTROL_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_SET_PROCESS_PRIORITY_SUCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_SET_PROCESS_PRIORITY_SUCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_SET_PROCESS_PRIORITY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_SET_PROCESS_PRIORITY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_TERMINATE_PROCESS_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_TERMINATE_PROCESS_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_TERMINATE_PROCESS_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_TERMINATE_PROCESS_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_TERMINATE_PROCESS_TREE_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_TERMINATE_PROCESS_TREE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_TERMINATE_PROCESS_TREE_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_TERMINATE_PROCESS_TREE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_REGISTRY_CONTROL_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_REGISTRY_CONTROL_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_KEY_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_KEY_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_KEY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_KEY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_KEY_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_KEY_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_KEY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_KEY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_KEY_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_KEY_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_KEY_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_KEY_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_PARAMETER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_PARAMETER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_CREATE_PARAMETER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_CREATE_PARAMETER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_PARAMETER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_PARAMETER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_RENAME_PARAMETER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_RENAME_PARAMETER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_PARAMETER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_PARAMETER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_DELETE_PARAMETER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_DELETE_PARAMETER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MODIFY_PARAMETER_SUCCESS")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MODIFY_PARAMETER_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_MODIFY_PARAMETER_FAILED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_MODIFY_PARAMETER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS_ACTIVE_DIRECTORY_INITIATED")] - #pragma warning disable CS1591 - REMOTE_TOOLS_ACTIVE_DIRECTORY_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "ADAPTER_ADDED")] - #pragma warning disable CS1591 - ADAPTER_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "ADAPTER_REMOVED")] - #pragma warning disable CS1591 - ADAPTER_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "ADAPTER_CONFIG_CHANGED")] - #pragma warning disable CS1591 - ADAPTER_CONFIG_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "ADAPTER_STATUS_CHANGED")] - #pragma warning disable CS1591 - ADAPTER_STATUS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "CPU_ADDED")] - #pragma warning disable CS1591 - CPU_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CPU_REMOVED")] - #pragma warning disable CS1591 - CPU_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "MEMORY_ADDED")] - #pragma warning disable CS1591 - MEMORY_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "MEMORY_REMOVED")] - #pragma warning disable CS1591 - MEMORY_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_DRIVE_ADDED")] - #pragma warning disable CS1591 - DISK_DRIVE_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_DRIVE_REMOVED")] - #pragma warning disable CS1591 - DISK_DRIVE_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "USER_LOGGED_IN")] - #pragma warning disable CS1591 - USER_LOGGED_IN, - #pragma warning restore CS1591 - [EnumMember(Value = "USER_LOGGED_OUT")] - #pragma warning disable CS1591 - USER_LOGGED_OUT, - #pragma warning restore CS1591 - [EnumMember(Value = "PORT_OPENED")] - #pragma warning disable CS1591 - PORT_OPENED, - #pragma warning restore CS1591 - [EnumMember(Value = "PORT_CLOSED")] - #pragma warning disable CS1591 - PORT_CLOSED, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_SERVICE_STARTED")] - #pragma warning disable CS1591 - WINDOWS_SERVICE_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_SERVICE_STOPPED")] - #pragma warning disable CS1591 - WINDOWS_SERVICE_STOPPED, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_DAEMON_STARTED")] - #pragma warning disable CS1591 - MAC_DAEMON_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_DAEMON_STOPPED")] - #pragma warning disable CS1591 - MAC_DAEMON_STOPPED, - #pragma warning restore CS1591 - [EnumMember(Value = "USER_ACCOUNT_ADDED")] - #pragma warning disable CS1591 - USER_ACCOUNT_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "USER_ACCOUNT_REMOVED")] - #pragma warning disable CS1591 - USER_ACCOUNT_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "PROCESS_STARTED")] - #pragma warning disable CS1591 - PROCESS_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PROCESS_STOPPED")] - #pragma warning disable CS1591 - PROCESS_STOPPED, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM_REBOOTED")] - #pragma warning disable CS1591 - SYSTEM_REBOOTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_ADDED")] - #pragma warning disable CS1591 - SOFTWARE_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_REMOVED")] - #pragma warning disable CS1591 - SOFTWARE_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_UPDATED")] - #pragma warning disable CS1591 - SOFTWARE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_OS_UPDATED")] - #pragma warning disable CS1591 - SOFTWARE_OS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_PARTITION_ADDED")] - #pragma warning disable CS1591 - DISK_PARTITION_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_PARTITION_REMOVED")] - #pragma warning disable CS1591 - DISK_PARTITION_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_VOLUME_ADDED")] - #pragma warning disable CS1591 - DISK_VOLUME_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISK_VOLUME_REMOVED")] - #pragma warning disable CS1591 - DISK_VOLUME_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIALS_CHANGED")] - #pragma warning disable CS1591 - CREDENTIALS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_CONTROLLER_ADDED")] - #pragma warning disable CS1591 - RAID_CONTROLLER_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_CONTROLLER_REMOVED")] - #pragma warning disable CS1591 - RAID_CONTROLLER_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_PHYSICAL_DRIVE_ADDED")] - #pragma warning disable CS1591 - RAID_PHYSICAL_DRIVE_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_PHYSICAL_DRIVE_REMOVED")] - #pragma warning disable CS1591 - RAID_PHYSICAL_DRIVE_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_LOGICAL_DISK_ADDED")] - #pragma warning disable CS1591 - RAID_LOGICAL_DISK_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "RAID_LOGICAL_DISK_REMOVED")] - #pragma warning disable CS1591 - RAID_LOGICAL_DISK_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITLOCKER_ENABLED")] - #pragma warning disable CS1591 - BITLOCKER_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "BITLOCKER_DISABLED")] - #pragma warning disable CS1591 - BITLOCKER_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "FILEVAULT_ENABLED")] - #pragma warning disable CS1591 - FILEVAULT_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "FILEVAULT_DISABLED")] - #pragma warning disable CS1591 - FILEVAULT_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRUSTED_PLATFORM_MODULE_ENABLED")] - #pragma warning disable CS1591 - TRUSTED_PLATFORM_MODULE_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRUSTED_PLATFORM_MODULE_DISABLED")] - #pragma warning disable CS1591 - TRUSTED_PLATFORM_MODULE_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRUSTED_PLATFORM_MODULE_INSTALLED")] - #pragma warning disable CS1591 - TRUSTED_PLATFORM_MODULE_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "TRUSTED_PLATFORM_MODULE_UNINSTALLED")] - #pragma warning disable CS1591 - TRUSTED_PLATFORM_MODULE_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_INSTALLED")] - #pragma warning disable CS1591 - SHADOWPROTECT_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_INSTALL_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_UNINSTALLED")] - #pragma warning disable CS1591 - SHADOWPROTECT_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_ABORTED")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_ABORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_PROVISIONED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_PROVISIONED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_PROVISION_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_PROVISION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_ACTIVATED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_ACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_ACTIVATION_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_ACTIVATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_DEACTIVATED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_DEACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_LICENSE_DEACTIVATION_FAILED")] - #pragma warning disable CS1591 - SHADOWPROTECT_LICENSE_DEACTIVATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_INSTALLED")] - #pragma warning disable CS1591 - IMAGEMANAGER_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_INSTALL_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_UNINSTALLED")] - #pragma warning disable CS1591 - IMAGEMANAGER_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_PROVISIONED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_PROVISIONED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_PROVISION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_PROVISION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_ACTIVATED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_ACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_ACTIVATION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_ACTIVATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_DEACTIVATED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_DEACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_LICENSE_DEACTIVATION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_LICENSE_DEACTIVATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_CONSOLIDATION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_CONSOLIDATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_VERIFICATION_FAILED")] - #pragma warning disable CS1591 - IMAGEMANAGER_VERIFICATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "HELP_REQUEST_SUBMITTED")] - #pragma warning disable CS1591 - HELP_REQUEST_SUBMITTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_INSTALLED")] - #pragma warning disable CS1591 - CLOUDBERRY_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_INSTALL_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_UNINSTALLED")] - #pragma warning disable CS1591 - CLOUDBERRY_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPPLAN_CREATED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPPLAN_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPPLAN_EDITED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPPLAN_EDITED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPPLAN_DELETED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPPLAN_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPPLAN_CREATION_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPPLAN_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPJOB_STARTED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPJOB_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPJOB_SUCCEEDED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPJOB_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPJOB_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUPJOB_COMPLETED_WITH_WARNING")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUPJOB_COMPLETED_WITH_WARNING, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_USER_CREATED")] - #pragma warning disable CS1591 - CLOUDBERRY_USER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_NETWORK_CREDENTIAL_CREATED")] - #pragma warning disable CS1591 - CLOUDBERRY_NETWORK_CREDENTIAL_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_NETWORK_CREDENTIAL_CREATION_FAILED")] - #pragma warning disable CS1591 - CLOUDBERRY_NETWORK_CREDENTIAL_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP_CONNECTION_INITIATED")] - #pragma warning disable CS1591 - RDP_CONNECTION_INITIATED, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP_CONNECTION_ESTABLISHED")] - #pragma warning disable CS1591 - RDP_CONNECTION_ESTABLISHED, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP_CONNECTION_TERMINATED")] - #pragma warning disable CS1591 - RDP_CONNECTION_TERMINATED, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP_AUTO_PROVISION")] - #pragma warning disable CS1591 - RDP_AUTO_PROVISION, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK_CREATED")] - #pragma warning disable CS1591 - SCHEDULED_TASK_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK_UPDATED")] - #pragma warning disable CS1591 - SCHEDULED_TASK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK_DELETED")] - #pragma warning disable CS1591 - SCHEDULED_TASK_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT_CREATED")] - #pragma warning disable CS1591 - SCRIPT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT_UPDATED")] - #pragma warning disable CS1591 - SCRIPT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT_DELETED")] - #pragma warning disable CS1591 - SCRIPT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_START_REQUESTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_IN_PROCESS")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_START_REQUESTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_IN_PROCESS")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_COMPLETED_WITH_WARNING")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_COMPLETED_WITH_WARNING, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUP_DOWNLOADED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUP_DOWNLOADED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPPLAN_ADDED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPPLAN_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPPLAN_EDITED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPPLAN_EDITED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPPLAN_DELETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPPLAN_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_CANCELLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPJOB_PROCESSING")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPJOB_PROCESSING, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INSTALL_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UNINSTALL_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INSTALLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UNINSTALLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UNINSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_RESTOREJOB_CANCELLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_RESTOREJOB_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUPPLAN_CREATION_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUPPLAN_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUP_CONFIGURE_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUP_CONFIGURE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_FILE_DOWNLOAD")] - #pragma warning disable CS1591 - NINJA_BACKUP_FILE_DOWNLOAD, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_FOLDER_DOWNLOAD")] - #pragma warning disable CS1591 - NINJA_BACKUP_FOLDER_DOWNLOAD, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_START_REQUESTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_PROCESSING")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_PROCESSING, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_IN_PROCESS")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_CANCELLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_UPSYNCJOB_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_UPSYNCJOB_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_BACKUP_NAS_ACCESS_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_BACKUP_NAS_ACCESS_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_RESTORE_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_RESTORE_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_RESTORE_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_RESTORE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_RESTORE_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_RESTORE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FILE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_MOUNT_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_MOUNT_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_MOUNT_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_MOUNT_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_START_REQUESTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_IN_PROCESS")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_INTEGRITY_CHECK_CANCELLED")] - #pragma warning disable CS1591 - NINJA_BACKUP_INTEGRITY_CHECK_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_STARTED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_COMPLETED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_FAILED")] - #pragma warning disable CS1591 - NINJA_BACKUP_IMAGE_DOWNLOAD_FOLDER_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "BACKUP_IMAGE_RESTORE_CANCELED")] - #pragma warning disable CS1591 - BACKUP_IMAGE_RESTORE_CANCELED, - #pragma warning restore CS1591 - [EnumMember(Value = "BACKUP_IMAGE_DOWNLOAD_CANCELED")] - #pragma warning disable CS1591 - BACKUP_IMAGE_DOWNLOAD_CANCELED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_INVITATION_CREATED")] - #pragma warning disable CS1591 - QC_INVITATION_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_INVITATION_DISABLED")] - #pragma warning disable CS1591 - QC_INVITATION_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_EXPIRED_INVITATION_BLOCKED")] - #pragma warning disable CS1591 - QC_EXPIRED_INVITATION_BLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_INVITATION_UPDATED")] - #pragma warning disable CS1591 - QC_INVITATION_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_DEVICE_DELETED")] - #pragma warning disable CS1591 - QC_DEVICE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_DEVICE_AGENT_INSTALL_REQUESTED")] - #pragma warning disable CS1591 - QC_DEVICE_AGENT_INSTALL_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_SESSION_STARTED")] - #pragma warning disable CS1591 - QC_SESSION_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_SESSION_TERMINATED")] - #pragma warning disable CS1591 - QC_SESSION_TERMINATED, - #pragma warning restore CS1591 - [EnumMember(Value = "QC_SESSION_REPORT_SUBMITTED")] - #pragma warning disable CS1591 - QC_SESSION_REPORT_SUBMITTED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_SUPPORT_CREATED")] - #pragma warning disable CS1591 - REMOTE_SUPPORT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_SUPPORT_UPDATED")] - #pragma warning disable CS1591 - REMOTE_SUPPORT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_SUPPORT_DELETED")] - #pragma warning disable CS1591 - REMOTE_SUPPORT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_LOCK_DEVICE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_LOCK_DEVICE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_REBOOT_DEVICE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_REBOOT_DEVICE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RESET_PASSCODE_DEVICE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_RESET_PASSCODE_DEVICE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RELINQUISH_OWNERSHIP_DEVICE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_RELINQUISH_OWNERSHIP_DEVICE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_LOCK_DEVICE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_LOCK_DEVICE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_REBOOT_DEVICE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_REBOOT_DEVICE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RESET_PASSCODE_DEVICE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_RESET_PASSCODE_DEVICE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RELINQUISH_OWNERSHIP_DEVICE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_RELINQUISH_OWNERSHIP_DEVICE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_CLEAR_PASSCODE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_CLEAR_PASSCODE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_CLEAR_PASSCODE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_CLEAR_PASSCODE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ERASE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_ERASE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ERASE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_ERASE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_UPDATE_POLICY_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_UPDATE_POLICY_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_UPDATE_POLICY_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_UPDATE_POLICY_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ASSIGN_POLICY_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_ASSIGN_POLICY_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ASSIGN_POLICY_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_ASSIGN_POLICY_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DIVISION_CONFIG_ENABLED")] - #pragma warning disable CS1591 - MDM_DIVISION_CONFIG_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DIVISION_CONFIG_DISABLED")] - #pragma warning disable CS1591 - MDM_DIVISION_CONFIG_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DIVISION_CONFIG_UPDATED")] - #pragma warning disable CS1591 - MDM_DIVISION_CONFIG_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_APN_CERTIFICATE_UPLOADED")] - #pragma warning disable CS1591 - MDM_APN_CERTIFICATE_UPLOADED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ACTION_DEVICE_STATUS_FAILED")] - #pragma warning disable CS1591 - MDM_ACTION_DEVICE_STATUS_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DISOWN_STATUS_FORBIDDEN")] - #pragma warning disable CS1591 - MDM_DISOWN_STATUS_FORBIDDEN, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_DISOWN_STATUS_COMPLETED")] - #pragma warning disable CS1591 - MDM_DISOWN_STATUS_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ADE_TOKEN_UPLOADED")] - #pragma warning disable CS1591 - MDM_ADE_TOKEN_UPLOADED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_ADE_TOKEN_RENEWED")] - #pragma warning disable CS1591 - MDM_ADE_TOKEN_RENEWED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RENEW_ENROLLMENT_PROFILE_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_RENEW_ENROLLMENT_PROFILE_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_RENEW_ENROLLMENT_PROFILE_STATUS_UPDATED")] - #pragma warning disable CS1591 - MDM_RENEW_ENROLLMENT_PROFILE_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_INSTALL_APP_STATUS_CREATED")] - #pragma warning disable CS1591 - MDM_INSTALL_APP_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_APN_CERTIFICATE_RENEWED")] - #pragma warning disable CS1591 - MDM_APN_CERTIFICATE_RENEWED, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM_CONNECTION_ANDROID_ENTERPRISE_RENAME_SUCCESS")] - #pragma warning disable CS1591 - MDM_CONNECTION_ANDROID_ENTERPRISE_RENAME_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_TEMPLATE_CREATED")] - #pragma warning disable CS1591 - REPORT_TEMPLATE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_TEMPLATE_UPDATED")] - #pragma warning disable CS1591 - REPORT_TEMPLATE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_TEMPLATE_DELETED")] - #pragma warning disable CS1591 - REPORT_TEMPLATE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_SCHEDULE_CREATED")] - #pragma warning disable CS1591 - REPORT_SCHEDULE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_SCHEDULE_UPDATED")] - #pragma warning disable CS1591 - REPORT_SCHEDULE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_SCHEDULE_DELETED")] - #pragma warning disable CS1591 - REPORT_SCHEDULE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_TEMPLATE_DUPLICATED")] - #pragma warning disable CS1591 - REPORT_TEMPLATE_DUPLICATED, - #pragma warning restore CS1591 - [EnumMember(Value = "REPORT_SCHEDULE_DUPLICATED")] - #pragma warning disable CS1591 - REPORT_SCHEDULE_DUPLICATED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_ENABLED")] - #pragma warning disable CS1591 - GRAVITYZONE_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DISABLED")] - #pragma warning disable CS1591 - GRAVITYZONE_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_STARTED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_IGNORED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_IGNORED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_PRESENT")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_PRESENT, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_BLOCKED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_BLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_QUARANTINED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_QUARANTINED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_CLEANED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_CLEANED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PURGE_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_PURGE_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PURGE_QUARANTINE_SUCCESS")] - #pragma warning disable CS1591 - GRAVITYZONE_PURGE_QUARANTINE_SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PROVISION_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_PROVISION_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PROVISION_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_PROVISION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_RETRY_INSTALL_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_RETRY_INSTALL_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_PARTNER_ASSIST_DISABLED")] - #pragma warning disable CS1591 - GRAVITYZONE_PARTNER_ASSIST_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_ATTEMPT_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_ATTEMPT_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_RESET_INACCESSIBLE_LICENSE_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_RESET_INACCESSIBLE_LICENSE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_REQUESTED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_DELETE_FROM_QUARANTINE_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_REQUESTED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_FROM_QUARANTINE_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE_REQUESTED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_RESTORE_AND_EXCLUDED_FROM_QUARANTINE_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_STARTED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DOWNLOAD_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_DOWNLOAD_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_RETRY_STARTED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_RETRY_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SCAN_CANCELLED")] - #pragma warning disable CS1591 - GRAVITYZONE_SCAN_CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DISABLING_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_DISABLING_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_INSTALLATION_EXISTS_DETECTED")] - #pragma warning disable CS1591 - GRAVITYZONE_INSTALLATION_EXISTS_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_REQUESTED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_COMPLETED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_FAILED")] - #pragma warning disable CS1591 - GRAVITYZONE_THREAT_BLOCKED_FROM_ACTIVE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DEVICE_MANAGED")] - #pragma warning disable CS1591 - GRAVITYZONE_DEVICE_MANAGED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_DEVICE_UNMANAGED")] - #pragma warning disable CS1591 - GRAVITYZONE_DEVICE_UNMANAGED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_COMPANY_CANNOT_BE_ACCESSED")] - #pragma warning disable CS1591 - GRAVITYZONE_COMPANY_CANNOT_BE_ACCESSED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_QUARANTINED_THREAT_DELETED_OR_RESTORED")] - #pragma warning disable CS1591 - GRAVITYZONE_QUARANTINED_THREAT_DELETED_OR_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_SUCCEEDED_TO_REQUEST_RECONFIGURE_TASK")] - #pragma warning disable CS1591 - GRAVITYZONE_SUCCEEDED_TO_REQUEST_RECONFIGURE_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_FAILED_TO_REQUEST_RECONFIGURE_TASK")] - #pragma warning disable CS1591 - GRAVITYZONE_FAILED_TO_REQUEST_RECONFIGURE_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT_FILE_SUSPICIOUS")] - #pragma warning disable CS1591 - ATTACHMENT_FILE_SUSPICIOUS, - #pragma warning restore CS1591 - [EnumMember(Value = "SMTP_SEND_ERROR")] - #pragma warning disable CS1591 - SMTP_SEND_ERROR, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_ROLE_CREATED")] - #pragma warning disable CS1591 - TECHNICIAN_ROLE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_ROLE_UPDATED")] - #pragma warning disable CS1591 - TECHNICIAN_ROLE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_ROLE_DELETED")] - #pragma warning disable CS1591 - TECHNICIAN_ROLE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_ROLE_ASSIGNMENT_CHANGED")] - #pragma warning disable CS1591 - TECHNICIAN_ROLE_ASSIGNMENT_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN_PERMISSIONS_CHANGED")] - #pragma warning disable CS1591 - TECHNICIAN_PERMISSIONS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLE_CREATED")] - #pragma warning disable CS1591 - END_USER_ROLE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLE_UPDATED")] - #pragma warning disable CS1591 - END_USER_ROLE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLE_DELETED")] - #pragma warning disable CS1591 - END_USER_ROLE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLE_ASSIGNMENT_CHANGED")] - #pragma warning disable CS1591 - END_USER_ROLE_ASSIGNMENT_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_PERMISSIONS_CHANGED")] - #pragma warning disable CS1591 - END_USER_PERMISSIONS_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_ENABLED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_DISABLED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_STARTED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_UPGRADED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_UPGRADED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_SHUT_DOWN")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_SHUT_DOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_INSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_INSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_AGENT_INSTALLATION_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_AGENT_INSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_POLICY_CHANGED")] - #pragma warning disable CS1591 - SENTINEL_ONE_POLICY_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_LOCAL_CONFIG_CHANGE_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_LOCAL_CONFIG_CHANGE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_REGISTRATION_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_REGISTRATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_REGISTRATION_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_REGISTRATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_REMEDIATION_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_REMEDIATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_REMEDIATION_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_REMEDIATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_REQUIRE_REBOOT")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_REQUIRE_REBOOT, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_CANNOT_KILL")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_CANNOT_KILL, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_MITIGATION_FAILED_TO_KILL")] - #pragma warning disable CS1591 - SENTINEL_ONE_MITIGATION_FAILED_TO_KILL, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_QUARANTINE_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_QUARANTINE_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_UNQUARANTINE_SUCCEEDED")] - #pragma warning disable CS1591 - SENTINEL_ONE_UNQUARANTINE_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_UNQUARANTINE_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_UNQUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_THREAT_DETECTED")] - #pragma warning disable CS1591 - SENTINEL_ONE_THREAT_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_SCAN_STARTED")] - #pragma warning disable CS1591 - SENTINEL_ONE_SCAN_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_SCAN_COMPLETED")] - #pragma warning disable CS1591 - SENTINEL_ONE_SCAN_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_SCAN_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_SCAN_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_SCAN_ABORTED")] - #pragma warning disable CS1591 - SENTINEL_ONE_SCAN_ABORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_COMMAND_RECEIVED")] - #pragma warning disable CS1591 - SENTINEL_ONE_COMMAND_RECEIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "SENTINEL_ONE_COMMAND_FAILED")] - #pragma warning disable CS1591 - SENTINEL_ONE_COMMAND_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "OAUTH2_CREATED")] - #pragma warning disable CS1591 - OAUTH2_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "OAUTH2_UPDATED")] - #pragma warning disable CS1591 - OAUTH2_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "OAUTH2_DELETED")] - #pragma warning disable CS1591 - OAUTH2_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_ENABLED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_DISABLED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_STARTED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_UPGRADED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_UPGRADED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_SHUT_DOWN")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_SHUT_DOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_INSTALLATION_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_INSTALLATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_SENSOR_INSTALLATION_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_SENSOR_INSTALLATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_REGISTRATION_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_REGISTRATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_REGISTRATION_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_REGISTRATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_REMEDIATION_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_REMEDIATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_REMEDIATION_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_REMEDIATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_MITIGATION_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_MITIGATION_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_MITIGATION_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_MITIGATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_QUARANTINE_SUCCEEDED")] - #pragma warning disable CS1591 - CROWDSTRIKE_QUARANTINE_SUCCEEDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_QUARANTINE_FAILED")] - #pragma warning disable CS1591 - CROWDSTRIKE_QUARANTINE_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_THREAT_DETECTED")] - #pragma warning disable CS1591 - CROWDSTRIKE_THREAT_DETECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_MISSING_PERMISSIONS")] - #pragma warning disable CS1591 - CROWDSTRIKE_MISSING_PERMISSIONS, - #pragma warning restore CS1591 - [EnumMember(Value = "CROWDSTRIKE_CREDENTIAL_INVALID")] - #pragma warning disable CS1591 - CROWDSTRIKE_CREDENTIAL_INVALID, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_CREATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_DELETED")] - #pragma warning disable CS1591 - SERVICE_NOW_CONFIGURATION_ITEM_CLASS_MAPPING_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_RESET_AUTHENTICATION")] - #pragma warning disable CS1591 - SERVICE_NOW_RESET_AUTHENTICATION, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_NODE_CREATED")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_NODE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_NODE_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_NODE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_NODE_ERROR")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_NODE_ERROR, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_BY_CLIENT_STARTED")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_BY_CLIENT_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_NODE_SYNC_BY_CLIENT_COMPLETED")] - #pragma warning disable CS1591 - SERVICE_NOW_NODE_SYNC_BY_CLIENT_COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CLIENT_MAPPING_CREATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CLIENT_MAPPING_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CLIENT_MAPPING_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CLIENT_MAPPING_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CLIENT_MAPPING_DELETED")] - #pragma warning disable CS1591 - SERVICE_NOW_CLIENT_MAPPING_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_SYNC_CLIENT_ON_DEMAND")] - #pragma warning disable CS1591 - SERVICE_NOW_SYNC_CLIENT_ON_DEMAND, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_NOW_CLIENT_MAPPING_STATUS_UPDATED")] - #pragma warning disable CS1591 - SERVICE_NOW_CLIENT_MAPPING_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "ZENDESK_UPDATED")] - #pragma warning disable CS1591 - ZENDESK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "FRESHSERVICE_UPDATED")] - #pragma warning disable CS1591 - FRESHSERVICE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_CREATION_FAILED")] - #pragma warning disable CS1591 - NINJA_TICKETING_CREATION_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_ACTIVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_ACTIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_DEACTIVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_DEACTIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ATTRIBUTE_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ATTRIBUTE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ATTRIBUTE_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ATTRIBUTE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ATTRIBUTE_ACTIVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ATTRIBUTE_ACTIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ATTRIBUTE_DEACTIVATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ATTRIBUTE_DEACTIVATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_RULESET_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_RULESET_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_RULESET_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_RULESET_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_RULESET_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_RULESET_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_MAKE_DEFAULT")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ADDRESS_CONFIG_MAKE_DEFAULT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TRIGGER_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TRIGGER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TRIGGER_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TRIGGER_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TRIGGER_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TRIGGER_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TICKET_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TICKET_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TICKET_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TICKET_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_PENDING_EMAIL_CREATION_APPROVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_PENDING_EMAIL_CREATION_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_PENDING_EMAIL_UPDATE_APPROVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_PENDING_EMAIL_UPDATE_APPROVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_PENDING_EMAIL_REJECTED")] - #pragma warning disable CS1591 - NINJA_TICKETING_PENDING_EMAIL_REJECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_ENABLED")] - #pragma warning disable CS1591 - NINJA_TICKETING_ENABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_DISABLED")] - #pragma warning disable CS1591 - NINJA_TICKETING_DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_FORM_MAKE_DEFAULT")] - #pragma warning disable CS1591 - NINJA_TICKETING_FORM_MAKE_DEFAULT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_CONDITION_RULE_MAKE_DEFAULT")] - #pragma warning disable CS1591 - NINJA_TICKETING_CONDITION_RULE_MAKE_DEFAULT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_SCRIPT_RULE_MAKE_DEFAULT")] - #pragma warning disable CS1591 - NINJA_TICKETING_SCRIPT_RULE_MAKE_DEFAULT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_PENDING_EMAIL_RECEIVED")] - #pragma warning disable CS1591 - NINJA_TICKETING_PENDING_EMAIL_RECEIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_ALLOWLIST_ITEM_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_EMAIL_BLOCKLIST_ITEM_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_TICKET_REINSTATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_TICKET_REINSTATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_STATUS_CREATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_STATUS_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_STATUS_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_STATUS_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_STATUS_DELETED")] - #pragma warning disable CS1591 - NINJA_TICKETING_STATUS_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING_AGREEMENT_BULK_UPDATED")] - #pragma warning disable CS1591 - NINJA_TICKETING_AGREEMENT_BULK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_CREATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_UPDATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_ARCHIVED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_RESTORED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_DELETED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_CREATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_UPDATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_ARCHIVED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_RESTORED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_DELETED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_PUBLIC_TEMPORARY_TOKEN_CREATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_PUBLIC_TEMPORARY_TOKEN_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_PUBLIC_LINK_CREATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_PUBLIC_LINK_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_PUBLIC_LINK_UPDATED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_PUBLIC_LINK_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_PUBLIC_LINK_DELETED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_PUBLIC_LINK_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_MOVED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_MOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_DOCUMENT_MOVED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_DOCUMENT_MOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_SHARED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_SHARED, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE_FOLDER_ACCESS_RESTRICTED")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE_FOLDER_ACCESS_RESTRICTED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_CREATED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_UPDATED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_ARCHIVED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_RESTORED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT_TEMPLATE_DELETED")] - #pragma warning disable CS1591 - DOCUMENT_TEMPLATE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_CREATED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_UPDATED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_ARCHIVED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_RESTORED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_DELETED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_ATTRIBUTE_VALUE_DECRYPTED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_ATTRIBUTE_VALUE_DECRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_REVISION_DELETED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_REVISION_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENTATION_DELEGATE_NODE_RESPONSIBILITY_ADDED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENTATION_DELEGATE_NODE_RESPONSIBILITY_ADDED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENTATION_DELEGATE_NODE_RESPONSIBILITY_REMOVED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENTATION_DELEGATE_NODE_RESPONSIBILITY_REMOVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_ATTRIBUTE_TEMPORARY_PUBLIC_TOKEN_CREATED")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_ATTRIBUTE_TEMPORARY_PUBLIC_TOKEN_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_CREATED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_UPDATED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_DELETED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_PROMOTED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_PROMOTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_TEMPORARY_PUBLIC_TOKEN_CREATED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_TEMPORARY_PUBLIC_TOKEN_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_ARCHIVED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST_RESTORED")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_CREATED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_UPDATED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_DELETED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_ARCHIVED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_ARCHIVED, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE_RESTORED")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE_RESTORED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_CREATED")] - #pragma warning disable CS1591 - RELATED_ITEM_CREATED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_UPDATED")] - #pragma warning disable CS1591 - RELATED_ITEM_UPDATED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_DELETED")] - #pragma warning disable CS1591 - RELATED_ITEM_DELETED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_SECURE_VALUE_DECRYPTED")] - #pragma warning disable CS1591 - RELATED_ITEM_SECURE_VALUE_DECRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM_TEMPORARY_PUBLIC_TOKEN_CREATED")] - #pragma warning disable CS1591 - RELATED_ITEM_TEMPORARY_PUBLIC_TOKEN_CREATED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Activities/ActivitiesRequestBuilder.cs b/V2/Device/Item/Activities/ActivitiesRequestBuilder.cs deleted file mode 100644 index 35816a6..0000000 --- a/V2/Device/Item/Activities/ActivitiesRequestBuilder.cs +++ /dev/null @@ -1,164 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Activities -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\activities - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ActivitiesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ActivitiesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/activities{?activityType*,lang*,newerThan*,olderThan*,pageSize*,seriesUid*,status*,tz*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ActivitiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/activities{?activityType*,lang*,newerThan*,olderThan*,pageSize*,seriesUid*,status*,tz*}", rawUrl) - { - } - /// - /// Returns activity log for device - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Device.Item.Activities.Activities4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Device.Item.Activities.Activities5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns activity log for device - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Activities.ActivitiesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Activities.ActivitiesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns activity log for device - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ActivitiesRequestBuilderGetQueryParameters - { - /// Return activities of type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("activityType")] - public string? ActivityType { get; set; } -#nullable restore -#else - [QueryParameter("activityType")] - public string ActivityType { get; set; } -#endif - /// Language tag -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("lang")] - public string? Lang { get; set; } -#nullable restore -#else - [QueryParameter("lang")] - public string Lang { get; set; } -#endif - /// Return activities recorded that are older than specified activity ID - [QueryParameter("newerThan")] - public int? NewerThan { get; set; } - /// Return activities recorded that are newer than specified activity ID - [QueryParameter("olderThan")] - public int? OlderThan { get; set; } - /// Limit number of activities to return - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Return activities related to alert (series) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("seriesUid")] - public string? SeriesUid { get; set; } -#nullable restore -#else - [QueryParameter("seriesUid")] - public string SeriesUid { get; set; } -#endif - /// Return activities with status(es) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("status")] - public string? Status { get; set; } -#nullable restore -#else - [QueryParameter("status")] - public string Status { get; set; } -#endif - /// Time Zone -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("tz")] - public string? Tz { get; set; } -#nullable restore -#else - [QueryParameter("tz")] - public string Tz { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ActivitiesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts.cs b/V2/Device/Item/Alerts/Alerts.cs deleted file mode 100644 index 9203c34..0000000 --- a/V2/Device/Item/Alerts/Alerts.cs +++ /dev/null @@ -1,180 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Alerts : 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 conditionName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ConditionName { get; set; } -#nullable restore -#else - public string ConditionName { get; set; } -#endif - /// Alert creation timestamp - public double? CreateTime { get; set; } - /// Alert data -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_data? DataEscaped { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_data DataEscaped { get; set; } -#endif - /// Device information. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device? Device { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device Device { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// The primary error message. - public override string Message { get => MessageEscaped ?? string.Empty; } - /// Alert message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif - /// The priority property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Priority { get; set; } -#nullable restore -#else - public string Priority { get; set; } -#endif - /// Related PSA ticket ID -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_psaTicketId? PsaTicketId { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_psaTicketId PsaTicketId { get; set; } -#endif - /// The severity property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Severity { get; set; } -#nullable restore -#else - public string Severity { get; set; } -#endif - /// Source configuration/policy element reference - public Guid? SourceConfigUid { get; set; } - /// Source configuration/policy element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SourceName { get; set; } -#nullable restore -#else - public string SourceName { get; set; } -#endif - /// Alert origin - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_sourceType? SourceType { get; set; } - /// Alert subject -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subject { get; set; } -#nullable restore -#else - public string Subject { get; set; } -#endif - /// PSA ticket template - public int? TicketTemplateId { get; set; } - /// Alert UID (activity series UID) - public Guid? Uid { get; set; } - /// Alert last updated - public double? UpdateTime { get; set; } - /// User identifier - public int? UserId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Alerts() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "conditionName", n => { ConditionName = n.GetStringValue(); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "data", n => { DataEscaped = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_data.CreateFromDiscriminatorValue); } }, - { "device", n => { Device = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device.CreateFromDiscriminatorValue); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "message", n => { MessageEscaped = n.GetStringValue(); } }, - { "priority", n => { Priority = n.GetStringValue(); } }, - { "psaTicketId", n => { PsaTicketId = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_psaTicketId.CreateFromDiscriminatorValue); } }, - { "severity", n => { Severity = n.GetStringValue(); } }, - { "sourceConfigUid", n => { SourceConfigUid = n.GetGuidValue(); } }, - { "sourceName", n => { SourceName = n.GetStringValue(); } }, - { "sourceType", n => { SourceType = n.GetEnumValue(); } }, - { "subject", n => { Subject = n.GetStringValue(); } }, - { "ticketTemplateId", n => { TicketTemplateId = n.GetIntValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "userId", n => { UserId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("conditionName", ConditionName); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteObjectValue("data", DataEscaped); - writer.WriteObjectValue("device", Device); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("message", MessageEscaped); - writer.WriteStringValue("priority", Priority); - writer.WriteObjectValue("psaTicketId", PsaTicketId); - writer.WriteStringValue("severity", Severity); - writer.WriteGuidValue("sourceConfigUid", SourceConfigUid); - writer.WriteStringValue("sourceName", SourceName); - writer.WriteEnumValue("sourceType", SourceType); - writer.WriteStringValue("subject", Subject); - writer.WriteIntValue("ticketTemplateId", TicketTemplateId); - writer.WriteGuidValue("uid", Uid); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteIntValue("userId", UserId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/AlertsRequestBuilder.cs b/V2/Device/Item/Alerts/AlertsRequestBuilder.cs deleted file mode 100644 index 4cc781e..0000000 --- a/V2/Device/Item/Alerts/AlertsRequestBuilder.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\alerts - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AlertsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public AlertsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/alerts{?lang*,tz*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/alerts{?lang*,tz*}", rawUrl) - { - } - /// - /// Returns list of active alerts (triggered conditions) for device - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of active alerts (triggered conditions) for device - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Alerts.AlertsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Alerts.AlertsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of active alerts (triggered conditions) for device - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AlertsRequestBuilderGetQueryParameters - { -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("lang")] - public string? Lang { get; set; } -#nullable restore -#else - [QueryParameter("lang")] - public string Lang { get; set; } -#endif - /// Time Zone -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("tz")] - public string? Tz { get; set; } -#nullable restore -#else - [QueryParameter("tz")] - public string Tz { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AlertsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_data.cs b/V2/Device/Item/Alerts/Alerts_data.cs deleted file mode 100644 index f690c9f..0000000 --- a/V2/Device/Item/Alerts/Alerts_data.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Alert data - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_data : 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. - /// - public Alerts_data() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_data CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_data(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device.cs b/V2/Device/Item/Alerts/Alerts_device.cs deleted file mode 100644 index ab5ceb0..0000000 --- a/V2/Device/Item/Alerts/Alerts_device.cs +++ /dev/null @@ -1,206 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Device information. - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device : 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; } - /// Approval Status - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_approvalStatus? ApprovalStatus { get; set; } - /// Node (Device) Owner UUID - public Guid? AssignedOwnerUid { get; set; } - /// Created - public double? Created { get; set; } - /// Display Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// DNS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DnsName { get; set; } -#nullable restore -#else - public string DnsName { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_fields Fields { get; set; } -#endif - /// Node (Device) identifier - public int? Id { get; set; } - /// Last Contact - public double? LastContact { get; set; } - /// Last data submission timestamp - public double? LastUpdate { get; set; } - /// Location identifier - public int? LocationId { get; set; } - /// Maintenance mode status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_maintenance? Maintenance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_maintenance Maintenance { get; set; } -#endif - /// NETBIOS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NetbiosName { get; set; } -#nullable restore -#else - public string NetbiosName { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_nodeClass? NodeClass { get; set; } - /// Node Role identifier - public int? NodeRoleId { get; set; } - /// Is Offline? - public bool? Offline { get; set; } - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent Node identifier - public int? ParentDeviceId { get; set; } - /// Assigned policy ID (overrides organization and location policy mapping) - public int? PolicyId { get; set; } - /// Expanded entity references -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references? References { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references References { get; set; } -#endif - /// Node Role policy ID based on organization and location Policy Mapping - public int? RolePolicyId { get; set; } - /// System Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SystemName { get; set; } -#nullable restore -#else - public string SystemName { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Node (Device) UUID - public Guid? Uid { get; set; } - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "approvalStatus", n => { ApprovalStatus = n.GetEnumValue(); } }, - { "assignedOwnerUid", n => { AssignedOwnerUid = n.GetGuidValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "dnsName", n => { DnsName = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastContact", n => { LastContact = n.GetDoubleValue(); } }, - { "lastUpdate", n => { LastUpdate = n.GetDoubleValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "maintenance", n => { Maintenance = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_maintenance.CreateFromDiscriminatorValue); } }, - { "netbiosName", n => { NetbiosName = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "offline", n => { Offline = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentDeviceId", n => { ParentDeviceId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - { "references", n => { References = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references.CreateFromDiscriminatorValue); } }, - { "rolePolicyId", n => { RolePolicyId = n.GetIntValue(); } }, - { "systemName", n => { SystemName = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("approvalStatus", ApprovalStatus); - writer.WriteGuidValue("assignedOwnerUid", AssignedOwnerUid); - writer.WriteDoubleValue("created", Created); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("dnsName", DnsName); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteDoubleValue("lastContact", LastContact); - writer.WriteDoubleValue("lastUpdate", LastUpdate); - writer.WriteIntValue("locationId", LocationId); - writer.WriteObjectValue("maintenance", Maintenance); - writer.WriteStringValue("netbiosName", NetbiosName); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteBoolValue("offline", Offline); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentDeviceId", ParentDeviceId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteObjectValue("references", References); - writer.WriteIntValue("rolePolicyId", RolePolicyId); - writer.WriteStringValue("systemName", SystemName); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_approvalStatus.cs b/V2/Device/Item/Alerts/Alerts_device_approvalStatus.cs deleted file mode 100644 index 6afa332..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_approvalStatus.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// Approval Status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_device_approvalStatus - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "APPROVED")] - #pragma warning disable CS1591 - APPROVED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Alerts/Alerts_device_fields.cs b/V2/Device/Item/Alerts/Alerts_device_fields.cs deleted file mode 100644 index a1cb594..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_fields : 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. - /// - public Alerts_device_fields() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_maintenance.cs b/V2/Device/Item/Alerts/Alerts_device_maintenance.cs deleted file mode 100644 index 45e63a1..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_maintenance.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Maintenance mode status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_maintenance : 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; } - /// Maintenance mode end time - public double? End { get; set; } - /// Maintenance reason message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ReasonMessage { get; set; } -#nullable restore -#else - public string ReasonMessage { get; set; } -#endif - /// Maintenance mode start time - public double? Start { get; set; } - /// Maintenance mode status - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_maintenance_status? Status { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_maintenance() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_maintenance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_maintenance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "end", n => { End = n.GetDoubleValue(); } }, - { "reasonMessage", n => { ReasonMessage = n.GetStringValue(); } }, - { "start", n => { Start = n.GetDoubleValue(); } }, - { "status", n => { Status = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("end", End); - writer.WriteStringValue("reasonMessage", ReasonMessage); - writer.WriteDoubleValue("start", Start); - writer.WriteEnumValue("status", Status); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_maintenance_status.cs b/V2/Device/Item/Alerts/Alerts_device_maintenance_status.cs deleted file mode 100644 index 6efc455..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_maintenance_status.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// Maintenance mode status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_device_maintenance_status - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_MAINTENANCE")] - #pragma warning disable CS1591 - IN_MAINTENANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILED")] - #pragma warning disable CS1591 - FAILED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Alerts/Alerts_device_nodeClass.cs b/V2/Device/Item/Alerts/Alerts_device_nodeClass.cs deleted file mode 100644 index a62518a..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_device_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Alerts/Alerts_device_references.cs b/V2/Device/Item/Alerts/Alerts_device_references.cs deleted file mode 100644 index ee70675..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Expanded entity references - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references : 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; } - /// Assigned device owner -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_assignedOwner? AssignedOwner { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_assignedOwner AssignedOwner { get; set; } -#endif - /// Device Backup Bandwidth Throttle -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_backupBandwidthThrottle? BackupBandwidthThrottle { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_backupBandwidthThrottle BackupBandwidthThrottle { get; set; } -#endif - /// Device Backup Usage -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_backupUsage? BackupUsage { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_backupUsage BackupUsage { get; set; } -#endif - /// Location -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_location? Location { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_location Location { get; set; } -#endif - /// Organization -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_organization? Organization { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_organization Organization { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_policy? Policy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_policy Policy { get; set; } -#endif - /// Device Role -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_role? Role { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_role Role { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_rolePolicy? RolePolicy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_rolePolicy RolePolicy { get; set; } -#endif - /// Warranty Info -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_warranty? Warranty { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_warranty Warranty { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignedOwner", n => { AssignedOwner = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_assignedOwner.CreateFromDiscriminatorValue); } }, - { "backupBandwidthThrottle", n => { BackupBandwidthThrottle = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_backupBandwidthThrottle.CreateFromDiscriminatorValue); } }, - { "backupUsage", n => { BackupUsage = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_backupUsage.CreateFromDiscriminatorValue); } }, - { "location", n => { Location = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_location.CreateFromDiscriminatorValue); } }, - { "organization", n => { Organization = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_organization.CreateFromDiscriminatorValue); } }, - { "policy", n => { Policy = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_policy.CreateFromDiscriminatorValue); } }, - { "role", n => { Role = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_role.CreateFromDiscriminatorValue); } }, - { "rolePolicy", n => { RolePolicy = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_rolePolicy.CreateFromDiscriminatorValue); } }, - { "warranty", n => { Warranty = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_warranty.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assignedOwner", AssignedOwner); - writer.WriteObjectValue("backupBandwidthThrottle", BackupBandwidthThrottle); - writer.WriteObjectValue("backupUsage", BackupUsage); - writer.WriteObjectValue("location", Location); - writer.WriteObjectValue("organization", Organization); - writer.WriteObjectValue("policy", Policy); - writer.WriteObjectValue("role", Role); - writer.WriteObjectValue("rolePolicy", RolePolicy); - writer.WriteObjectValue("warranty", Warranty); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_assignedOwner.cs b/V2/Device/Item/Alerts/Alerts_device_references_assignedOwner.cs deleted file mode 100644 index a3e3c13..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_assignedOwner.cs +++ /dev/null @@ -1,190 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Assigned device owner - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_assignedOwner : 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; } - /// The administrator property - public bool? Administrator { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Device IDs which end-user is authorized to access -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DeviceIds { get; set; } -#nullable restore -#else - public List DeviceIds { get; set; } -#endif - /// The email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The enabled property - public bool? Enabled { get; set; } - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_assignedOwner_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_assignedOwner_fields Fields { get; set; } -#endif - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// The invitationStatus property - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_assignedOwner_invitationStatus? InvitationStatus { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// The mfaConfigured property - public bool? MfaConfigured { get; set; } - /// The mustChangePw property - public bool? MustChangePw { get; set; } - /// The notifyAllClients property - public bool? NotifyAllClients { get; set; } - /// Identifier of organization for end-users - public int? OrganizationId { get; set; } - /// The permitAllClients property - public bool? PermitAllClients { get; set; } - /// The phone property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the user. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// User universally unique identifier - public Guid? Uid { get; set; } - /// The userType property - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_assignedOwner_userType? UserType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_assignedOwner() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_assignedOwner CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_assignedOwner(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "administrator", n => { Administrator = n.GetBoolValue(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "deviceIds", n => { DeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_assignedOwner_fields.CreateFromDiscriminatorValue); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "notifyAllClients", n => { NotifyAllClients = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "permitAllClients", n => { PermitAllClients = n.GetBoolValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userType", n => { UserType = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("administrator", Administrator); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteCollectionOfPrimitiveValues("deviceIds", DeviceIds); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteBoolValue("notifyAllClients", NotifyAllClients); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteBoolValue("permitAllClients", PermitAllClients); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteEnumValue("userType", UserType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_assignedOwner_fields.cs b/V2/Device/Item/Alerts/Alerts_device_references_assignedOwner_fields.cs deleted file mode 100644 index dfdcad8..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_assignedOwner_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_assignedOwner_fields : 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. - /// - public Alerts_device_references_assignedOwner_fields() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_assignedOwner_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_assignedOwner_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_assignedOwner_invitationStatus.cs b/V2/Device/Item/Alerts/Alerts_device_references_assignedOwner_invitationStatus.cs deleted file mode 100644 index 0d7efe0..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_assignedOwner_invitationStatus.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Alerts_device_references_assignedOwner_invitationStatus - #pragma warning restore CS1591 - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Alerts/Alerts_device_references_assignedOwner_userType.cs b/V2/Device/Item/Alerts/Alerts_device_references_assignedOwner_userType.cs deleted file mode 100644 index ef308c0..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_assignedOwner_userType.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Alerts_device_references_assignedOwner_userType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Alerts/Alerts_device_references_backupBandwidthThrottle.cs b/V2/Device/Item/Alerts/Alerts_device_references_backupBandwidthThrottle.cs deleted file mode 100644 index 3216b5f..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_backupBandwidthThrottle.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Device Backup Bandwidth Throttle - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_backupBandwidthThrottle : 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; } - /// Whether bandwidth throttle is enabled/true or disabled/false - public bool? Enabled { get; set; } - /// Bandwidth nonwork hours limit - public int? NonWorkHoursKbps { get; set; } - /// Bandwidth nonwork hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NonWorkHoursUserUnit { get; set; } -#nullable restore -#else - public string NonWorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work hours limit - public int? WorkHoursKbps { get; set; } - /// Bandwidth work hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? WorkHoursUserUnit { get; set; } -#nullable restore -#else - public string WorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work schedule -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_backupBandwidthThrottle_workSchedule? WorkSchedule { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_backupBandwidthThrottle_workSchedule WorkSchedule { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_backupBandwidthThrottle() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_backupBandwidthThrottle CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_backupBandwidthThrottle(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "nonWorkHoursKbps", n => { NonWorkHoursKbps = n.GetIntValue(); } }, - { "nonWorkHoursUserUnit", n => { NonWorkHoursUserUnit = n.GetStringValue(); } }, - { "workHoursKbps", n => { WorkHoursKbps = n.GetIntValue(); } }, - { "workHoursUserUnit", n => { WorkHoursUserUnit = n.GetStringValue(); } }, - { "workSchedule", n => { WorkSchedule = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_backupBandwidthThrottle_workSchedule.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("nonWorkHoursKbps", NonWorkHoursKbps); - writer.WriteStringValue("nonWorkHoursUserUnit", NonWorkHoursUserUnit); - writer.WriteIntValue("workHoursKbps", WorkHoursKbps); - writer.WriteStringValue("workHoursUserUnit", WorkHoursUserUnit); - writer.WriteObjectValue("workSchedule", WorkSchedule); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_backupBandwidthThrottle_workSchedule.cs b/V2/Device/Item/Alerts/Alerts_device_references_backupBandwidthThrottle_workSchedule.cs deleted file mode 100644 index 1181531..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_backupBandwidthThrottle_workSchedule.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Bandwidth work schedule - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_backupBandwidthThrottle_workSchedule : 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; } - /// Work schedule end hour (0 to 23) - public int? EndHour { get; set; } - /// Work schedule end minute (0 to 59) - public int? EndMinute { get; set; } - /// Work schedule start hour (0 to 23) - public int? StartHour { get; set; } - /// Work schedule start minute (0 to 59) - public int? StartMinute { get; set; } - /// Work schedule week days list -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? WeekDays { get; set; } -#nullable restore -#else - public List WeekDays { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_backupBandwidthThrottle_workSchedule() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_backupBandwidthThrottle_workSchedule CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_backupBandwidthThrottle_workSchedule(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endHour", n => { EndHour = n.GetIntValue(); } }, - { "endMinute", n => { EndMinute = n.GetIntValue(); } }, - { "startHour", n => { StartHour = n.GetIntValue(); } }, - { "startMinute", n => { StartMinute = n.GetIntValue(); } }, - { "weekDays", n => { WeekDays = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("endHour", EndHour); - writer.WriteIntValue("endMinute", EndMinute); - writer.WriteIntValue("startHour", StartHour); - writer.WriteIntValue("startMinute", StartMinute); - writer.WriteCollectionOfPrimitiveValues("weekDays", WeekDays); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_backupUsage.cs b/V2/Device/Item/Alerts/Alerts_device_references_backupUsage.cs deleted file mode 100644 index 13d383e..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_backupUsage.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Device Backup Usage - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_backupUsage : 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; } - /// Revisions cloud file folder size - public long? CloudFileFolderSize { get; set; } - /// Revisions cloud image size - public long? CloudImageSize { get; set; } - /// Revisions cloud image v2 size - public long? CloudImageV2Size { get; set; } - /// Revisions cloud network share size - public long? CloudNetworkShareSize { get; set; } - /// Revisions cloud total size - public long? CloudTotalSize { get; private set; } - /// Last failed job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastFailedBackupJob { get; set; } - /// Last successful job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastSuccessfulBackupJob { get; set; } - /// Revisions local file folder size - public long? LocalFileFolderSize { get; set; } - /// Revisions local image size - public long? LocalImageSize { get; set; } - /// Revisions local image v2 size - public long? LocalImageV2Size { get; set; } - /// Revisions local total size - public long? LocalTotalSize { get; private set; } - /// Revisions current size - public long? RevisionsCurrentSize { get; set; } - /// Revisions deleted size - public long? RevisionsDeletedSize { get; set; } - /// Revisions previous size - public long? RevisionsPreviousSize { get; set; } - /// Revisions total size - public long? RevisionsTotalSize { get; private set; } - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_backupUsage() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_backupUsage CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_backupUsage(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cloudFileFolderSize", n => { CloudFileFolderSize = n.GetLongValue(); } }, - { "cloudImageSize", n => { CloudImageSize = n.GetLongValue(); } }, - { "cloudImageV2Size", n => { CloudImageV2Size = n.GetLongValue(); } }, - { "cloudNetworkShareSize", n => { CloudNetworkShareSize = n.GetLongValue(); } }, - { "cloudTotalSize", n => { CloudTotalSize = n.GetLongValue(); } }, - { "lastFailedBackupJob", n => { LastFailedBackupJob = n.GetDoubleValue(); } }, - { "lastSuccessfulBackupJob", n => { LastSuccessfulBackupJob = n.GetDoubleValue(); } }, - { "localFileFolderSize", n => { LocalFileFolderSize = n.GetLongValue(); } }, - { "localImageSize", n => { LocalImageSize = n.GetLongValue(); } }, - { "localImageV2Size", n => { LocalImageV2Size = n.GetLongValue(); } }, - { "localTotalSize", n => { LocalTotalSize = n.GetLongValue(); } }, - { "revisionsCurrentSize", n => { RevisionsCurrentSize = n.GetLongValue(); } }, - { "revisionsDeletedSize", n => { RevisionsDeletedSize = n.GetLongValue(); } }, - { "revisionsPreviousSize", n => { RevisionsPreviousSize = n.GetLongValue(); } }, - { "revisionsTotalSize", n => { RevisionsTotalSize = n.GetLongValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteLongValue("cloudFileFolderSize", CloudFileFolderSize); - writer.WriteLongValue("cloudImageSize", CloudImageSize); - writer.WriteLongValue("cloudImageV2Size", CloudImageV2Size); - writer.WriteLongValue("cloudNetworkShareSize", CloudNetworkShareSize); - writer.WriteDoubleValue("lastFailedBackupJob", LastFailedBackupJob); - writer.WriteDoubleValue("lastSuccessfulBackupJob", LastSuccessfulBackupJob); - writer.WriteLongValue("localFileFolderSize", LocalFileFolderSize); - writer.WriteLongValue("localImageSize", LocalImageSize); - writer.WriteLongValue("localImageV2Size", LocalImageV2Size); - writer.WriteLongValue("revisionsCurrentSize", RevisionsCurrentSize); - writer.WriteLongValue("revisionsDeletedSize", RevisionsDeletedSize); - writer.WriteLongValue("revisionsPreviousSize", RevisionsPreviousSize); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_location.cs b/V2/Device/Item/Alerts/Alerts_device_references_location.cs deleted file mode 100644 index f5af095..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_location.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_location : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_location_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_location_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_location_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_location_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_location() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_location CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_location(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_location_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_location_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_location_fields.cs b/V2/Device/Item/Alerts/Alerts_device_references_location_fields.cs deleted file mode 100644 index 83f89b1..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_location_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_location_fields : 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. - /// - public Alerts_device_references_location_fields() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_location_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_location_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_location_userData.cs b/V2/Device/Item/Alerts/Alerts_device_references_location_userData.cs deleted file mode 100644 index da0a147..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_location_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_location_userData : 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. - /// - public Alerts_device_references_location_userData() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_location_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_location_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_organization.cs b/V2/Device/Item/Alerts/Alerts_device_references_organization.cs deleted file mode 100644 index f861eb9..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_organization.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_organization : 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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_organization_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_organization_fields Fields { get; set; } -#endif - /// Organization identifier - public int? Id { get; set; } - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_organization_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_organization_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_organization_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_organization() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_organization CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_organization(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_organization_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_organization_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_organization_fields.cs b/V2/Device/Item/Alerts/Alerts_device_references_organization_fields.cs deleted file mode 100644 index 7c05d9d..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_organization_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_organization_fields : 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. - /// - public Alerts_device_references_organization_fields() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_organization_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_organization_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_organization_nodeApprovalMode.cs b/V2/Device/Item/Alerts/Alerts_device_references_organization_nodeApprovalMode.cs deleted file mode 100644 index e6eb211..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_organization_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_device_references_organization_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Alerts/Alerts_device_references_organization_userData.cs b/V2/Device/Item/Alerts/Alerts_device_references_organization_userData.cs deleted file mode 100644 index 9a4d8f5..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_organization_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_organization_userData : 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. - /// - public Alerts_device_references_organization_userData() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_organization_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_organization_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_policy.cs b/V2/Device/Item/Alerts/Alerts_device_references_policy.cs deleted file mode 100644 index 0deadea..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_policy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_policy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_policy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_policy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_policy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_policy() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_policy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_policy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_policy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_policy_fields.cs b/V2/Device/Item/Alerts/Alerts_device_references_policy_fields.cs deleted file mode 100644 index 1a4f2ac..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_policy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_policy_fields : 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. - /// - public Alerts_device_references_policy_fields() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_policy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_policy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_policy_nodeClass.cs b/V2/Device/Item/Alerts/Alerts_device_references_policy_nodeClass.cs deleted file mode 100644 index 13bf3c8..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_policy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_device_references_policy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Alerts/Alerts_device_references_role.cs b/V2/Device/Item/Alerts/Alerts_device_references_role.cs deleted file mode 100644 index 0df3b40..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_role.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Device Role - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_role : 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; } - /// Chassis Type - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_role_chassisType? ChassisType { get; set; } - /// Date created - public double? Created { get; set; } - /// Is custom node role? - public bool? Custom { get; set; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_role_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_role_fields Fields { get; set; } -#endif - /// Icon -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Icon { get; set; } -#nullable restore -#else - public string Icon { get; set; } -#endif - /// Device Role identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_role_nodeClass? NodeClass { get; set; } - /// Node Role Parent Id - public int? NodeRoleParentId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_role() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_role CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_role(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "chassisType", n => { ChassisType = n.GetEnumValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "custom", n => { Custom = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_role_fields.CreateFromDiscriminatorValue); } }, - { "icon", n => { Icon = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleParentId", n => { NodeRoleParentId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("chassisType", ChassisType); - writer.WriteDoubleValue("created", Created); - writer.WriteBoolValue("custom", Custom); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("icon", Icon); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleParentId", NodeRoleParentId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_rolePolicy.cs b/V2/Device/Item/Alerts/Alerts_device_references_rolePolicy.cs deleted file mode 100644 index 0966de4..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_rolePolicy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_rolePolicy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_rolePolicy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_rolePolicy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_rolePolicy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_rolePolicy() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_rolePolicy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_rolePolicy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_rolePolicy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_rolePolicy_fields.cs b/V2/Device/Item/Alerts/Alerts_device_references_rolePolicy_fields.cs deleted file mode 100644 index 782d816..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_rolePolicy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_rolePolicy_fields : 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. - /// - public Alerts_device_references_rolePolicy_fields() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_rolePolicy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_rolePolicy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_rolePolicy_nodeClass.cs b/V2/Device/Item/Alerts/Alerts_device_references_rolePolicy_nodeClass.cs deleted file mode 100644 index 05b6863..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_rolePolicy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_device_references_rolePolicy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Alerts/Alerts_device_references_role_chassisType.cs b/V2/Device/Item/Alerts/Alerts_device_references_role_chassisType.cs deleted file mode 100644 index 265e3ca..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_role_chassisType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// Chassis Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_device_references_role_chassisType - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "DESKTOP")] - #pragma warning disable CS1591 - DESKTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "LAPTOP")] - #pragma warning disable CS1591 - LAPTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "MOBILE")] - #pragma warning disable CS1591 - MOBILE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Alerts/Alerts_device_references_role_fields.cs b/V2/Device/Item/Alerts/Alerts_device_references_role_fields.cs deleted file mode 100644 index 02f88a8..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_role_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_role_fields : 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. - /// - public Alerts_device_references_role_fields() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_role_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_role_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_references_role_nodeClass.cs b/V2/Device/Item/Alerts/Alerts_device_references_role_nodeClass.cs deleted file mode 100644 index 0767d7c..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_role_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_device_references_role_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Alerts/Alerts_device_references_warranty.cs b/V2/Device/Item/Alerts/Alerts_device_references_warranty.cs deleted file mode 100644 index a1d85f1..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_references_warranty.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Warranty Info - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_references_warranty : 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; } - /// Warranty End Date (Seconds) - public double? EndDate { get; set; } - /// Manufacturer Fulfillment Date - public double? ManufacturerFulfillmentDate { get; set; } - /// Warranty Start Date (Seconds) - public double? StartDate { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Alerts_device_references_warranty() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_warranty CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_references_warranty(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endDate", n => { EndDate = n.GetDoubleValue(); } }, - { "manufacturerFulfillmentDate", n => { ManufacturerFulfillmentDate = n.GetDoubleValue(); } }, - { "startDate", n => { StartDate = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("endDate", EndDate); - writer.WriteDoubleValue("manufacturerFulfillmentDate", ManufacturerFulfillmentDate); - writer.WriteDoubleValue("startDate", StartDate); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_device_userData.cs b/V2/Device/Item/Alerts/Alerts_device_userData.cs deleted file mode 100644 index 4d4f7be..0000000 --- a/V2/Device/Item/Alerts/Alerts_device_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_device_userData : 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. - /// - public Alerts_device_userData() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_device_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_psaTicketId.cs b/V2/Device/Item/Alerts/Alerts_psaTicketId.cs deleted file mode 100644 index 48af245..0000000 --- a/V2/Device/Item/Alerts/Alerts_psaTicketId.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// - /// Related PSA ticket ID - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Alerts_psaTicketId : 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. - /// - public Alerts_psaTicketId() - { - 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::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_psaTicketId CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Alerts.Alerts_psaTicketId(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Alerts/Alerts_sourceType.cs b/V2/Device/Item/Alerts/Alerts_sourceType.cs deleted file mode 100644 index c2c3261..0000000 --- a/V2/Device/Item/Alerts/Alerts_sourceType.cs +++ /dev/null @@ -1,371 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Alerts -{ - /// Alert origin - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Alerts_sourceType - { - [EnumMember(Value = "AGENT_OFFLINE")] - #pragma warning disable CS1591 - AGENT_OFFLINE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_CPU")] - #pragma warning disable CS1591 - CONDITION_AGENT_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_MEMORY")] - #pragma warning disable CS1591 - CONDITION_AGENT_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_NETWORK")] - #pragma warning disable CS1591 - CONDITION_AGENT_NETWORK, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_DISK_IO")] - #pragma warning disable CS1591 - CONDITION_AGENT_DISK_IO, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_DISK_FREE_SPACE")] - #pragma warning disable CS1591 - CONDITION_AGENT_DISK_FREE_SPACE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_DISK_USAGE")] - #pragma warning disable CS1591 - CONDITION_AGENT_DISK_USAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_CVSS_SCORE")] - #pragma warning disable CS1591 - CONDITION_AGENT_CVSS_SCORE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_PATCH_LAST_INSTALLED")] - #pragma warning disable CS1591 - CONDITION_AGENT_PATCH_LAST_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_CPU")] - #pragma warning disable CS1591 - CONDITION_NMS_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_MEMORY")] - #pragma warning disable CS1591 - CONDITION_NMS_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_NETWORK_TRAFFIC_BITS")] - #pragma warning disable CS1591 - CONDITION_NMS_NETWORK_TRAFFIC_BITS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_NETWORK_TRAFFIC_PERCENT")] - #pragma warning disable CS1591 - CONDITION_NMS_NETWORK_TRAFFIC_PERCENT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_NETWORK_STATUS")] - #pragma warning disable CS1591 - CONDITION_NMS_NETWORK_STATUS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_NETWORK_STATUS_CHANGE")] - #pragma warning disable CS1591 - CONDITION_NMS_NETWORK_STATUS_CHANGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_SYSTEM_UPTIME")] - #pragma warning disable CS1591 - CONDITION_NMS_SYSTEM_UPTIME, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PING")] - #pragma warning disable CS1591 - CONDITION_PING, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PING_LATENCY")] - #pragma warning disable CS1591 - CONDITION_PING_LATENCY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PING_PACKET_LOSS")] - #pragma warning disable CS1591 - CONDITION_PING_PACKET_LOSS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PING_RESPONSE")] - #pragma warning disable CS1591 - CONDITION_PING_RESPONSE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SYSTEM_UPTIME")] - #pragma warning disable CS1591 - CONDITION_SYSTEM_UPTIME, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SMART_STATUS_DEGRATED")] - #pragma warning disable CS1591 - CONDITION_SMART_STATUS_DEGRATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_RAID_HEALTH_STATUS")] - #pragma warning disable CS1591 - CONDITION_RAID_HEALTH_STATUS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SCRIPT_RESULT")] - #pragma warning disable CS1591 - CONDITION_SCRIPT_RESULT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_HTTP")] - #pragma warning disable CS1591 - CONDITION_HTTP, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_HTTP_RESPONSE")] - #pragma warning disable CS1591 - CONDITION_HTTP_RESPONSE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PORT")] - #pragma warning disable CS1591 - CONDITION_PORT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PORT_SCAN")] - #pragma warning disable CS1591 - CONDITION_PORT_SCAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SYSLOG")] - #pragma warning disable CS1591 - CONDITION_SYSLOG, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_CONFIGURATION_FILE")] - #pragma warning disable CS1591 - CONDITION_CONFIGURATION_FILE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SNMPTRAP")] - #pragma warning disable CS1591 - CONDITION_SNMPTRAP, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_CRITICAL_EVENT")] - #pragma warning disable CS1591 - CONDITION_CRITICAL_EVENT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_DNS")] - #pragma warning disable CS1591 - CONDITION_DNS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_EMAIL")] - #pragma warning disable CS1591 - CONDITION_EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_CUSTOM_SNMP")] - #pragma warning disable CS1591 - CONDITION_CUSTOM_SNMP, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_COMPOUND")] - #pragma warning disable CS1591 - CONDITION_COMPOUND, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_CREATE")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_CREATE, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_UPDATE")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_UPDATE, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_DELETE")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_DELETE, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_EXECUTE")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_EXECUTE, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_MANAGEDFOLDER_CREATE")] - #pragma warning disable CS1591 - IMAGEMANAGER_MANAGEDFOLDER_CREATE, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_MANAGEDFOLDER_UPDATE")] - #pragma warning disable CS1591 - IMAGEMANAGER_MANAGEDFOLDER_UPDATE, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_MANAGEDFOLDER_DELETE")] - #pragma warning disable CS1591 - IMAGEMANAGER_MANAGEDFOLDER_DELETE, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_MANAGEDFOLDER_EXECUTE")] - #pragma warning disable CS1591 - IMAGEMANAGER_MANAGEDFOLDER_EXECUTE, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONNECTION")] - #pragma warning disable CS1591 - TEAMVIEWER_CONNECTION, - #pragma warning restore CS1591 - [EnumMember(Value = "RETRIEVE_AGENT_LOGS")] - #pragma warning disable CS1591 - RETRIEVE_AGENT_LOGS, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK")] - #pragma warning disable CS1591 - SCHEDULED_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_EVENT_LOG_TRIGGERED")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_EVENT_LOG_TRIGGERED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_SERVICE_STATE_CHANGED")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_SERVICE_STATE_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "UI_MESSAGE_ACTION_REBOOT")] - #pragma warning disable CS1591 - UI_MESSAGE_ACTION_REBOOT, - #pragma warning restore CS1591 - [EnumMember(Value = "UI_MESSAGE_BD_INSTALLATION_ISSUES")] - #pragma warning disable CS1591 - UI_MESSAGE_BD_INSTALLATION_ISSUES, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_UI_MESSAGE_INSTALLATION_ISSUES")] - #pragma warning disable CS1591 - GRAVITYZONE_UI_MESSAGE_INSTALLATION_ISSUES, - #pragma warning restore CS1591 - [EnumMember(Value = "AV_QUARANTINE_THREAT")] - #pragma warning disable CS1591 - AV_QUARANTINE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "AV_RESTORE_THREAT")] - #pragma warning disable CS1591 - AV_RESTORE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "AV_DELETE_THREAT")] - #pragma warning disable CS1591 - AV_DELETE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "AV_REMOVE_THREAT")] - #pragma warning disable CS1591 - AV_REMOVE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_RESTORE_THREAT")] - #pragma warning disable CS1591 - BITDEFENDER_RESTORE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DELETE_THREAT")] - #pragma warning disable CS1591 - BITDEFENDER_DELETE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_BITLOCKER_STATUS")] - #pragma warning disable CS1591 - CONDITION_BITLOCKER_STATUS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_FILEVAULT_STATUS")] - #pragma warning disable CS1591 - CONDITION_FILEVAULT_STATUS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_PROCESS")] - #pragma warning disable CS1591 - CONDITION_LINUX_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_Daemon")] - #pragma warning disable CS1591 - CONDITION_LINUX_Daemon, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_PROCESS_RESOURCE")] - #pragma warning disable CS1591 - CONDITION_LINUX_PROCESS_RESOURCE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_PROCESS_RESOURCE_CPU")] - #pragma warning disable CS1591 - CONDITION_LINUX_PROCESS_RESOURCE_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_PROCESS_RESOURCE_MEMORY")] - #pragma warning disable CS1591 - CONDITION_LINUX_PROCESS_RESOURCE_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_DISK_FREE_SPACE")] - #pragma warning disable CS1591 - CONDITION_LINUX_DISK_FREE_SPACE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_DISK_USAGE")] - #pragma warning disable CS1591 - CONDITION_LINUX_DISK_USAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_AGGREGATE_CPU_USAGE")] - #pragma warning disable CS1591 - CONDITION_VM_AGGREGATE_CPU_USAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_DISK_USAGE")] - #pragma warning disable CS1591 - CONDITION_VM_DISK_USAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_DATASTORE")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_DATASTORE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_UPTIME")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_UPTIME, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_DEVICE_DOWN")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_DEVICE_DOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_BAD_SENSORS")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_BAD_SENSORS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_SENSOR_HEALTH")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_SENSOR_HEALTH, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_GUEST_GUEST_OPERATIONAL_MODE")] - #pragma warning disable CS1591 - CONDITION_VM_GUEST_GUEST_OPERATIONAL_MODE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_GUEST_SNAPSHOT_SIZE")] - #pragma warning disable CS1591 - CONDITION_VM_GUEST_SNAPSHOT_SIZE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_GUEST_SNAPSHOT_LIFESPAN")] - #pragma warning disable CS1591 - CONDITION_VM_GUEST_SNAPSHOT_LIFESPAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_GUEST_TOOLS_NOT_RUNNING")] - #pragma warning disable CS1591 - CONDITION_VM_GUEST_TOOLS_NOT_RUNNING, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_HV_GUEST_CHECKPOINT_SIZE")] - #pragma warning disable CS1591 - CONDITION_HV_GUEST_CHECKPOINT_SIZE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_HV_GUEST_CHECKPOINT_LIFESPAN")] - #pragma warning disable CS1591 - CONDITION_HV_GUEST_CHECKPOINT_LIFESPAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SOFTWARE")] - #pragma warning disable CS1591 - CONDITION_SOFTWARE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_PROCESS_STATE")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_PROCESS_STATE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_PROCESS_RESOURCE_CPU")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_PROCESS_RESOURCE_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_PROCESS_RESOURCE_MEMORY")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_PROCESS_RESOURCE_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_MAC_PROCESS_STATE")] - #pragma warning disable CS1591 - CONDITION_MAC_PROCESS_STATE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_MAC_PROCESS_RESOURCE_CPU")] - #pragma warning disable CS1591 - CONDITION_MAC_PROCESS_RESOURCE_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_MAC_PROCESS_RESOURCE_MEMORY")] - #pragma warning disable CS1591 - CONDITION_MAC_PROCESS_RESOURCE_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_MAC_DEAMON")] - #pragma warning disable CS1591 - CONDITION_MAC_DEAMON, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_CUSTOM_FIELD")] - #pragma warning disable CS1591 - CONDITION_CUSTOM_FIELD, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PENDING_REBOOT")] - #pragma warning disable CS1591 - CONDITION_PENDING_REBOOT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/CustomFields/CustomFields4XXError.cs b/V2/Device/Item/CustomFields/CustomFields4XXError.cs deleted file mode 100644 index df80b18..0000000 --- a/V2/Device/Item/CustomFields/CustomFields4XXError.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFields4XXError : 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 primary error message. - public override string Message { get => base.Message; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields4XXError() - { - 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::NinjaOne.Client.V2.Device.Item.CustomFields.CustomFields4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.CustomFields.CustomFields4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/CustomFields/CustomFields5XXError.cs b/V2/Device/Item/CustomFields/CustomFields5XXError.cs deleted file mode 100644 index 3d0ce5d..0000000 --- a/V2/Device/Item/CustomFields/CustomFields5XXError.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFields5XXError : 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 primary error message. - public override string Message { get => base.Message; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields5XXError() - { - 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::NinjaOne.Client.V2.Device.Item.CustomFields.CustomFields5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.CustomFields.CustomFields5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/CustomFields/CustomFieldsPatchRequestBody.cs b/V2/Device/Item/CustomFields/CustomFieldsPatchRequestBody.cs deleted file mode 100644 index 9dc90fb..0000000 --- a/V2/Device/Item/CustomFields/CustomFieldsPatchRequestBody.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFieldsPatchRequestBody : 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. - /// - public CustomFieldsPatchRequestBody() - { - 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::NinjaOne.Client.V2.Device.Item.CustomFields.CustomFieldsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.CustomFields.CustomFieldsPatchRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/CustomFields/CustomFieldsRequestBuilder.cs b/V2/Device/Item/CustomFields/CustomFieldsRequestBuilder.cs deleted file mode 100644 index 1ebd87c..0000000 --- a/V2/Device/Item/CustomFields/CustomFieldsRequestBuilder.cs +++ /dev/null @@ -1,157 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.CustomFields -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\custom-fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public CustomFieldsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/custom-fields{?withInheritance*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public CustomFieldsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/custom-fields{?withInheritance*}", rawUrl) - { - } - /// - /// Returns list of device custom fields - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Device.Item.CustomFields.CustomFields4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Device.Item.CustomFields.CustomFields5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Update device custom field values - /// - /// A - /// The request body - /// 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 PatchAsync(global::NinjaOne.Client.V2.Device.Item.CustomFields.CustomFieldsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::NinjaOne.Client.V2.Device.Item.CustomFields.CustomFieldsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of device custom fields - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Update device custom field values - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Device.Item.CustomFields.CustomFieldsPatchRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Device.Item.CustomFields.CustomFieldsPatchRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.CustomFields.CustomFieldsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.CustomFields.CustomFieldsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of device custom fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilderGetQueryParameters - { - /// Retrieve values using definition scope hierarchy - [QueryParameter("withInheritance")] - public bool? WithInheritance { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DashboardUrl/DashboardUrl4XXError.cs b/V2/Device/Item/DashboardUrl/DashboardUrl4XXError.cs deleted file mode 100644 index aafa26a..0000000 --- a/V2/Device/Item/DashboardUrl/DashboardUrl4XXError.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.DashboardUrl -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DashboardUrl4XXError : 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; } - /// Link expiration time - public double? Expires { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// URL -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Url { get; set; } -#nullable restore -#else - public string Url { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DashboardUrl4XXError() - { - 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::NinjaOne.Client.V2.Device.Item.DashboardUrl.DashboardUrl4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DashboardUrl.DashboardUrl4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "url", n => { Url = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("url", Url); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DashboardUrl/DashboardUrl5XXError.cs b/V2/Device/Item/DashboardUrl/DashboardUrl5XXError.cs deleted file mode 100644 index 8930d18..0000000 --- a/V2/Device/Item/DashboardUrl/DashboardUrl5XXError.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.DashboardUrl -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DashboardUrl5XXError : 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; } - /// Link expiration time - public double? Expires { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// URL -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Url { get; set; } -#nullable restore -#else - public string Url { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DashboardUrl5XXError() - { - 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::NinjaOne.Client.V2.Device.Item.DashboardUrl.DashboardUrl5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DashboardUrl.DashboardUrl5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "url", n => { Url = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("url", Url); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DashboardUrl/DashboardUrlRequestBuilder.cs b/V2/Device/Item/DashboardUrl/DashboardUrlRequestBuilder.cs deleted file mode 100644 index 4c567d4..0000000 --- a/V2/Device/Item/DashboardUrl/DashboardUrlRequestBuilder.cs +++ /dev/null @@ -1,108 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.DashboardUrl -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\dashboard-url - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DashboardUrlRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DashboardUrlRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/dashboard-url{?redirect*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DashboardUrlRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/dashboard-url{?redirect*}", rawUrl) - { - } - /// - /// Returns link to device - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Device.Item.DashboardUrl.DashboardUrl4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Device.Item.DashboardUrl.DashboardUrl5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns link to device - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.DashboardUrl.DashboardUrlRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.DashboardUrl.DashboardUrlRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns link to device - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DashboardUrlRequestBuilderGetQueryParameters - { - /// Return redirect response - [QueryParameter("redirect")] - public bool? Redirect { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DashboardUrlRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse.cs b/V2/Device/Item/DeviceGetResponse.cs deleted file mode 100644 index fd703c1..0000000 --- a/V2/Device/Item/DeviceGetResponse.cs +++ /dev/null @@ -1,255 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceGetResponse : 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; } - /// Approval Status - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_approvalStatus? ApprovalStatus { get; set; } - /// Node (Device) Owner UUID - public Guid? AssignedOwnerUid { get; set; } - /// Created - public double? Created { get; set; } - /// The deviceType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DeviceType { get; set; } -#nullable restore -#else - public string DeviceType { get; set; } -#endif - /// Display Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// DNS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DnsName { get; set; } -#nullable restore -#else - public string DnsName { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_fields Fields { get; set; } -#endif - /// Node (Device) identifier - public int? Id { get; set; } - /// Device IP addresses -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? IpAddresses { get; set; } -#nullable restore -#else - public List IpAddresses { get; set; } -#endif - /// Last Contact - public double? LastContact { get; set; } - /// Last data submission timestamp - public double? LastUpdate { get; set; } - /// Location identifier - public int? LocationId { get; set; } - /// Device MAC addresses -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MacAddresses { get; set; } -#nullable restore -#else - public List MacAddresses { get; set; } -#endif - /// Maintenance mode status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_maintenance? Maintenance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_maintenance Maintenance { get; set; } -#endif - /// NETBIOS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NetbiosName { get; set; } -#nullable restore -#else - public string NetbiosName { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_nodeClass? NodeClass { get; set; } - /// Node Role identifier - public int? NodeRoleId { get; set; } - /// Device Notes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Notes { get; set; } -#nullable restore -#else - public List Notes { get; set; } -#endif - /// Is Offline? - public bool? Offline { get; set; } - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent Node identifier - public int? ParentDeviceId { get; set; } - /// Assigned policy ID (overrides organization and location policy mapping) - public int? PolicyId { get; set; } - /// Device Public IP Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? PublicIP { get; set; } -#nullable restore -#else - public string PublicIP { get; set; } -#endif - /// Expanded entity references -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references? References { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references References { get; set; } -#endif - /// Node Role policy ID based on organization and location Policy Mapping - public int? RolePolicyId { get; set; } - /// System Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SystemName { get; set; } -#nullable restore -#else - public string SystemName { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Node (Device) UUID - public Guid? Uid { get; set; } - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DeviceGetResponse() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "approvalStatus", n => { ApprovalStatus = n.GetEnumValue(); } }, - { "assignedOwnerUid", n => { AssignedOwnerUid = n.GetGuidValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "deviceType", n => { DeviceType = n.GetStringValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "dnsName", n => { DnsName = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "ipAddresses", n => { IpAddresses = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "lastContact", n => { LastContact = n.GetDoubleValue(); } }, - { "lastUpdate", n => { LastUpdate = n.GetDoubleValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "macAddresses", n => { MacAddresses = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "maintenance", n => { Maintenance = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_maintenance.CreateFromDiscriminatorValue); } }, - { "netbiosName", n => { NetbiosName = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "notes", n => { Notes = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_notes.CreateFromDiscriminatorValue)?.AsList(); } }, - { "offline", n => { Offline = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentDeviceId", n => { ParentDeviceId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - { "publicIP", n => { PublicIP = n.GetStringValue(); } }, - { "references", n => { References = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references.CreateFromDiscriminatorValue); } }, - { "rolePolicyId", n => { RolePolicyId = n.GetIntValue(); } }, - { "systemName", n => { SystemName = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("approvalStatus", ApprovalStatus); - writer.WriteGuidValue("assignedOwnerUid", AssignedOwnerUid); - writer.WriteDoubleValue("created", Created); - writer.WriteStringValue("deviceType", DeviceType); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("dnsName", DnsName); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteCollectionOfPrimitiveValues("ipAddresses", IpAddresses); - writer.WriteDoubleValue("lastContact", LastContact); - writer.WriteDoubleValue("lastUpdate", LastUpdate); - writer.WriteIntValue("locationId", LocationId); - writer.WriteCollectionOfPrimitiveValues("macAddresses", MacAddresses); - writer.WriteObjectValue("maintenance", Maintenance); - writer.WriteStringValue("netbiosName", NetbiosName); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteCollectionOfObjectValues("notes", Notes); - writer.WriteBoolValue("offline", Offline); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentDeviceId", ParentDeviceId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteStringValue("publicIP", PublicIP); - writer.WriteObjectValue("references", References); - writer.WriteIntValue("rolePolicyId", RolePolicyId); - writer.WriteStringValue("systemName", SystemName); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_approvalStatus.cs b/V2/Device/Item/DeviceGetResponse_approvalStatus.cs deleted file mode 100644 index e4c6570..0000000 --- a/V2/Device/Item/DeviceGetResponse_approvalStatus.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// Approval Status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceGetResponse_approvalStatus - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "APPROVED")] - #pragma warning disable CS1591 - APPROVED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/DeviceGetResponse_fields.cs b/V2/Device/Item/DeviceGetResponse_fields.cs deleted file mode 100644 index d0ecf5a..0000000 --- a/V2/Device/Item/DeviceGetResponse_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_fields : 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. - /// - public DeviceGetResponse_fields() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_maintenance.cs b/V2/Device/Item/DeviceGetResponse_maintenance.cs deleted file mode 100644 index 75e140e..0000000 --- a/V2/Device/Item/DeviceGetResponse_maintenance.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Maintenance mode status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_maintenance : 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; } - /// Maintenance mode end time - public double? End { get; set; } - /// Maintenance reason message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ReasonMessage { get; set; } -#nullable restore -#else - public string ReasonMessage { get; set; } -#endif - /// Maintenance mode start time - public double? Start { get; set; } - /// Maintenance mode status - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_maintenance_status? Status { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DeviceGetResponse_maintenance() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_maintenance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_maintenance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "end", n => { End = n.GetDoubleValue(); } }, - { "reasonMessage", n => { ReasonMessage = n.GetStringValue(); } }, - { "start", n => { Start = n.GetDoubleValue(); } }, - { "status", n => { Status = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("end", End); - writer.WriteStringValue("reasonMessage", ReasonMessage); - writer.WriteDoubleValue("start", Start); - writer.WriteEnumValue("status", Status); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_maintenance_status.cs b/V2/Device/Item/DeviceGetResponse_maintenance_status.cs deleted file mode 100644 index 1070fe8..0000000 --- a/V2/Device/Item/DeviceGetResponse_maintenance_status.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// Maintenance mode status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceGetResponse_maintenance_status - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_MAINTENANCE")] - #pragma warning disable CS1591 - IN_MAINTENANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILED")] - #pragma warning disable CS1591 - FAILED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/DeviceGetResponse_nodeClass.cs b/V2/Device/Item/DeviceGetResponse_nodeClass.cs deleted file mode 100644 index 713d4cc..0000000 --- a/V2/Device/Item/DeviceGetResponse_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceGetResponse_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/DeviceGetResponse_notes.cs b/V2/Device/Item/DeviceGetResponse_notes.cs deleted file mode 100644 index 0d34d03..0000000 --- a/V2/Device/Item/DeviceGetResponse_notes.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Device Notes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_notes : 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; } - /// Note text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DeviceGetResponse_notes() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_notes CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_notes(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references.cs b/V2/Device/Item/DeviceGetResponse_references.cs deleted file mode 100644 index d983533..0000000 --- a/V2/Device/Item/DeviceGetResponse_references.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Expanded entity references - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references : 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; } - /// Assigned device owner -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_assignedOwner? AssignedOwner { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_assignedOwner AssignedOwner { get; set; } -#endif - /// Device Backup Bandwidth Throttle -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_backupBandwidthThrottle? BackupBandwidthThrottle { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_backupBandwidthThrottle BackupBandwidthThrottle { get; set; } -#endif - /// Device Backup Usage -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_backupUsage? BackupUsage { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_backupUsage BackupUsage { get; set; } -#endif - /// Location -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_location? Location { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_location Location { get; set; } -#endif - /// Organization -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_organization? Organization { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_organization Organization { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_policy? Policy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_policy Policy { get; set; } -#endif - /// Device Role -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_role? Role { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_role Role { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_rolePolicy? RolePolicy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_rolePolicy RolePolicy { get; set; } -#endif - /// Warranty Info -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_warranty? Warranty { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_warranty Warranty { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DeviceGetResponse_references() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignedOwner", n => { AssignedOwner = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_assignedOwner.CreateFromDiscriminatorValue); } }, - { "backupBandwidthThrottle", n => { BackupBandwidthThrottle = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_backupBandwidthThrottle.CreateFromDiscriminatorValue); } }, - { "backupUsage", n => { BackupUsage = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_backupUsage.CreateFromDiscriminatorValue); } }, - { "location", n => { Location = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_location.CreateFromDiscriminatorValue); } }, - { "organization", n => { Organization = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_organization.CreateFromDiscriminatorValue); } }, - { "policy", n => { Policy = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_policy.CreateFromDiscriminatorValue); } }, - { "role", n => { Role = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_role.CreateFromDiscriminatorValue); } }, - { "rolePolicy", n => { RolePolicy = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_rolePolicy.CreateFromDiscriminatorValue); } }, - { "warranty", n => { Warranty = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_warranty.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assignedOwner", AssignedOwner); - writer.WriteObjectValue("backupBandwidthThrottle", BackupBandwidthThrottle); - writer.WriteObjectValue("backupUsage", BackupUsage); - writer.WriteObjectValue("location", Location); - writer.WriteObjectValue("organization", Organization); - writer.WriteObjectValue("policy", Policy); - writer.WriteObjectValue("role", Role); - writer.WriteObjectValue("rolePolicy", RolePolicy); - writer.WriteObjectValue("warranty", Warranty); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_assignedOwner.cs b/V2/Device/Item/DeviceGetResponse_references_assignedOwner.cs deleted file mode 100644 index d4bc842..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_assignedOwner.cs +++ /dev/null @@ -1,190 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Assigned device owner - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_assignedOwner : 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; } - /// The administrator property - public bool? Administrator { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Device IDs which end-user is authorized to access -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DeviceIds { get; set; } -#nullable restore -#else - public List DeviceIds { get; set; } -#endif - /// The email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The enabled property - public bool? Enabled { get; set; } - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_assignedOwner_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_assignedOwner_fields Fields { get; set; } -#endif - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// The invitationStatus property - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_assignedOwner_invitationStatus? InvitationStatus { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// The mfaConfigured property - public bool? MfaConfigured { get; set; } - /// The mustChangePw property - public bool? MustChangePw { get; set; } - /// The notifyAllClients property - public bool? NotifyAllClients { get; set; } - /// Identifier of organization for end-users - public int? OrganizationId { get; set; } - /// The permitAllClients property - public bool? PermitAllClients { get; set; } - /// The phone property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the user. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// User universally unique identifier - public Guid? Uid { get; set; } - /// The userType property - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_assignedOwner_userType? UserType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DeviceGetResponse_references_assignedOwner() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_assignedOwner CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_assignedOwner(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "administrator", n => { Administrator = n.GetBoolValue(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "deviceIds", n => { DeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_assignedOwner_fields.CreateFromDiscriminatorValue); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "notifyAllClients", n => { NotifyAllClients = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "permitAllClients", n => { PermitAllClients = n.GetBoolValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userType", n => { UserType = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("administrator", Administrator); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteCollectionOfPrimitiveValues("deviceIds", DeviceIds); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteBoolValue("notifyAllClients", NotifyAllClients); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteBoolValue("permitAllClients", PermitAllClients); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteEnumValue("userType", UserType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_assignedOwner_fields.cs b/V2/Device/Item/DeviceGetResponse_references_assignedOwner_fields.cs deleted file mode 100644 index d79e0fc..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_assignedOwner_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_assignedOwner_fields : 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. - /// - public DeviceGetResponse_references_assignedOwner_fields() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_assignedOwner_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_assignedOwner_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_assignedOwner_invitationStatus.cs b/V2/Device/Item/DeviceGetResponse_references_assignedOwner_invitationStatus.cs deleted file mode 100644 index d9c763b..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_assignedOwner_invitationStatus.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DeviceGetResponse_references_assignedOwner_invitationStatus - #pragma warning restore CS1591 - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/DeviceGetResponse_references_assignedOwner_userType.cs b/V2/Device/Item/DeviceGetResponse_references_assignedOwner_userType.cs deleted file mode 100644 index 81903c7..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_assignedOwner_userType.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DeviceGetResponse_references_assignedOwner_userType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/DeviceGetResponse_references_backupBandwidthThrottle.cs b/V2/Device/Item/DeviceGetResponse_references_backupBandwidthThrottle.cs deleted file mode 100644 index 7e1c556..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_backupBandwidthThrottle.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Device Backup Bandwidth Throttle - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_backupBandwidthThrottle : 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; } - /// Whether bandwidth throttle is enabled/true or disabled/false - public bool? Enabled { get; set; } - /// Bandwidth nonwork hours limit - public int? NonWorkHoursKbps { get; set; } - /// Bandwidth nonwork hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NonWorkHoursUserUnit { get; set; } -#nullable restore -#else - public string NonWorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work hours limit - public int? WorkHoursKbps { get; set; } - /// Bandwidth work hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? WorkHoursUserUnit { get; set; } -#nullable restore -#else - public string WorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work schedule -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_backupBandwidthThrottle_workSchedule? WorkSchedule { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_backupBandwidthThrottle_workSchedule WorkSchedule { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DeviceGetResponse_references_backupBandwidthThrottle() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_backupBandwidthThrottle CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_backupBandwidthThrottle(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "nonWorkHoursKbps", n => { NonWorkHoursKbps = n.GetIntValue(); } }, - { "nonWorkHoursUserUnit", n => { NonWorkHoursUserUnit = n.GetStringValue(); } }, - { "workHoursKbps", n => { WorkHoursKbps = n.GetIntValue(); } }, - { "workHoursUserUnit", n => { WorkHoursUserUnit = n.GetStringValue(); } }, - { "workSchedule", n => { WorkSchedule = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_backupBandwidthThrottle_workSchedule.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("nonWorkHoursKbps", NonWorkHoursKbps); - writer.WriteStringValue("nonWorkHoursUserUnit", NonWorkHoursUserUnit); - writer.WriteIntValue("workHoursKbps", WorkHoursKbps); - writer.WriteStringValue("workHoursUserUnit", WorkHoursUserUnit); - writer.WriteObjectValue("workSchedule", WorkSchedule); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_backupBandwidthThrottle_workSchedule.cs b/V2/Device/Item/DeviceGetResponse_references_backupBandwidthThrottle_workSchedule.cs deleted file mode 100644 index c4b64d7..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_backupBandwidthThrottle_workSchedule.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Bandwidth work schedule - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_backupBandwidthThrottle_workSchedule : 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; } - /// Work schedule end hour (0 to 23) - public int? EndHour { get; set; } - /// Work schedule end minute (0 to 59) - public int? EndMinute { get; set; } - /// Work schedule start hour (0 to 23) - public int? StartHour { get; set; } - /// Work schedule start minute (0 to 59) - public int? StartMinute { get; set; } - /// Work schedule week days list -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? WeekDays { get; set; } -#nullable restore -#else - public List WeekDays { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DeviceGetResponse_references_backupBandwidthThrottle_workSchedule() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_backupBandwidthThrottle_workSchedule CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_backupBandwidthThrottle_workSchedule(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endHour", n => { EndHour = n.GetIntValue(); } }, - { "endMinute", n => { EndMinute = n.GetIntValue(); } }, - { "startHour", n => { StartHour = n.GetIntValue(); } }, - { "startMinute", n => { StartMinute = n.GetIntValue(); } }, - { "weekDays", n => { WeekDays = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("endHour", EndHour); - writer.WriteIntValue("endMinute", EndMinute); - writer.WriteIntValue("startHour", StartHour); - writer.WriteIntValue("startMinute", StartMinute); - writer.WriteCollectionOfPrimitiveValues("weekDays", WeekDays); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_backupUsage.cs b/V2/Device/Item/DeviceGetResponse_references_backupUsage.cs deleted file mode 100644 index a1be0ae..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_backupUsage.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Device Backup Usage - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_backupUsage : 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; } - /// Revisions cloud file folder size - public long? CloudFileFolderSize { get; set; } - /// Revisions cloud image size - public long? CloudImageSize { get; set; } - /// Revisions cloud image v2 size - public long? CloudImageV2Size { get; set; } - /// Revisions cloud network share size - public long? CloudNetworkShareSize { get; set; } - /// Revisions cloud total size - public long? CloudTotalSize { get; private set; } - /// Last failed job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastFailedBackupJob { get; set; } - /// Last successful job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastSuccessfulBackupJob { get; set; } - /// Revisions local file folder size - public long? LocalFileFolderSize { get; set; } - /// Revisions local image size - public long? LocalImageSize { get; set; } - /// Revisions local image v2 size - public long? LocalImageV2Size { get; set; } - /// Revisions local total size - public long? LocalTotalSize { get; private set; } - /// Revisions current size - public long? RevisionsCurrentSize { get; set; } - /// Revisions deleted size - public long? RevisionsDeletedSize { get; set; } - /// Revisions previous size - public long? RevisionsPreviousSize { get; set; } - /// Revisions total size - public long? RevisionsTotalSize { get; private set; } - /// - /// Instantiates a new and sets the default values. - /// - public DeviceGetResponse_references_backupUsage() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_backupUsage CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_backupUsage(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cloudFileFolderSize", n => { CloudFileFolderSize = n.GetLongValue(); } }, - { "cloudImageSize", n => { CloudImageSize = n.GetLongValue(); } }, - { "cloudImageV2Size", n => { CloudImageV2Size = n.GetLongValue(); } }, - { "cloudNetworkShareSize", n => { CloudNetworkShareSize = n.GetLongValue(); } }, - { "cloudTotalSize", n => { CloudTotalSize = n.GetLongValue(); } }, - { "lastFailedBackupJob", n => { LastFailedBackupJob = n.GetDoubleValue(); } }, - { "lastSuccessfulBackupJob", n => { LastSuccessfulBackupJob = n.GetDoubleValue(); } }, - { "localFileFolderSize", n => { LocalFileFolderSize = n.GetLongValue(); } }, - { "localImageSize", n => { LocalImageSize = n.GetLongValue(); } }, - { "localImageV2Size", n => { LocalImageV2Size = n.GetLongValue(); } }, - { "localTotalSize", n => { LocalTotalSize = n.GetLongValue(); } }, - { "revisionsCurrentSize", n => { RevisionsCurrentSize = n.GetLongValue(); } }, - { "revisionsDeletedSize", n => { RevisionsDeletedSize = n.GetLongValue(); } }, - { "revisionsPreviousSize", n => { RevisionsPreviousSize = n.GetLongValue(); } }, - { "revisionsTotalSize", n => { RevisionsTotalSize = n.GetLongValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteLongValue("cloudFileFolderSize", CloudFileFolderSize); - writer.WriteLongValue("cloudImageSize", CloudImageSize); - writer.WriteLongValue("cloudImageV2Size", CloudImageV2Size); - writer.WriteLongValue("cloudNetworkShareSize", CloudNetworkShareSize); - writer.WriteDoubleValue("lastFailedBackupJob", LastFailedBackupJob); - writer.WriteDoubleValue("lastSuccessfulBackupJob", LastSuccessfulBackupJob); - writer.WriteLongValue("localFileFolderSize", LocalFileFolderSize); - writer.WriteLongValue("localImageSize", LocalImageSize); - writer.WriteLongValue("localImageV2Size", LocalImageV2Size); - writer.WriteLongValue("revisionsCurrentSize", RevisionsCurrentSize); - writer.WriteLongValue("revisionsDeletedSize", RevisionsDeletedSize); - writer.WriteLongValue("revisionsPreviousSize", RevisionsPreviousSize); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_location.cs b/V2/Device/Item/DeviceGetResponse_references_location.cs deleted file mode 100644 index fb3e4f6..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_location.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_location : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_location_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_location_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_location_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_location_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DeviceGetResponse_references_location() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_location CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_location(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_location_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_location_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_location_fields.cs b/V2/Device/Item/DeviceGetResponse_references_location_fields.cs deleted file mode 100644 index aad7956..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_location_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_location_fields : 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. - /// - public DeviceGetResponse_references_location_fields() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_location_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_location_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_location_userData.cs b/V2/Device/Item/DeviceGetResponse_references_location_userData.cs deleted file mode 100644 index 218e36d..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_location_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_location_userData : 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. - /// - public DeviceGetResponse_references_location_userData() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_location_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_location_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_organization.cs b/V2/Device/Item/DeviceGetResponse_references_organization.cs deleted file mode 100644 index 70e5ddb..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_organization.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_organization : 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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_organization_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_organization_fields Fields { get; set; } -#endif - /// Organization identifier - public int? Id { get; set; } - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_organization_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_organization_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_organization_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DeviceGetResponse_references_organization() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_organization CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_organization(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_organization_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_organization_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_organization_fields.cs b/V2/Device/Item/DeviceGetResponse_references_organization_fields.cs deleted file mode 100644 index a40a13e..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_organization_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_organization_fields : 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. - /// - public DeviceGetResponse_references_organization_fields() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_organization_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_organization_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_organization_nodeApprovalMode.cs b/V2/Device/Item/DeviceGetResponse_references_organization_nodeApprovalMode.cs deleted file mode 100644 index d94aae1..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_organization_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceGetResponse_references_organization_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/DeviceGetResponse_references_organization_userData.cs b/V2/Device/Item/DeviceGetResponse_references_organization_userData.cs deleted file mode 100644 index 3cb75d2..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_organization_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_organization_userData : 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. - /// - public DeviceGetResponse_references_organization_userData() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_organization_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_organization_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_policy.cs b/V2/Device/Item/DeviceGetResponse_references_policy.cs deleted file mode 100644 index 8933cba..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_policy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_policy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_policy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_policy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_policy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DeviceGetResponse_references_policy() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_policy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_policy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_policy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_policy_fields.cs b/V2/Device/Item/DeviceGetResponse_references_policy_fields.cs deleted file mode 100644 index 016a327..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_policy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_policy_fields : 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. - /// - public DeviceGetResponse_references_policy_fields() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_policy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_policy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_policy_nodeClass.cs b/V2/Device/Item/DeviceGetResponse_references_policy_nodeClass.cs deleted file mode 100644 index 1ee0588..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_policy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceGetResponse_references_policy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/DeviceGetResponse_references_role.cs b/V2/Device/Item/DeviceGetResponse_references_role.cs deleted file mode 100644 index 2b92669..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_role.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Device Role - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_role : 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; } - /// Chassis Type - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_role_chassisType? ChassisType { get; set; } - /// Date created - public double? Created { get; set; } - /// Is custom node role? - public bool? Custom { get; set; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_role_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_role_fields Fields { get; set; } -#endif - /// Icon -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Icon { get; set; } -#nullable restore -#else - public string Icon { get; set; } -#endif - /// Device Role identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_role_nodeClass? NodeClass { get; set; } - /// Node Role Parent Id - public int? NodeRoleParentId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DeviceGetResponse_references_role() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_role CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_role(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "chassisType", n => { ChassisType = n.GetEnumValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "custom", n => { Custom = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_role_fields.CreateFromDiscriminatorValue); } }, - { "icon", n => { Icon = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleParentId", n => { NodeRoleParentId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("chassisType", ChassisType); - writer.WriteDoubleValue("created", Created); - writer.WriteBoolValue("custom", Custom); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("icon", Icon); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleParentId", NodeRoleParentId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_rolePolicy.cs b/V2/Device/Item/DeviceGetResponse_references_rolePolicy.cs deleted file mode 100644 index f5c85d8..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_rolePolicy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_rolePolicy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_rolePolicy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_rolePolicy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_rolePolicy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DeviceGetResponse_references_rolePolicy() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_rolePolicy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_rolePolicy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_rolePolicy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_rolePolicy_fields.cs b/V2/Device/Item/DeviceGetResponse_references_rolePolicy_fields.cs deleted file mode 100644 index 857a996..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_rolePolicy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_rolePolicy_fields : 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. - /// - public DeviceGetResponse_references_rolePolicy_fields() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_rolePolicy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_rolePolicy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_rolePolicy_nodeClass.cs b/V2/Device/Item/DeviceGetResponse_references_rolePolicy_nodeClass.cs deleted file mode 100644 index 6590ac0..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_rolePolicy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceGetResponse_references_rolePolicy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/DeviceGetResponse_references_role_chassisType.cs b/V2/Device/Item/DeviceGetResponse_references_role_chassisType.cs deleted file mode 100644 index 2f19ee5..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_role_chassisType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// Chassis Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceGetResponse_references_role_chassisType - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "DESKTOP")] - #pragma warning disable CS1591 - DESKTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "LAPTOP")] - #pragma warning disable CS1591 - LAPTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "MOBILE")] - #pragma warning disable CS1591 - MOBILE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/DeviceGetResponse_references_role_fields.cs b/V2/Device/Item/DeviceGetResponse_references_role_fields.cs deleted file mode 100644 index 68c2a19..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_role_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_role_fields : 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. - /// - public DeviceGetResponse_references_role_fields() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_role_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_role_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_references_role_nodeClass.cs b/V2/Device/Item/DeviceGetResponse_references_role_nodeClass.cs deleted file mode 100644 index 39517b3..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_role_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceGetResponse_references_role_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/DeviceGetResponse_references_warranty.cs b/V2/Device/Item/DeviceGetResponse_references_warranty.cs deleted file mode 100644 index 0396e7e..0000000 --- a/V2/Device/Item/DeviceGetResponse_references_warranty.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Warranty Info - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_references_warranty : 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; } - /// Warranty End Date (Seconds) - public double? EndDate { get; set; } - /// Manufacturer Fulfillment Date - public double? ManufacturerFulfillmentDate { get; set; } - /// Warranty Start Date (Seconds) - public double? StartDate { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DeviceGetResponse_references_warranty() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_warranty CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_references_warranty(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endDate", n => { EndDate = n.GetDoubleValue(); } }, - { "manufacturerFulfillmentDate", n => { ManufacturerFulfillmentDate = n.GetDoubleValue(); } }, - { "startDate", n => { StartDate = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("endDate", EndDate); - writer.WriteDoubleValue("manufacturerFulfillmentDate", ManufacturerFulfillmentDate); - writer.WriteDoubleValue("startDate", StartDate); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceGetResponse_userData.cs b/V2/Device/Item/DeviceGetResponse_userData.cs deleted file mode 100644 index 0fadc13..0000000 --- a/V2/Device/Item/DeviceGetResponse_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceGetResponse_userData : 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. - /// - public DeviceGetResponse_userData() - { - 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::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceItemRequestBuilder.cs b/V2/Device/Item/DeviceItemRequestBuilder.cs deleted file mode 100644 index f8b4f02..0000000 --- a/V2/Device/Item/DeviceItemRequestBuilder.cs +++ /dev/null @@ -1,303 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Device.Item.Activities; -using NinjaOne.Client.V2.Device.Item.Alerts; -using NinjaOne.Client.V2.Device.Item.CustomFields; -using NinjaOne.Client.V2.Device.Item.DashboardUrl; -using NinjaOne.Client.V2.Device.Item.Disks; -using NinjaOne.Client.V2.Device.Item.Jobs; -using NinjaOne.Client.V2.Device.Item.LastLoggedOnUser; -using NinjaOne.Client.V2.Device.Item.Maintenance; -using NinjaOne.Client.V2.Device.Item.NetworkInterfaces; -using NinjaOne.Client.V2.Device.Item.OsPatchInstalls; -using NinjaOne.Client.V2.Device.Item.OsPatches; -using NinjaOne.Client.V2.Device.Item.Owner; -using NinjaOne.Client.V2.Device.Item.Patch; -using NinjaOne.Client.V2.Device.Item.Policy; -using NinjaOne.Client.V2.Device.Item.Processors; -using NinjaOne.Client.V2.Device.Item.Reboot; -using NinjaOne.Client.V2.Device.Item.Script; -using NinjaOne.Client.V2.Device.Item.Scripting; -using NinjaOne.Client.V2.Device.Item.Software; -using NinjaOne.Client.V2.Device.Item.SoftwarePatchInstalls; -using NinjaOne.Client.V2.Device.Item.SoftwarePatches; -using NinjaOne.Client.V2.Device.Item.Volumes; -using NinjaOne.Client.V2.Device.Item.WindowsService; -using NinjaOne.Client.V2.Device.Item.WindowsServices; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Builds and executes requests for operations under \v2\device\{id} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceItemRequestBuilder : BaseRequestBuilder - { - /// The activities property - public global::NinjaOne.Client.V2.Device.Item.Activities.ActivitiesRequestBuilder Activities - { - get => new global::NinjaOne.Client.V2.Device.Item.Activities.ActivitiesRequestBuilder(PathParameters, RequestAdapter); - } - /// The alerts property - public global::NinjaOne.Client.V2.Device.Item.Alerts.AlertsRequestBuilder Alerts - { - get => new global::NinjaOne.Client.V2.Device.Item.Alerts.AlertsRequestBuilder(PathParameters, RequestAdapter); - } - /// The customFields property - public global::NinjaOne.Client.V2.Device.Item.CustomFields.CustomFieldsRequestBuilder CustomFields - { - get => new global::NinjaOne.Client.V2.Device.Item.CustomFields.CustomFieldsRequestBuilder(PathParameters, RequestAdapter); - } - /// The dashboardUrl property - public global::NinjaOne.Client.V2.Device.Item.DashboardUrl.DashboardUrlRequestBuilder DashboardUrl - { - get => new global::NinjaOne.Client.V2.Device.Item.DashboardUrl.DashboardUrlRequestBuilder(PathParameters, RequestAdapter); - } - /// The disks property - public global::NinjaOne.Client.V2.Device.Item.Disks.DisksRequestBuilder Disks - { - get => new global::NinjaOne.Client.V2.Device.Item.Disks.DisksRequestBuilder(PathParameters, RequestAdapter); - } - /// The jobs property - public global::NinjaOne.Client.V2.Device.Item.Jobs.JobsRequestBuilder Jobs - { - get => new global::NinjaOne.Client.V2.Device.Item.Jobs.JobsRequestBuilder(PathParameters, RequestAdapter); - } - /// The lastLoggedOnUser property - public global::NinjaOne.Client.V2.Device.Item.LastLoggedOnUser.LastLoggedOnUserRequestBuilder LastLoggedOnUser - { - get => new global::NinjaOne.Client.V2.Device.Item.LastLoggedOnUser.LastLoggedOnUserRequestBuilder(PathParameters, RequestAdapter); - } - /// The maintenance property - public global::NinjaOne.Client.V2.Device.Item.Maintenance.MaintenanceRequestBuilder Maintenance - { - get => new global::NinjaOne.Client.V2.Device.Item.Maintenance.MaintenanceRequestBuilder(PathParameters, RequestAdapter); - } - /// The networkInterfaces property - public global::NinjaOne.Client.V2.Device.Item.NetworkInterfaces.NetworkInterfacesRequestBuilder NetworkInterfaces - { - get => new global::NinjaOne.Client.V2.Device.Item.NetworkInterfaces.NetworkInterfacesRequestBuilder(PathParameters, RequestAdapter); - } - /// The osPatches property - public global::NinjaOne.Client.V2.Device.Item.OsPatches.OsPatchesRequestBuilder OsPatches - { - get => new global::NinjaOne.Client.V2.Device.Item.OsPatches.OsPatchesRequestBuilder(PathParameters, RequestAdapter); - } - /// The osPatchInstalls property - public global::NinjaOne.Client.V2.Device.Item.OsPatchInstalls.OsPatchInstallsRequestBuilder OsPatchInstalls - { - get => new global::NinjaOne.Client.V2.Device.Item.OsPatchInstalls.OsPatchInstallsRequestBuilder(PathParameters, RequestAdapter); - } - /// The owner property - public global::NinjaOne.Client.V2.Device.Item.Owner.OwnerRequestBuilder Owner - { - get => new global::NinjaOne.Client.V2.Device.Item.Owner.OwnerRequestBuilder(PathParameters, RequestAdapter); - } - /// The patchPath property - public global::NinjaOne.Client.V2.Device.Item.Patch.PatchRequestBuilder PatchPath - { - get => new global::NinjaOne.Client.V2.Device.Item.Patch.PatchRequestBuilder(PathParameters, RequestAdapter); - } - /// The policy property - public global::NinjaOne.Client.V2.Device.Item.Policy.PolicyRequestBuilder Policy - { - get => new global::NinjaOne.Client.V2.Device.Item.Policy.PolicyRequestBuilder(PathParameters, RequestAdapter); - } - /// The processors property - public global::NinjaOne.Client.V2.Device.Item.Processors.ProcessorsRequestBuilder Processors - { - get => new global::NinjaOne.Client.V2.Device.Item.Processors.ProcessorsRequestBuilder(PathParameters, RequestAdapter); - } - /// The reboot property - public global::NinjaOne.Client.V2.Device.Item.Reboot.RebootRequestBuilder Reboot - { - get => new global::NinjaOne.Client.V2.Device.Item.Reboot.RebootRequestBuilder(PathParameters, RequestAdapter); - } - /// The script property - public global::NinjaOne.Client.V2.Device.Item.Script.ScriptRequestBuilder Script - { - get => new global::NinjaOne.Client.V2.Device.Item.Script.ScriptRequestBuilder(PathParameters, RequestAdapter); - } - /// The scripting property - public global::NinjaOne.Client.V2.Device.Item.Scripting.ScriptingRequestBuilder Scripting - { - get => new global::NinjaOne.Client.V2.Device.Item.Scripting.ScriptingRequestBuilder(PathParameters, RequestAdapter); - } - /// The software property - public global::NinjaOne.Client.V2.Device.Item.Software.SoftwareRequestBuilder Software - { - get => new global::NinjaOne.Client.V2.Device.Item.Software.SoftwareRequestBuilder(PathParameters, RequestAdapter); - } - /// The softwarePatches property - public global::NinjaOne.Client.V2.Device.Item.SoftwarePatches.SoftwarePatchesRequestBuilder SoftwarePatches - { - get => new global::NinjaOne.Client.V2.Device.Item.SoftwarePatches.SoftwarePatchesRequestBuilder(PathParameters, RequestAdapter); - } - /// The softwarePatchInstalls property - public global::NinjaOne.Client.V2.Device.Item.SoftwarePatchInstalls.SoftwarePatchInstallsRequestBuilder SoftwarePatchInstalls - { - get => new global::NinjaOne.Client.V2.Device.Item.SoftwarePatchInstalls.SoftwarePatchInstallsRequestBuilder(PathParameters, RequestAdapter); - } - /// The volumes property - public global::NinjaOne.Client.V2.Device.Item.Volumes.VolumesRequestBuilder Volumes - { - get => new global::NinjaOne.Client.V2.Device.Item.Volumes.VolumesRequestBuilder(PathParameters, RequestAdapter); - } - /// The windowsService property - public global::NinjaOne.Client.V2.Device.Item.WindowsService.WindowsServiceRequestBuilder WindowsService - { - get => new global::NinjaOne.Client.V2.Device.Item.WindowsService.WindowsServiceRequestBuilder(PathParameters, RequestAdapter); - } - /// The windowsServices property - public global::NinjaOne.Client.V2.Device.Item.WindowsServices.WindowsServicesRequestBuilder WindowsServices - { - get => new global::NinjaOne.Client.V2.Device.Item.WindowsServices.WindowsServicesRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DeviceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DeviceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}", rawUrl) - { - } - /// - /// Returns device details - /// - /// 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 GetAsDeviceGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsDeviceGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns device details - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use GetAsDeviceGetResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Device.Item.DeviceResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Change device friendly name, user data, etc. - /// - /// A - /// The request body - /// 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 PatchAsync(global::NinjaOne.Client.V2.Device.Item.DevicePatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::NinjaOne.Client.V2.Device.Item.DevicePatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns device details - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Change device friendly name, user data, etc. - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Device.Item.DevicePatchRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Device.Item.DevicePatchRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.DeviceItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.DeviceItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceItemRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DevicePatchRequestBody.cs b/V2/Device/Item/DevicePatchRequestBody.cs deleted file mode 100644 index 92083eb..0000000 --- a/V2/Device/Item/DevicePatchRequestBody.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DevicePatchRequestBody : 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; } - /// Display name (User assigned) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// Location identifier - public int? LocationId { get; set; } - /// Node Role identifier - public int? NodeRoleId { get; set; } - /// Organization identifier - public int? OrganizationId { get; set; } - /// Assigned policy ID (overrides organization policy mapping, or reverts to organization policy if Null) - public int? PolicyId { get; set; } - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DevicePatchRequestBody_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DevicePatchRequestBody_userData UserData { get; set; } -#endif - /// Warranty Info -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.DevicePatchRequestBody_warranty? Warranty { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.DevicePatchRequestBody_warranty Warranty { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DevicePatchRequestBody() - { - 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::NinjaOne.Client.V2.Device.Item.DevicePatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DevicePatchRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DevicePatchRequestBody_userData.CreateFromDiscriminatorValue); } }, - { "warranty", n => { Warranty = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.DevicePatchRequestBody_warranty.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteIntValue("locationId", LocationId); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteObjectValue("userData", UserData); - writer.WriteObjectValue("warranty", Warranty); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DevicePatchRequestBody_userData.cs b/V2/Device/Item/DevicePatchRequestBody_userData.cs deleted file mode 100644 index a874eb2..0000000 --- a/V2/Device/Item/DevicePatchRequestBody_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicePatchRequestBody_userData : 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. - /// - public DevicePatchRequestBody_userData() - { - 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::NinjaOne.Client.V2.Device.Item.DevicePatchRequestBody_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DevicePatchRequestBody_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DevicePatchRequestBody_warranty.cs b/V2/Device/Item/DevicePatchRequestBody_warranty.cs deleted file mode 100644 index cf9e817..0000000 --- a/V2/Device/Item/DevicePatchRequestBody_warranty.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - /// - /// Warranty Info - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicePatchRequestBody_warranty : 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; } - /// Warranty End Date (Seconds) - public double? EndDate { get; set; } - /// Manufacturer Fulfillment Date - public double? ManufacturerFulfillmentDate { get; set; } - /// Warranty Start Date (Seconds) - public double? StartDate { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DevicePatchRequestBody_warranty() - { - 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::NinjaOne.Client.V2.Device.Item.DevicePatchRequestBody_warranty CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DevicePatchRequestBody_warranty(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endDate", n => { EndDate = n.GetDoubleValue(); } }, - { "manufacturerFulfillmentDate", n => { ManufacturerFulfillmentDate = n.GetDoubleValue(); } }, - { "startDate", n => { StartDate = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("endDate", EndDate); - writer.WriteDoubleValue("manufacturerFulfillmentDate", ManufacturerFulfillmentDate); - writer.WriteDoubleValue("startDate", StartDate); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/DeviceResponse.cs b/V2/Device/Item/DeviceResponse.cs deleted file mode 100644 index b0e506f..0000000 --- a/V2/Device/Item/DeviceResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item -{ - [Obsolete("This class is obsolete. Use DeviceGetResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceResponse : global::NinjaOne.Client.V2.Device.Item.DeviceGetResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.Device.Item.DeviceResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.DeviceResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Disks/Disks.cs b/V2/Device/Item/Disks/Disks.cs deleted file mode 100644 index 5a274eb..0000000 --- a/V2/Device/Item/Disks/Disks.cs +++ /dev/null @@ -1,154 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Disks -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Disks : 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; } - /// Number of bytes per sector - public int? BytesPerSector { get; set; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Interface type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? InterfaceType { get; set; } -#nullable restore -#else - public string InterfaceType { get; set; } -#endif - /// Manufacturer -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Manufacturer { get; set; } -#nullable restore -#else - public string Manufacturer { get; set; } -#endif - /// Media Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MediaType { get; set; } -#nullable restore -#else - public string MediaType { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Model -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Model { get; set; } -#nullable restore -#else - public string Model { get; set; } -#endif - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Number of partitions - public int? PartitionCount { get; set; } - /// Serial number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SerialNumber { get; set; } -#nullable restore -#else - public string SerialNumber { get; set; } -#endif - /// Size (Bytes) - public long? Size { get; set; } - /// Is S.M.A.R.T. capable? - public bool? SmartCapable { get; set; } - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Disks() - { - 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::NinjaOne.Client.V2.Device.Item.Disks.Disks CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Disks.Disks(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "bytesPerSector", n => { BytesPerSector = n.GetIntValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "interfaceType", n => { InterfaceType = n.GetStringValue(); } }, - { "manufacturer", n => { Manufacturer = n.GetStringValue(); } }, - { "mediaType", n => { MediaType = n.GetStringValue(); } }, - { "model", n => { Model = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "partitionCount", n => { PartitionCount = n.GetIntValue(); } }, - { "serialNumber", n => { SerialNumber = n.GetStringValue(); } }, - { "size", n => { Size = n.GetLongValue(); } }, - { "smartCapable", n => { SmartCapable = n.GetBoolValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("bytesPerSector", BytesPerSector); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("interfaceType", InterfaceType); - writer.WriteStringValue("manufacturer", Manufacturer); - writer.WriteStringValue("mediaType", MediaType); - writer.WriteStringValue("model", Model); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("partitionCount", PartitionCount); - writer.WriteStringValue("serialNumber", SerialNumber); - writer.WriteLongValue("size", Size); - writer.WriteBoolValue("smartCapable", SmartCapable); - writer.WriteStringValue("status", Status); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Disks/DisksRequestBuilder.cs b/V2/Device/Item/Disks/DisksRequestBuilder.cs deleted file mode 100644 index 6134638..0000000 --- a/V2/Device/Item/Disks/DisksRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Disks -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\disks - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DisksRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DisksRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/disks", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DisksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/disks", rawUrl) - { - } - /// - /// Returns device disks' details - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Device.Item.Disks.Disks.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns device disks' details - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Disks.DisksRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Disks.DisksRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DisksRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs.cs b/V2/Device/Item/Jobs/Jobs.cs deleted file mode 100644 index d2ab2fc..0000000 --- a/V2/Device/Item/Jobs/Jobs.cs +++ /dev/null @@ -1,162 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Jobs : 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; } - /// Job start timestamp - public double? CreateTime { get; set; } - /// Job data -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_data? DataEscaped { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_data DataEscaped { get; set; } -#endif - /// Device information. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device? Device { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device Device { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// Job result - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_jobResult? JobResult { get; set; } - /// Job Status - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_jobStatus? JobStatus { get; set; } - /// Job Type - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_jobType? JobType { get; set; } - /// The primary error message. - public override string Message { get => MessageEscaped ?? string.Empty; } - /// Job message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif - /// Related PSA ticket ID -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_psaTicketId? PsaTicketId { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_psaTicketId PsaTicketId { get; set; } -#endif - /// Source configuration/policy element reference - public Guid? SourceConfigUid { get; set; } - /// Source configuration/policy element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SourceName { get; set; } -#nullable restore -#else - public string SourceName { get; set; } -#endif - /// Job origin - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_sourceType? SourceType { get; set; } - /// Job subject -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subject { get; set; } -#nullable restore -#else - public string Subject { get; set; } -#endif - /// PSA ticket template - public int? TicketTemplateId { get; set; } - /// Task/Job UID (activity series UID) - public Guid? Uid { get; set; } - /// Job last updated - public double? UpdateTime { get; set; } - /// User identifier - public int? UserId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Jobs() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "data", n => { DataEscaped = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_data.CreateFromDiscriminatorValue); } }, - { "device", n => { Device = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device.CreateFromDiscriminatorValue); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "jobResult", n => { JobResult = n.GetEnumValue(); } }, - { "jobStatus", n => { JobStatus = n.GetEnumValue(); } }, - { "jobType", n => { JobType = n.GetEnumValue(); } }, - { "message", n => { MessageEscaped = n.GetStringValue(); } }, - { "psaTicketId", n => { PsaTicketId = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_psaTicketId.CreateFromDiscriminatorValue); } }, - { "sourceConfigUid", n => { SourceConfigUid = n.GetGuidValue(); } }, - { "sourceName", n => { SourceName = n.GetStringValue(); } }, - { "sourceType", n => { SourceType = n.GetEnumValue(); } }, - { "subject", n => { Subject = n.GetStringValue(); } }, - { "ticketTemplateId", n => { TicketTemplateId = n.GetIntValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "userId", n => { UserId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteObjectValue("data", DataEscaped); - writer.WriteObjectValue("device", Device); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteEnumValue("jobResult", JobResult); - writer.WriteEnumValue("jobStatus", JobStatus); - writer.WriteEnumValue("jobType", JobType); - writer.WriteStringValue("message", MessageEscaped); - writer.WriteObjectValue("psaTicketId", PsaTicketId); - writer.WriteGuidValue("sourceConfigUid", SourceConfigUid); - writer.WriteStringValue("sourceName", SourceName); - writer.WriteEnumValue("sourceType", SourceType); - writer.WriteStringValue("subject", Subject); - writer.WriteIntValue("ticketTemplateId", TicketTemplateId); - writer.WriteGuidValue("uid", Uid); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteIntValue("userId", UserId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/JobsRequestBuilder.cs b/V2/Device/Item/Jobs/JobsRequestBuilder.cs deleted file mode 100644 index 4657088..0000000 --- a/V2/Device/Item/Jobs/JobsRequestBuilder.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\jobs - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class JobsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public JobsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/jobs{?lang*,tz*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public JobsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/jobs{?lang*,tz*}", rawUrl) - { - } - /// - /// Returns currently running jobs for device - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns currently running jobs for device - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Jobs.JobsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Jobs.JobsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns currently running jobs for device - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class JobsRequestBuilderGetQueryParameters - { -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("lang")] - public string? Lang { get; set; } -#nullable restore -#else - [QueryParameter("lang")] - public string Lang { get; set; } -#endif - /// Time Zone -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("tz")] - public string? Tz { get; set; } -#nullable restore -#else - [QueryParameter("tz")] - public string Tz { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class JobsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_data.cs b/V2/Device/Item/Jobs/Jobs_data.cs deleted file mode 100644 index b99940d..0000000 --- a/V2/Device/Item/Jobs/Jobs_data.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Job data - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_data : 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. - /// - public Jobs_data() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_data CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_data(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device.cs b/V2/Device/Item/Jobs/Jobs_device.cs deleted file mode 100644 index ba6cb36..0000000 --- a/V2/Device/Item/Jobs/Jobs_device.cs +++ /dev/null @@ -1,206 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Device information. - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device : 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; } - /// Approval Status - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_approvalStatus? ApprovalStatus { get; set; } - /// Node (Device) Owner UUID - public Guid? AssignedOwnerUid { get; set; } - /// Created - public double? Created { get; set; } - /// Display Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// DNS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DnsName { get; set; } -#nullable restore -#else - public string DnsName { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_fields Fields { get; set; } -#endif - /// Node (Device) identifier - public int? Id { get; set; } - /// Last Contact - public double? LastContact { get; set; } - /// Last data submission timestamp - public double? LastUpdate { get; set; } - /// Location identifier - public int? LocationId { get; set; } - /// Maintenance mode status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_maintenance? Maintenance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_maintenance Maintenance { get; set; } -#endif - /// NETBIOS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NetbiosName { get; set; } -#nullable restore -#else - public string NetbiosName { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_nodeClass? NodeClass { get; set; } - /// Node Role identifier - public int? NodeRoleId { get; set; } - /// Is Offline? - public bool? Offline { get; set; } - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent Node identifier - public int? ParentDeviceId { get; set; } - /// Assigned policy ID (overrides organization and location policy mapping) - public int? PolicyId { get; set; } - /// Expanded entity references -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references? References { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references References { get; set; } -#endif - /// Node Role policy ID based on organization and location Policy Mapping - public int? RolePolicyId { get; set; } - /// System Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SystemName { get; set; } -#nullable restore -#else - public string SystemName { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Node (Device) UUID - public Guid? Uid { get; set; } - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "approvalStatus", n => { ApprovalStatus = n.GetEnumValue(); } }, - { "assignedOwnerUid", n => { AssignedOwnerUid = n.GetGuidValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "dnsName", n => { DnsName = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastContact", n => { LastContact = n.GetDoubleValue(); } }, - { "lastUpdate", n => { LastUpdate = n.GetDoubleValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "maintenance", n => { Maintenance = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_maintenance.CreateFromDiscriminatorValue); } }, - { "netbiosName", n => { NetbiosName = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "offline", n => { Offline = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentDeviceId", n => { ParentDeviceId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - { "references", n => { References = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references.CreateFromDiscriminatorValue); } }, - { "rolePolicyId", n => { RolePolicyId = n.GetIntValue(); } }, - { "systemName", n => { SystemName = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("approvalStatus", ApprovalStatus); - writer.WriteGuidValue("assignedOwnerUid", AssignedOwnerUid); - writer.WriteDoubleValue("created", Created); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("dnsName", DnsName); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteDoubleValue("lastContact", LastContact); - writer.WriteDoubleValue("lastUpdate", LastUpdate); - writer.WriteIntValue("locationId", LocationId); - writer.WriteObjectValue("maintenance", Maintenance); - writer.WriteStringValue("netbiosName", NetbiosName); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteBoolValue("offline", Offline); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentDeviceId", ParentDeviceId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteObjectValue("references", References); - writer.WriteIntValue("rolePolicyId", RolePolicyId); - writer.WriteStringValue("systemName", SystemName); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_approvalStatus.cs b/V2/Device/Item/Jobs/Jobs_device_approvalStatus.cs deleted file mode 100644 index f23e83d..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_approvalStatus.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// Approval Status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_device_approvalStatus - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "APPROVED")] - #pragma warning disable CS1591 - APPROVED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Jobs/Jobs_device_fields.cs b/V2/Device/Item/Jobs/Jobs_device_fields.cs deleted file mode 100644 index a674d90..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_fields : 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. - /// - public Jobs_device_fields() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_maintenance.cs b/V2/Device/Item/Jobs/Jobs_device_maintenance.cs deleted file mode 100644 index c6f7ed4..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_maintenance.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Maintenance mode status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_maintenance : 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; } - /// Maintenance mode end time - public double? End { get; set; } - /// Maintenance reason message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ReasonMessage { get; set; } -#nullable restore -#else - public string ReasonMessage { get; set; } -#endif - /// Maintenance mode start time - public double? Start { get; set; } - /// Maintenance mode status - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_maintenance_status? Status { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_maintenance() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_maintenance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_maintenance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "end", n => { End = n.GetDoubleValue(); } }, - { "reasonMessage", n => { ReasonMessage = n.GetStringValue(); } }, - { "start", n => { Start = n.GetDoubleValue(); } }, - { "status", n => { Status = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("end", End); - writer.WriteStringValue("reasonMessage", ReasonMessage); - writer.WriteDoubleValue("start", Start); - writer.WriteEnumValue("status", Status); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_maintenance_status.cs b/V2/Device/Item/Jobs/Jobs_device_maintenance_status.cs deleted file mode 100644 index 3452119..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_maintenance_status.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// Maintenance mode status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_device_maintenance_status - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_MAINTENANCE")] - #pragma warning disable CS1591 - IN_MAINTENANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILED")] - #pragma warning disable CS1591 - FAILED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Jobs/Jobs_device_nodeClass.cs b/V2/Device/Item/Jobs/Jobs_device_nodeClass.cs deleted file mode 100644 index 1c2ead2..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_device_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Jobs/Jobs_device_references.cs b/V2/Device/Item/Jobs/Jobs_device_references.cs deleted file mode 100644 index 83cc85b..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Expanded entity references - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references : 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; } - /// Assigned device owner -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_assignedOwner? AssignedOwner { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_assignedOwner AssignedOwner { get; set; } -#endif - /// Device Backup Bandwidth Throttle -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_backupBandwidthThrottle? BackupBandwidthThrottle { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_backupBandwidthThrottle BackupBandwidthThrottle { get; set; } -#endif - /// Device Backup Usage -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_backupUsage? BackupUsage { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_backupUsage BackupUsage { get; set; } -#endif - /// Location -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_location? Location { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_location Location { get; set; } -#endif - /// Organization -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_organization? Organization { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_organization Organization { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_policy? Policy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_policy Policy { get; set; } -#endif - /// Device Role -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_role? Role { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_role Role { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_rolePolicy? RolePolicy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_rolePolicy RolePolicy { get; set; } -#endif - /// Warranty Info -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_warranty? Warranty { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_warranty Warranty { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignedOwner", n => { AssignedOwner = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_assignedOwner.CreateFromDiscriminatorValue); } }, - { "backupBandwidthThrottle", n => { BackupBandwidthThrottle = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_backupBandwidthThrottle.CreateFromDiscriminatorValue); } }, - { "backupUsage", n => { BackupUsage = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_backupUsage.CreateFromDiscriminatorValue); } }, - { "location", n => { Location = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_location.CreateFromDiscriminatorValue); } }, - { "organization", n => { Organization = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_organization.CreateFromDiscriminatorValue); } }, - { "policy", n => { Policy = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_policy.CreateFromDiscriminatorValue); } }, - { "role", n => { Role = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_role.CreateFromDiscriminatorValue); } }, - { "rolePolicy", n => { RolePolicy = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_rolePolicy.CreateFromDiscriminatorValue); } }, - { "warranty", n => { Warranty = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_warranty.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assignedOwner", AssignedOwner); - writer.WriteObjectValue("backupBandwidthThrottle", BackupBandwidthThrottle); - writer.WriteObjectValue("backupUsage", BackupUsage); - writer.WriteObjectValue("location", Location); - writer.WriteObjectValue("organization", Organization); - writer.WriteObjectValue("policy", Policy); - writer.WriteObjectValue("role", Role); - writer.WriteObjectValue("rolePolicy", RolePolicy); - writer.WriteObjectValue("warranty", Warranty); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_assignedOwner.cs b/V2/Device/Item/Jobs/Jobs_device_references_assignedOwner.cs deleted file mode 100644 index 3a465e5..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_assignedOwner.cs +++ /dev/null @@ -1,190 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Assigned device owner - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_assignedOwner : 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; } - /// The administrator property - public bool? Administrator { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Device IDs which end-user is authorized to access -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DeviceIds { get; set; } -#nullable restore -#else - public List DeviceIds { get; set; } -#endif - /// The email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The enabled property - public bool? Enabled { get; set; } - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_assignedOwner_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_assignedOwner_fields Fields { get; set; } -#endif - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// The invitationStatus property - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_assignedOwner_invitationStatus? InvitationStatus { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// The mfaConfigured property - public bool? MfaConfigured { get; set; } - /// The mustChangePw property - public bool? MustChangePw { get; set; } - /// The notifyAllClients property - public bool? NotifyAllClients { get; set; } - /// Identifier of organization for end-users - public int? OrganizationId { get; set; } - /// The permitAllClients property - public bool? PermitAllClients { get; set; } - /// The phone property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the user. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// User universally unique identifier - public Guid? Uid { get; set; } - /// The userType property - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_assignedOwner_userType? UserType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_assignedOwner() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_assignedOwner CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_assignedOwner(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "administrator", n => { Administrator = n.GetBoolValue(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "deviceIds", n => { DeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_assignedOwner_fields.CreateFromDiscriminatorValue); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "notifyAllClients", n => { NotifyAllClients = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "permitAllClients", n => { PermitAllClients = n.GetBoolValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userType", n => { UserType = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("administrator", Administrator); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteCollectionOfPrimitiveValues("deviceIds", DeviceIds); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteBoolValue("notifyAllClients", NotifyAllClients); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteBoolValue("permitAllClients", PermitAllClients); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteEnumValue("userType", UserType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_assignedOwner_fields.cs b/V2/Device/Item/Jobs/Jobs_device_references_assignedOwner_fields.cs deleted file mode 100644 index 002ea35..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_assignedOwner_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_assignedOwner_fields : 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. - /// - public Jobs_device_references_assignedOwner_fields() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_assignedOwner_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_assignedOwner_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_assignedOwner_invitationStatus.cs b/V2/Device/Item/Jobs/Jobs_device_references_assignedOwner_invitationStatus.cs deleted file mode 100644 index 7570508..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_assignedOwner_invitationStatus.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Jobs_device_references_assignedOwner_invitationStatus - #pragma warning restore CS1591 - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Jobs/Jobs_device_references_assignedOwner_userType.cs b/V2/Device/Item/Jobs/Jobs_device_references_assignedOwner_userType.cs deleted file mode 100644 index 7c1902b..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_assignedOwner_userType.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Jobs_device_references_assignedOwner_userType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Jobs/Jobs_device_references_backupBandwidthThrottle.cs b/V2/Device/Item/Jobs/Jobs_device_references_backupBandwidthThrottle.cs deleted file mode 100644 index 09f048c..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_backupBandwidthThrottle.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Device Backup Bandwidth Throttle - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_backupBandwidthThrottle : 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; } - /// Whether bandwidth throttle is enabled/true or disabled/false - public bool? Enabled { get; set; } - /// Bandwidth nonwork hours limit - public int? NonWorkHoursKbps { get; set; } - /// Bandwidth nonwork hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NonWorkHoursUserUnit { get; set; } -#nullable restore -#else - public string NonWorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work hours limit - public int? WorkHoursKbps { get; set; } - /// Bandwidth work hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? WorkHoursUserUnit { get; set; } -#nullable restore -#else - public string WorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work schedule -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_backupBandwidthThrottle_workSchedule? WorkSchedule { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_backupBandwidthThrottle_workSchedule WorkSchedule { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_backupBandwidthThrottle() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_backupBandwidthThrottle CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_backupBandwidthThrottle(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "nonWorkHoursKbps", n => { NonWorkHoursKbps = n.GetIntValue(); } }, - { "nonWorkHoursUserUnit", n => { NonWorkHoursUserUnit = n.GetStringValue(); } }, - { "workHoursKbps", n => { WorkHoursKbps = n.GetIntValue(); } }, - { "workHoursUserUnit", n => { WorkHoursUserUnit = n.GetStringValue(); } }, - { "workSchedule", n => { WorkSchedule = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_backupBandwidthThrottle_workSchedule.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("nonWorkHoursKbps", NonWorkHoursKbps); - writer.WriteStringValue("nonWorkHoursUserUnit", NonWorkHoursUserUnit); - writer.WriteIntValue("workHoursKbps", WorkHoursKbps); - writer.WriteStringValue("workHoursUserUnit", WorkHoursUserUnit); - writer.WriteObjectValue("workSchedule", WorkSchedule); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_backupBandwidthThrottle_workSchedule.cs b/V2/Device/Item/Jobs/Jobs_device_references_backupBandwidthThrottle_workSchedule.cs deleted file mode 100644 index 1d5add5..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_backupBandwidthThrottle_workSchedule.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Bandwidth work schedule - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_backupBandwidthThrottle_workSchedule : 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; } - /// Work schedule end hour (0 to 23) - public int? EndHour { get; set; } - /// Work schedule end minute (0 to 59) - public int? EndMinute { get; set; } - /// Work schedule start hour (0 to 23) - public int? StartHour { get; set; } - /// Work schedule start minute (0 to 59) - public int? StartMinute { get; set; } - /// Work schedule week days list -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? WeekDays { get; set; } -#nullable restore -#else - public List WeekDays { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_backupBandwidthThrottle_workSchedule() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_backupBandwidthThrottle_workSchedule CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_backupBandwidthThrottle_workSchedule(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endHour", n => { EndHour = n.GetIntValue(); } }, - { "endMinute", n => { EndMinute = n.GetIntValue(); } }, - { "startHour", n => { StartHour = n.GetIntValue(); } }, - { "startMinute", n => { StartMinute = n.GetIntValue(); } }, - { "weekDays", n => { WeekDays = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("endHour", EndHour); - writer.WriteIntValue("endMinute", EndMinute); - writer.WriteIntValue("startHour", StartHour); - writer.WriteIntValue("startMinute", StartMinute); - writer.WriteCollectionOfPrimitiveValues("weekDays", WeekDays); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_backupUsage.cs b/V2/Device/Item/Jobs/Jobs_device_references_backupUsage.cs deleted file mode 100644 index 9dda093..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_backupUsage.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Device Backup Usage - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_backupUsage : 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; } - /// Revisions cloud file folder size - public long? CloudFileFolderSize { get; set; } - /// Revisions cloud image size - public long? CloudImageSize { get; set; } - /// Revisions cloud image v2 size - public long? CloudImageV2Size { get; set; } - /// Revisions cloud network share size - public long? CloudNetworkShareSize { get; set; } - /// Revisions cloud total size - public long? CloudTotalSize { get; private set; } - /// Last failed job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastFailedBackupJob { get; set; } - /// Last successful job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastSuccessfulBackupJob { get; set; } - /// Revisions local file folder size - public long? LocalFileFolderSize { get; set; } - /// Revisions local image size - public long? LocalImageSize { get; set; } - /// Revisions local image v2 size - public long? LocalImageV2Size { get; set; } - /// Revisions local total size - public long? LocalTotalSize { get; private set; } - /// Revisions current size - public long? RevisionsCurrentSize { get; set; } - /// Revisions deleted size - public long? RevisionsDeletedSize { get; set; } - /// Revisions previous size - public long? RevisionsPreviousSize { get; set; } - /// Revisions total size - public long? RevisionsTotalSize { get; private set; } - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_backupUsage() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_backupUsage CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_backupUsage(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cloudFileFolderSize", n => { CloudFileFolderSize = n.GetLongValue(); } }, - { "cloudImageSize", n => { CloudImageSize = n.GetLongValue(); } }, - { "cloudImageV2Size", n => { CloudImageV2Size = n.GetLongValue(); } }, - { "cloudNetworkShareSize", n => { CloudNetworkShareSize = n.GetLongValue(); } }, - { "cloudTotalSize", n => { CloudTotalSize = n.GetLongValue(); } }, - { "lastFailedBackupJob", n => { LastFailedBackupJob = n.GetDoubleValue(); } }, - { "lastSuccessfulBackupJob", n => { LastSuccessfulBackupJob = n.GetDoubleValue(); } }, - { "localFileFolderSize", n => { LocalFileFolderSize = n.GetLongValue(); } }, - { "localImageSize", n => { LocalImageSize = n.GetLongValue(); } }, - { "localImageV2Size", n => { LocalImageV2Size = n.GetLongValue(); } }, - { "localTotalSize", n => { LocalTotalSize = n.GetLongValue(); } }, - { "revisionsCurrentSize", n => { RevisionsCurrentSize = n.GetLongValue(); } }, - { "revisionsDeletedSize", n => { RevisionsDeletedSize = n.GetLongValue(); } }, - { "revisionsPreviousSize", n => { RevisionsPreviousSize = n.GetLongValue(); } }, - { "revisionsTotalSize", n => { RevisionsTotalSize = n.GetLongValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteLongValue("cloudFileFolderSize", CloudFileFolderSize); - writer.WriteLongValue("cloudImageSize", CloudImageSize); - writer.WriteLongValue("cloudImageV2Size", CloudImageV2Size); - writer.WriteLongValue("cloudNetworkShareSize", CloudNetworkShareSize); - writer.WriteDoubleValue("lastFailedBackupJob", LastFailedBackupJob); - writer.WriteDoubleValue("lastSuccessfulBackupJob", LastSuccessfulBackupJob); - writer.WriteLongValue("localFileFolderSize", LocalFileFolderSize); - writer.WriteLongValue("localImageSize", LocalImageSize); - writer.WriteLongValue("localImageV2Size", LocalImageV2Size); - writer.WriteLongValue("revisionsCurrentSize", RevisionsCurrentSize); - writer.WriteLongValue("revisionsDeletedSize", RevisionsDeletedSize); - writer.WriteLongValue("revisionsPreviousSize", RevisionsPreviousSize); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_location.cs b/V2/Device/Item/Jobs/Jobs_device_references_location.cs deleted file mode 100644 index 5b7ba75..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_location.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_location : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_location_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_location_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_location_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_location_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_location() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_location CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_location(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_location_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_location_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_location_fields.cs b/V2/Device/Item/Jobs/Jobs_device_references_location_fields.cs deleted file mode 100644 index 97ead1a..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_location_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_location_fields : 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. - /// - public Jobs_device_references_location_fields() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_location_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_location_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_location_userData.cs b/V2/Device/Item/Jobs/Jobs_device_references_location_userData.cs deleted file mode 100644 index b02085d..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_location_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_location_userData : 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. - /// - public Jobs_device_references_location_userData() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_location_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_location_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_organization.cs b/V2/Device/Item/Jobs/Jobs_device_references_organization.cs deleted file mode 100644 index edd6097..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_organization.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_organization : 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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_organization_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_organization_fields Fields { get; set; } -#endif - /// Organization identifier - public int? Id { get; set; } - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_organization_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_organization_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_organization_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_organization() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_organization CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_organization(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_organization_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_organization_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_organization_fields.cs b/V2/Device/Item/Jobs/Jobs_device_references_organization_fields.cs deleted file mode 100644 index 4868c3c..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_organization_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_organization_fields : 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. - /// - public Jobs_device_references_organization_fields() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_organization_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_organization_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_organization_nodeApprovalMode.cs b/V2/Device/Item/Jobs/Jobs_device_references_organization_nodeApprovalMode.cs deleted file mode 100644 index b2c4149..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_organization_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_device_references_organization_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Jobs/Jobs_device_references_organization_userData.cs b/V2/Device/Item/Jobs/Jobs_device_references_organization_userData.cs deleted file mode 100644 index 9a7fbec..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_organization_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_organization_userData : 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. - /// - public Jobs_device_references_organization_userData() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_organization_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_organization_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_policy.cs b/V2/Device/Item/Jobs/Jobs_device_references_policy.cs deleted file mode 100644 index cccac23..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_policy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_policy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_policy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_policy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_policy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_policy() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_policy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_policy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_policy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_policy_fields.cs b/V2/Device/Item/Jobs/Jobs_device_references_policy_fields.cs deleted file mode 100644 index 075c331..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_policy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_policy_fields : 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. - /// - public Jobs_device_references_policy_fields() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_policy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_policy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_policy_nodeClass.cs b/V2/Device/Item/Jobs/Jobs_device_references_policy_nodeClass.cs deleted file mode 100644 index fa61c35..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_policy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_device_references_policy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Jobs/Jobs_device_references_role.cs b/V2/Device/Item/Jobs/Jobs_device_references_role.cs deleted file mode 100644 index 4bd31b0..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_role.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Device Role - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_role : 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; } - /// Chassis Type - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_role_chassisType? ChassisType { get; set; } - /// Date created - public double? Created { get; set; } - /// Is custom node role? - public bool? Custom { get; set; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_role_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_role_fields Fields { get; set; } -#endif - /// Icon -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Icon { get; set; } -#nullable restore -#else - public string Icon { get; set; } -#endif - /// Device Role identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_role_nodeClass? NodeClass { get; set; } - /// Node Role Parent Id - public int? NodeRoleParentId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_role() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_role CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_role(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "chassisType", n => { ChassisType = n.GetEnumValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "custom", n => { Custom = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_role_fields.CreateFromDiscriminatorValue); } }, - { "icon", n => { Icon = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleParentId", n => { NodeRoleParentId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("chassisType", ChassisType); - writer.WriteDoubleValue("created", Created); - writer.WriteBoolValue("custom", Custom); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("icon", Icon); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleParentId", NodeRoleParentId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_rolePolicy.cs b/V2/Device/Item/Jobs/Jobs_device_references_rolePolicy.cs deleted file mode 100644 index 3784ea7..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_rolePolicy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_rolePolicy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_rolePolicy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_rolePolicy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_rolePolicy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_rolePolicy() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_rolePolicy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_rolePolicy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_rolePolicy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_rolePolicy_fields.cs b/V2/Device/Item/Jobs/Jobs_device_references_rolePolicy_fields.cs deleted file mode 100644 index 0bbdc03..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_rolePolicy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_rolePolicy_fields : 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. - /// - public Jobs_device_references_rolePolicy_fields() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_rolePolicy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_rolePolicy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_rolePolicy_nodeClass.cs b/V2/Device/Item/Jobs/Jobs_device_references_rolePolicy_nodeClass.cs deleted file mode 100644 index f5e1797..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_rolePolicy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_device_references_rolePolicy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Jobs/Jobs_device_references_role_chassisType.cs b/V2/Device/Item/Jobs/Jobs_device_references_role_chassisType.cs deleted file mode 100644 index 22621c8..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_role_chassisType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// Chassis Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_device_references_role_chassisType - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "DESKTOP")] - #pragma warning disable CS1591 - DESKTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "LAPTOP")] - #pragma warning disable CS1591 - LAPTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "MOBILE")] - #pragma warning disable CS1591 - MOBILE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Jobs/Jobs_device_references_role_fields.cs b/V2/Device/Item/Jobs/Jobs_device_references_role_fields.cs deleted file mode 100644 index 6a60c25..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_role_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_role_fields : 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. - /// - public Jobs_device_references_role_fields() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_role_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_role_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_references_role_nodeClass.cs b/V2/Device/Item/Jobs/Jobs_device_references_role_nodeClass.cs deleted file mode 100644 index 941b576..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_role_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_device_references_role_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Jobs/Jobs_device_references_warranty.cs b/V2/Device/Item/Jobs/Jobs_device_references_warranty.cs deleted file mode 100644 index e93f8dd..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_references_warranty.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Warranty Info - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_warranty : 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; } - /// Warranty End Date (Seconds) - public double? EndDate { get; set; } - /// Manufacturer Fulfillment Date - public double? ManufacturerFulfillmentDate { get; set; } - /// Warranty Start Date (Seconds) - public double? StartDate { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_warranty() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_warranty CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_references_warranty(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endDate", n => { EndDate = n.GetDoubleValue(); } }, - { "manufacturerFulfillmentDate", n => { ManufacturerFulfillmentDate = n.GetDoubleValue(); } }, - { "startDate", n => { StartDate = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("endDate", EndDate); - writer.WriteDoubleValue("manufacturerFulfillmentDate", ManufacturerFulfillmentDate); - writer.WriteDoubleValue("startDate", StartDate); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_device_userData.cs b/V2/Device/Item/Jobs/Jobs_device_userData.cs deleted file mode 100644 index 056cdf5..0000000 --- a/V2/Device/Item/Jobs/Jobs_device_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_userData : 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. - /// - public Jobs_device_userData() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_device_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_jobResult.cs b/V2/Device/Item/Jobs/Jobs_jobResult.cs deleted file mode 100644 index 33c06b5..0000000 --- a/V2/Device/Item/Jobs/Jobs_jobResult.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// Job result - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_jobResult - { - [EnumMember(Value = "SUCCESS")] - #pragma warning disable CS1591 - SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILURE")] - #pragma warning disable CS1591 - FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "UNSUPPORTED")] - #pragma warning disable CS1591 - UNSUPPORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNCOMPLETED")] - #pragma warning disable CS1591 - UNCOMPLETED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Jobs/Jobs_jobStatus.cs b/V2/Device/Item/Jobs/Jobs_jobStatus.cs deleted file mode 100644 index 2deb89e..0000000 --- a/V2/Device/Item/Jobs/Jobs_jobStatus.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// Job Status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_jobStatus - { - [EnumMember(Value = "START_REQUESTED")] - #pragma warning disable CS1591 - START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "STARTED")] - #pragma warning disable CS1591 - STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_PROCESS")] - #pragma warning disable CS1591 - IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "COMPLETED")] - #pragma warning disable CS1591 - COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CANCEL_REQUESTED")] - #pragma warning disable CS1591 - CANCEL_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CANCELLED")] - #pragma warning disable CS1591 - CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "WAITING_FOR_USER_RESPONSE")] - #pragma warning disable CS1591 - WAITING_FOR_USER_RESPONSE, - #pragma warning restore CS1591 - [EnumMember(Value = "TRIGGERED")] - #pragma warning disable CS1591 - TRIGGERED, - #pragma warning restore CS1591 - [EnumMember(Value = "RESET")] - #pragma warning disable CS1591 - RESET, - #pragma warning restore CS1591 - [EnumMember(Value = "ACKNOWLEDGED")] - #pragma warning disable CS1591 - ACKNOWLEDGED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISABLED")] - #pragma warning disable CS1591 - DISABLED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Jobs/Jobs_jobType.cs b/V2/Device/Item/Jobs/Jobs_jobType.cs deleted file mode 100644 index 73de001..0000000 --- a/V2/Device/Item/Jobs/Jobs_jobType.cs +++ /dev/null @@ -1,163 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// Job Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_jobType - { - [EnumMember(Value = "ACTIONSET")] - #pragma warning disable CS1591 - ACTIONSET, - #pragma warning restore CS1591 - [EnumMember(Value = "ACTION")] - #pragma warning disable CS1591 - ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION")] - #pragma warning disable CS1591 - CONDITION, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_ACTIONSET")] - #pragma warning disable CS1591 - CONDITION_ACTIONSET, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_ACTION")] - #pragma warning disable CS1591 - CONDITION_ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "ANTIVIRUS")] - #pragma warning disable CS1591 - ANTIVIRUS, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER")] - #pragma warning disable CS1591 - TEAMVIEWER, - #pragma warning restore CS1591 - [EnumMember(Value = "MONITOR")] - #pragma warning disable CS1591 - MONITOR, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "COMMENT")] - #pragma warning disable CS1591 - COMMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT")] - #pragma warning disable CS1591 - SHADOWPROTECT, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER")] - #pragma warning disable CS1591 - IMAGEMANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "HELP_REQUEST")] - #pragma warning disable CS1591 - HELP_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP")] - #pragma warning disable CS1591 - SPLASHTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY")] - #pragma warning disable CS1591 - CLOUDBERRY, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUP")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUP, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK")] - #pragma warning disable CS1591 - SCHEDULED_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP")] - #pragma warning disable CS1591 - RDP, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPTING")] - #pragma warning disable CS1591 - SCRIPTING, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURITY")] - #pragma warning disable CS1591 - SECURITY, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS")] - #pragma warning disable CS1591 - REMOTE_TOOLS, - #pragma warning restore CS1591 - [EnumMember(Value = "VIRTUALIZATION")] - #pragma warning disable CS1591 - VIRTUALIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA")] - #pragma warning disable CS1591 - PSA, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM")] - #pragma warning disable CS1591 - MDM, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_REMOTE")] - #pragma warning disable CS1591 - NINJA_REMOTE, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_QUICK_CONNECT")] - #pragma warning disable CS1591 - NINJA_QUICK_CONNECT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_NETWORK_DISCOVERY")] - #pragma warning disable CS1591 - NINJA_NETWORK_DISCOVERY, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP")] - #pragma warning disable CS1591 - NINJA_BACKUP, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING")] - #pragma warning disable CS1591 - NINJA_TICKETING, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM")] - #pragma warning disable CS1591 - RELATED_ITEM, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENTATION")] - #pragma warning disable CS1591 - DOCUMENTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MICROSOFT_INTUNE")] - #pragma warning disable CS1591 - MICROSOFT_INTUNE, - #pragma warning restore CS1591 - [EnumMember(Value = "DYNAMIC_POLICY")] - #pragma warning disable CS1591 - DYNAMIC_POLICY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Jobs/Jobs_psaTicketId.cs b/V2/Device/Item/Jobs/Jobs_psaTicketId.cs deleted file mode 100644 index 553c7f2..0000000 --- a/V2/Device/Item/Jobs/Jobs_psaTicketId.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// - /// Related PSA ticket ID - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_psaTicketId : 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. - /// - public Jobs_psaTicketId() - { - 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::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_psaTicketId CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Jobs.Jobs_psaTicketId(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Jobs/Jobs_sourceType.cs b/V2/Device/Item/Jobs/Jobs_sourceType.cs deleted file mode 100644 index 2a86c29..0000000 --- a/V2/Device/Item/Jobs/Jobs_sourceType.cs +++ /dev/null @@ -1,371 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Jobs -{ - /// Job origin - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_sourceType - { - [EnumMember(Value = "AGENT_OFFLINE")] - #pragma warning disable CS1591 - AGENT_OFFLINE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_CPU")] - #pragma warning disable CS1591 - CONDITION_AGENT_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_MEMORY")] - #pragma warning disable CS1591 - CONDITION_AGENT_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_NETWORK")] - #pragma warning disable CS1591 - CONDITION_AGENT_NETWORK, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_DISK_IO")] - #pragma warning disable CS1591 - CONDITION_AGENT_DISK_IO, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_DISK_FREE_SPACE")] - #pragma warning disable CS1591 - CONDITION_AGENT_DISK_FREE_SPACE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_DISK_USAGE")] - #pragma warning disable CS1591 - CONDITION_AGENT_DISK_USAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_CVSS_SCORE")] - #pragma warning disable CS1591 - CONDITION_AGENT_CVSS_SCORE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_PATCH_LAST_INSTALLED")] - #pragma warning disable CS1591 - CONDITION_AGENT_PATCH_LAST_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_CPU")] - #pragma warning disable CS1591 - CONDITION_NMS_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_MEMORY")] - #pragma warning disable CS1591 - CONDITION_NMS_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_NETWORK_TRAFFIC_BITS")] - #pragma warning disable CS1591 - CONDITION_NMS_NETWORK_TRAFFIC_BITS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_NETWORK_TRAFFIC_PERCENT")] - #pragma warning disable CS1591 - CONDITION_NMS_NETWORK_TRAFFIC_PERCENT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_NETWORK_STATUS")] - #pragma warning disable CS1591 - CONDITION_NMS_NETWORK_STATUS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_NETWORK_STATUS_CHANGE")] - #pragma warning disable CS1591 - CONDITION_NMS_NETWORK_STATUS_CHANGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_SYSTEM_UPTIME")] - #pragma warning disable CS1591 - CONDITION_NMS_SYSTEM_UPTIME, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PING")] - #pragma warning disable CS1591 - CONDITION_PING, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PING_LATENCY")] - #pragma warning disable CS1591 - CONDITION_PING_LATENCY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PING_PACKET_LOSS")] - #pragma warning disable CS1591 - CONDITION_PING_PACKET_LOSS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PING_RESPONSE")] - #pragma warning disable CS1591 - CONDITION_PING_RESPONSE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SYSTEM_UPTIME")] - #pragma warning disable CS1591 - CONDITION_SYSTEM_UPTIME, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SMART_STATUS_DEGRATED")] - #pragma warning disable CS1591 - CONDITION_SMART_STATUS_DEGRATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_RAID_HEALTH_STATUS")] - #pragma warning disable CS1591 - CONDITION_RAID_HEALTH_STATUS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SCRIPT_RESULT")] - #pragma warning disable CS1591 - CONDITION_SCRIPT_RESULT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_HTTP")] - #pragma warning disable CS1591 - CONDITION_HTTP, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_HTTP_RESPONSE")] - #pragma warning disable CS1591 - CONDITION_HTTP_RESPONSE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PORT")] - #pragma warning disable CS1591 - CONDITION_PORT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PORT_SCAN")] - #pragma warning disable CS1591 - CONDITION_PORT_SCAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SYSLOG")] - #pragma warning disable CS1591 - CONDITION_SYSLOG, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_CONFIGURATION_FILE")] - #pragma warning disable CS1591 - CONDITION_CONFIGURATION_FILE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SNMPTRAP")] - #pragma warning disable CS1591 - CONDITION_SNMPTRAP, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_CRITICAL_EVENT")] - #pragma warning disable CS1591 - CONDITION_CRITICAL_EVENT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_DNS")] - #pragma warning disable CS1591 - CONDITION_DNS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_EMAIL")] - #pragma warning disable CS1591 - CONDITION_EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_CUSTOM_SNMP")] - #pragma warning disable CS1591 - CONDITION_CUSTOM_SNMP, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_COMPOUND")] - #pragma warning disable CS1591 - CONDITION_COMPOUND, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_CREATE")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_CREATE, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_UPDATE")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_UPDATE, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_DELETE")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_DELETE, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_EXECUTE")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_EXECUTE, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_MANAGEDFOLDER_CREATE")] - #pragma warning disable CS1591 - IMAGEMANAGER_MANAGEDFOLDER_CREATE, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_MANAGEDFOLDER_UPDATE")] - #pragma warning disable CS1591 - IMAGEMANAGER_MANAGEDFOLDER_UPDATE, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_MANAGEDFOLDER_DELETE")] - #pragma warning disable CS1591 - IMAGEMANAGER_MANAGEDFOLDER_DELETE, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_MANAGEDFOLDER_EXECUTE")] - #pragma warning disable CS1591 - IMAGEMANAGER_MANAGEDFOLDER_EXECUTE, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONNECTION")] - #pragma warning disable CS1591 - TEAMVIEWER_CONNECTION, - #pragma warning restore CS1591 - [EnumMember(Value = "RETRIEVE_AGENT_LOGS")] - #pragma warning disable CS1591 - RETRIEVE_AGENT_LOGS, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK")] - #pragma warning disable CS1591 - SCHEDULED_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_EVENT_LOG_TRIGGERED")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_EVENT_LOG_TRIGGERED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_SERVICE_STATE_CHANGED")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_SERVICE_STATE_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "UI_MESSAGE_ACTION_REBOOT")] - #pragma warning disable CS1591 - UI_MESSAGE_ACTION_REBOOT, - #pragma warning restore CS1591 - [EnumMember(Value = "UI_MESSAGE_BD_INSTALLATION_ISSUES")] - #pragma warning disable CS1591 - UI_MESSAGE_BD_INSTALLATION_ISSUES, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_UI_MESSAGE_INSTALLATION_ISSUES")] - #pragma warning disable CS1591 - GRAVITYZONE_UI_MESSAGE_INSTALLATION_ISSUES, - #pragma warning restore CS1591 - [EnumMember(Value = "AV_QUARANTINE_THREAT")] - #pragma warning disable CS1591 - AV_QUARANTINE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "AV_RESTORE_THREAT")] - #pragma warning disable CS1591 - AV_RESTORE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "AV_DELETE_THREAT")] - #pragma warning disable CS1591 - AV_DELETE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "AV_REMOVE_THREAT")] - #pragma warning disable CS1591 - AV_REMOVE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_RESTORE_THREAT")] - #pragma warning disable CS1591 - BITDEFENDER_RESTORE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DELETE_THREAT")] - #pragma warning disable CS1591 - BITDEFENDER_DELETE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_BITLOCKER_STATUS")] - #pragma warning disable CS1591 - CONDITION_BITLOCKER_STATUS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_FILEVAULT_STATUS")] - #pragma warning disable CS1591 - CONDITION_FILEVAULT_STATUS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_PROCESS")] - #pragma warning disable CS1591 - CONDITION_LINUX_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_Daemon")] - #pragma warning disable CS1591 - CONDITION_LINUX_Daemon, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_PROCESS_RESOURCE")] - #pragma warning disable CS1591 - CONDITION_LINUX_PROCESS_RESOURCE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_PROCESS_RESOURCE_CPU")] - #pragma warning disable CS1591 - CONDITION_LINUX_PROCESS_RESOURCE_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_PROCESS_RESOURCE_MEMORY")] - #pragma warning disable CS1591 - CONDITION_LINUX_PROCESS_RESOURCE_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_DISK_FREE_SPACE")] - #pragma warning disable CS1591 - CONDITION_LINUX_DISK_FREE_SPACE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_DISK_USAGE")] - #pragma warning disable CS1591 - CONDITION_LINUX_DISK_USAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_AGGREGATE_CPU_USAGE")] - #pragma warning disable CS1591 - CONDITION_VM_AGGREGATE_CPU_USAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_DISK_USAGE")] - #pragma warning disable CS1591 - CONDITION_VM_DISK_USAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_DATASTORE")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_DATASTORE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_UPTIME")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_UPTIME, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_DEVICE_DOWN")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_DEVICE_DOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_BAD_SENSORS")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_BAD_SENSORS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_SENSOR_HEALTH")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_SENSOR_HEALTH, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_GUEST_GUEST_OPERATIONAL_MODE")] - #pragma warning disable CS1591 - CONDITION_VM_GUEST_GUEST_OPERATIONAL_MODE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_GUEST_SNAPSHOT_SIZE")] - #pragma warning disable CS1591 - CONDITION_VM_GUEST_SNAPSHOT_SIZE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_GUEST_SNAPSHOT_LIFESPAN")] - #pragma warning disable CS1591 - CONDITION_VM_GUEST_SNAPSHOT_LIFESPAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_GUEST_TOOLS_NOT_RUNNING")] - #pragma warning disable CS1591 - CONDITION_VM_GUEST_TOOLS_NOT_RUNNING, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_HV_GUEST_CHECKPOINT_SIZE")] - #pragma warning disable CS1591 - CONDITION_HV_GUEST_CHECKPOINT_SIZE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_HV_GUEST_CHECKPOINT_LIFESPAN")] - #pragma warning disable CS1591 - CONDITION_HV_GUEST_CHECKPOINT_LIFESPAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SOFTWARE")] - #pragma warning disable CS1591 - CONDITION_SOFTWARE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_PROCESS_STATE")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_PROCESS_STATE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_PROCESS_RESOURCE_CPU")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_PROCESS_RESOURCE_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_PROCESS_RESOURCE_MEMORY")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_PROCESS_RESOURCE_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_MAC_PROCESS_STATE")] - #pragma warning disable CS1591 - CONDITION_MAC_PROCESS_STATE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_MAC_PROCESS_RESOURCE_CPU")] - #pragma warning disable CS1591 - CONDITION_MAC_PROCESS_RESOURCE_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_MAC_PROCESS_RESOURCE_MEMORY")] - #pragma warning disable CS1591 - CONDITION_MAC_PROCESS_RESOURCE_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_MAC_DEAMON")] - #pragma warning disable CS1591 - CONDITION_MAC_DEAMON, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_CUSTOM_FIELD")] - #pragma warning disable CS1591 - CONDITION_CUSTOM_FIELD, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PENDING_REBOOT")] - #pragma warning disable CS1591 - CONDITION_PENDING_REBOOT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/LastLoggedOnUser/LastLoggedOnUser4XXError.cs b/V2/Device/Item/LastLoggedOnUser/LastLoggedOnUser4XXError.cs deleted file mode 100644 index 5a43ece..0000000 --- a/V2/Device/Item/LastLoggedOnUser/LastLoggedOnUser4XXError.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.LastLoggedOnUser -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LastLoggedOnUser4XXError : 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; } - /// Time of logon - public double? LogonTime { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// User name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UserName { get; set; } -#nullable restore -#else - public string UserName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public LastLoggedOnUser4XXError() - { - 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::NinjaOne.Client.V2.Device.Item.LastLoggedOnUser.LastLoggedOnUser4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.LastLoggedOnUser.LastLoggedOnUser4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "logonTime", n => { LogonTime = n.GetDoubleValue(); } }, - { "userName", n => { UserName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("logonTime", LogonTime); - writer.WriteStringValue("userName", UserName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/LastLoggedOnUser/LastLoggedOnUser5XXError.cs b/V2/Device/Item/LastLoggedOnUser/LastLoggedOnUser5XXError.cs deleted file mode 100644 index 9e9bfd6..0000000 --- a/V2/Device/Item/LastLoggedOnUser/LastLoggedOnUser5XXError.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.LastLoggedOnUser -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LastLoggedOnUser5XXError : 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; } - /// Time of logon - public double? LogonTime { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// User name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UserName { get; set; } -#nullable restore -#else - public string UserName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public LastLoggedOnUser5XXError() - { - 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::NinjaOne.Client.V2.Device.Item.LastLoggedOnUser.LastLoggedOnUser5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.LastLoggedOnUser.LastLoggedOnUser5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "logonTime", n => { LogonTime = n.GetDoubleValue(); } }, - { "userName", n => { UserName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("logonTime", LogonTime); - writer.WriteStringValue("userName", UserName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/LastLoggedOnUser/LastLoggedOnUserRequestBuilder.cs b/V2/Device/Item/LastLoggedOnUser/LastLoggedOnUserRequestBuilder.cs deleted file mode 100644 index 8516ee7..0000000 --- a/V2/Device/Item/LastLoggedOnUser/LastLoggedOnUserRequestBuilder.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.LastLoggedOnUser -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\last-logged-on-user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LastLoggedOnUserRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public LastLoggedOnUserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/last-logged-on-user", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public LastLoggedOnUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/last-logged-on-user", rawUrl) - { - } - /// - /// Returns username that was last to login to device - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Device.Item.LastLoggedOnUser.LastLoggedOnUser4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Device.Item.LastLoggedOnUser.LastLoggedOnUser5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns username that was last to login to device - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.LastLoggedOnUser.LastLoggedOnUserRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.LastLoggedOnUser.LastLoggedOnUserRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LastLoggedOnUserRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Maintenance/MaintenancePutRequestBody.cs b/V2/Device/Item/Maintenance/MaintenancePutRequestBody.cs deleted file mode 100644 index 08bc675..0000000 --- a/V2/Device/Item/Maintenance/MaintenancePutRequestBody.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Maintenance -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class MaintenancePutRequestBody : 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; } - /// List of features that will be disabled during maintenance -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DisabledFeatures { get; set; } -#nullable restore -#else - public List DisabledFeatures { get; set; } -#endif - /// Maintenance window end - public double? End { get; set; } - /// Reason for maintenance window -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ReasonMessage { get; set; } -#nullable restore -#else - public string ReasonMessage { get; set; } -#endif - /// Maintenance window start (optional, defaults to now) - public double? Start { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public MaintenancePutRequestBody() - { - 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::NinjaOne.Client.V2.Device.Item.Maintenance.MaintenancePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Maintenance.MaintenancePutRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "disabledFeatures", n => { DisabledFeatures = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "end", n => { End = n.GetDoubleValue(); } }, - { "reasonMessage", n => { ReasonMessage = n.GetStringValue(); } }, - { "start", n => { Start = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfEnumValues("disabledFeatures", DisabledFeatures); - writer.WriteDoubleValue("end", End); - writer.WriteStringValue("reasonMessage", ReasonMessage); - writer.WriteDoubleValue("start", Start); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Maintenance/MaintenancePutRequestBody_disabledFeatures.cs b/V2/Device/Item/Maintenance/MaintenancePutRequestBody_disabledFeatures.cs deleted file mode 100644 index 3d0d874..0000000 --- a/V2/Device/Item/Maintenance/MaintenancePutRequestBody_disabledFeatures.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Maintenance -{ - /// List of features that will be disabled during maintenance - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum MaintenancePutRequestBody_disabledFeatures - { - [EnumMember(Value = "ALERTS")] - #pragma warning disable CS1591 - ALERTS, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCHING")] - #pragma warning disable CS1591 - PATCHING, - #pragma warning restore CS1591 - [EnumMember(Value = "AVSCANS")] - #pragma warning disable CS1591 - AVSCANS, - #pragma warning restore CS1591 - [EnumMember(Value = "TASKS")] - #pragma warning disable CS1591 - TASKS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Maintenance/MaintenanceRequestBuilder.cs b/V2/Device/Item/Maintenance/MaintenanceRequestBuilder.cs deleted file mode 100644 index bed7540..0000000 --- a/V2/Device/Item/Maintenance/MaintenanceRequestBuilder.cs +++ /dev/null @@ -1,140 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Maintenance -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\maintenance - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class MaintenanceRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public MaintenanceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/maintenance", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public MaintenanceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/maintenance", rawUrl) - { - } - /// - /// Cancel pending or active maintenance for device - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Schedule maintenance window for device - /// - /// A - /// The request body - /// 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 PutAsync(global::NinjaOne.Client.V2.Device.Item.Maintenance.MaintenancePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PutAsync(global::NinjaOne.Client.V2.Device.Item.Maintenance.MaintenancePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Cancel pending or active maintenance for device - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Schedule maintenance window for device - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(global::NinjaOne.Client.V2.Device.Item.Maintenance.MaintenancePutRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(global::NinjaOne.Client.V2.Device.Item.Maintenance.MaintenancePutRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Maintenance.MaintenanceRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Maintenance.MaintenanceRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class MaintenanceRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class MaintenanceRequestBuilderPutRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/NetworkInterfaces/NetworkInterfaces.cs b/V2/Device/Item/NetworkInterfaces/NetworkInterfaces.cs deleted file mode 100644 index 09d4c3a..0000000 --- a/V2/Device/Item/NetworkInterfaces/NetworkInterfaces.cs +++ /dev/null @@ -1,188 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.NetworkInterfaces -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class NetworkInterfaces : ApiException, IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Adapter Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? AdapterName { get; set; } -#nullable restore -#else - public string AdapterName { get; set; } -#endif - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Default Gateway -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DefaultGateway { get; set; } -#nullable restore -#else - public string DefaultGateway { get; set; } -#endif - /// DNS HostName -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DnsHostName { get; set; } -#nullable restore -#else - public string DnsHostName { get; set; } -#endif - /// DNS Servers -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DnsServers { get; set; } -#nullable restore -#else - public string DnsServers { get; set; } -#endif - /// Interface Index -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? InterfaceIndex { get; set; } -#nullable restore -#else - public string InterfaceIndex { get; set; } -#endif - /// Interface Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? InterfaceName { get; set; } -#nullable restore -#else - public string InterfaceName { get; set; } -#endif - /// Interface Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? InterfaceType { get; set; } -#nullable restore -#else - public string InterfaceType { get; set; } -#endif - /// IP Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? IpAddress { get; set; } -#nullable restore -#else - public List IpAddress { get; set; } -#endif - /// Link Speed -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LinkSpeed { get; set; } -#nullable restore -#else - public string LinkSpeed { get; set; } -#endif - /// MAC Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MacAddress { get; set; } -#nullable restore -#else - public List MacAddress { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// MTU -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Mtu { get; set; } -#nullable restore -#else - public string Mtu { get; set; } -#endif - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Subnet Mask -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SubnetMask { get; set; } -#nullable restore -#else - public string SubnetMask { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public NetworkInterfaces() - { - 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::NinjaOne.Client.V2.Device.Item.NetworkInterfaces.NetworkInterfaces CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.NetworkInterfaces.NetworkInterfaces(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "adapterName", n => { AdapterName = n.GetStringValue(); } }, - { "defaultGateway", n => { DefaultGateway = n.GetStringValue(); } }, - { "dnsHostName", n => { DnsHostName = n.GetStringValue(); } }, - { "dnsServers", n => { DnsServers = n.GetStringValue(); } }, - { "interfaceIndex", n => { InterfaceIndex = n.GetStringValue(); } }, - { "interfaceName", n => { InterfaceName = n.GetStringValue(); } }, - { "interfaceType", n => { InterfaceType = n.GetStringValue(); } }, - { "ipAddress", n => { IpAddress = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "linkSpeed", n => { LinkSpeed = n.GetStringValue(); } }, - { "macAddress", n => { MacAddress = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "mtu", n => { Mtu = n.GetStringValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "subnetMask", n => { SubnetMask = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("adapterName", AdapterName); - writer.WriteStringValue("defaultGateway", DefaultGateway); - writer.WriteStringValue("dnsHostName", DnsHostName); - writer.WriteStringValue("dnsServers", DnsServers); - writer.WriteStringValue("interfaceIndex", InterfaceIndex); - writer.WriteStringValue("interfaceName", InterfaceName); - writer.WriteStringValue("interfaceType", InterfaceType); - writer.WriteCollectionOfPrimitiveValues("ipAddress", IpAddress); - writer.WriteStringValue("linkSpeed", LinkSpeed); - writer.WriteCollectionOfPrimitiveValues("macAddress", MacAddress); - writer.WriteStringValue("mtu", Mtu); - writer.WriteStringValue("status", Status); - writer.WriteStringValue("subnetMask", SubnetMask); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/NetworkInterfaces/NetworkInterfacesRequestBuilder.cs b/V2/Device/Item/NetworkInterfaces/NetworkInterfacesRequestBuilder.cs deleted file mode 100644 index e9d406b..0000000 --- a/V2/Device/Item/NetworkInterfaces/NetworkInterfacesRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.NetworkInterfaces -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\network-interfaces - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class NetworkInterfacesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public NetworkInterfacesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/network-interfaces", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public NetworkInterfacesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/network-interfaces", rawUrl) - { - } - /// - /// Returns device network interfaces' details - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Device.Item.NetworkInterfaces.NetworkInterfaces.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns device network interfaces' details - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.NetworkInterfaces.NetworkInterfacesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.NetworkInterfaces.NetworkInterfacesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class NetworkInterfacesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/OsPatchInstalls/OsPatchInstalls.cs b/V2/Device/Item/OsPatchInstalls/OsPatchInstalls.cs deleted file mode 100644 index c35ba01..0000000 --- a/V2/Device/Item/OsPatchInstalls/OsPatchInstalls.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.OsPatchInstalls -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OsPatchInstalls : 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; } - /// Identifier - public Guid? Id { get; set; } - /// Installation attempt timestamp - public double? InstalledAt { get; set; } - /// KB Number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? KbNumber { get; set; } -#nullable restore -#else - public string KbNumber { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Severity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Severity { get; set; } -#nullable restore -#else - public string Severity { get; set; } -#endif - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OsPatchInstalls() - { - 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::NinjaOne.Client.V2.Device.Item.OsPatchInstalls.OsPatchInstalls CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.OsPatchInstalls.OsPatchInstalls(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetGuidValue(); } }, - { "installedAt", n => { InstalledAt = n.GetDoubleValue(); } }, - { "kbNumber", n => { KbNumber = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "severity", n => { Severity = n.GetStringValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteGuidValue("id", Id); - writer.WriteDoubleValue("installedAt", InstalledAt); - writer.WriteStringValue("kbNumber", KbNumber); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("severity", Severity); - writer.WriteStringValue("status", Status); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/OsPatchInstalls/OsPatchInstallsRequestBuilder.cs b/V2/Device/Item/OsPatchInstalls/OsPatchInstallsRequestBuilder.cs deleted file mode 100644 index 0592f19..0000000 --- a/V2/Device/Item/OsPatchInstalls/OsPatchInstallsRequestBuilder.cs +++ /dev/null @@ -1,133 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.OsPatchInstalls -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\os-patch-installs - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OsPatchInstallsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OsPatchInstallsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/os-patch-installs{?installedAfter*,installedBefore*,status*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OsPatchInstallsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/os-patch-installs{?installedAfter*,installedBefore*,status*}", rawUrl) - { - } - /// - /// Returns patch installation history records (successful and failed) for device - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Device.Item.OsPatchInstalls.OsPatchInstalls.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns patch installation history records (successful and failed) for device - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.OsPatchInstalls.OsPatchInstallsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.OsPatchInstalls.OsPatchInstallsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns patch installation history records (successful and failed) for device - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OsPatchInstallsRequestBuilderGetQueryParameters - { - /// Include patches installed after specified date -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("installedAfter")] - public string? InstalledAfter { get; set; } -#nullable restore -#else - [QueryParameter("installedAfter")] - public string InstalledAfter { get; set; } -#endif - /// Include patches installed before specified date -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("installedBefore")] - public string? InstalledBefore { get; set; } -#nullable restore -#else - [QueryParameter("installedBefore")] - public string InstalledBefore { get; set; } -#endif - /// Patch Status filter (FAILED, INSTALLED) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("status")] - public string? Status { get; set; } -#nullable restore -#else - [QueryParameter("status")] - public string Status { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OsPatchInstallsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/OsPatches/OsPatches.cs b/V2/Device/Item/OsPatches/OsPatches.cs deleted file mode 100644 index 97bb7a6..0000000 --- a/V2/Device/Item/OsPatches/OsPatches.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.OsPatches -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OsPatches : 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; } - /// Identifier - public Guid? Id { get; set; } - /// Installation attempt timestamp - public double? InstalledAt { get; set; } - /// KB Number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? KbNumber { get; set; } -#nullable restore -#else - public string KbNumber { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Severity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Severity { get; set; } -#nullable restore -#else - public string Severity { get; set; } -#endif - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OsPatches() - { - 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::NinjaOne.Client.V2.Device.Item.OsPatches.OsPatches CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.OsPatches.OsPatches(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetGuidValue(); } }, - { "installedAt", n => { InstalledAt = n.GetDoubleValue(); } }, - { "kbNumber", n => { KbNumber = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "severity", n => { Severity = n.GetStringValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteGuidValue("id", Id); - writer.WriteDoubleValue("installedAt", InstalledAt); - writer.WriteStringValue("kbNumber", KbNumber); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("severity", Severity); - writer.WriteStringValue("status", Status); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/OsPatches/OsPatchesRequestBuilder.cs b/V2/Device/Item/OsPatches/OsPatchesRequestBuilder.cs deleted file mode 100644 index 625f571..0000000 --- a/V2/Device/Item/OsPatches/OsPatchesRequestBuilder.cs +++ /dev/null @@ -1,133 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.OsPatches -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\os-patches - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OsPatchesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OsPatchesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/os-patches{?severity*,status*,type*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OsPatchesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/os-patches{?severity*,status*,type*}", rawUrl) - { - } - /// - /// Returns list of pending/rejected/approved OS patches for device - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Device.Item.OsPatches.OsPatches.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of pending/rejected/approved OS patches for device - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.OsPatches.OsPatchesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.OsPatches.OsPatchesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of pending/rejected/approved OS patches for device - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OsPatchesRequestBuilderGetQueryParameters - { - /// Patch Severity filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("severity")] - public string? Severity { get; set; } -#nullable restore -#else - [QueryParameter("severity")] - public string Severity { get; set; } -#endif - /// Patch Status filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("status")] - public string? Status { get; set; } -#nullable restore -#else - [QueryParameter("status")] - public string Status { get; set; } -#endif - /// Patch Type filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("type")] - public string? Type { get; set; } -#nullable restore -#else - [QueryParameter("type")] - public string Type { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OsPatchesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Owner/Item/WithOwnerUItemRequestBuilder.cs b/V2/Device/Item/Owner/Item/WithOwnerUItemRequestBuilder.cs deleted file mode 100644 index 5449b4c..0000000 --- a/V2/Device/Item/Owner/Item/WithOwnerUItemRequestBuilder.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Owner.Item -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\owner\{ownerUid} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithOwnerUItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithOwnerUItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/owner/{ownerUid}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithOwnerUItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/owner/{ownerUid}", rawUrl) - { - } - /// - /// Sets the owner of the device. - /// - /// 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 PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Sets the owner of the device. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Owner.Item.WithOwnerUItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Owner.Item.WithOwnerUItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithOwnerUItemRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Owner/OwnerRequestBuilder.cs b/V2/Device/Item/Owner/OwnerRequestBuilder.cs deleted file mode 100644 index bcbbddf..0000000 --- a/V2/Device/Item/Owner/OwnerRequestBuilder.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Device.Item.Owner.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Owner -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\owner - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OwnerRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.device.item.owner.item collection - /// Device owner identifier - /// A - public global::NinjaOne.Client.V2.Device.Item.Owner.Item.WithOwnerUItemRequestBuilder this[Guid position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("ownerUid", position); - return new global::NinjaOne.Client.V2.Device.Item.Owner.Item.WithOwnerUItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.device.item.owner.item collection - /// Device owner identifier - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Device.Item.Owner.Item.WithOwnerUItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("ownerUid", position); - return new global::NinjaOne.Client.V2.Device.Item.Owner.Item.WithOwnerUItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OwnerRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/owner", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OwnerRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/owner", rawUrl) - { - } - /// - /// Removes the owner of the device. - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Removes the owner of the device. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Owner.OwnerRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Owner.OwnerRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OwnerRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Patch/Os/Apply/ApplyRequestBuilder.cs b/V2/Device/Item/Patch/Os/Apply/ApplyRequestBuilder.cs deleted file mode 100644 index 0e7766d..0000000 --- a/V2/Device/Item/Patch/Os/Apply/ApplyRequestBuilder.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Patch.Os.Apply -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\patch\os\apply - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ApplyRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ApplyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/patch/os/apply", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ApplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/patch/os/apply", rawUrl) - { - } - /// - /// Submit a job to start a device OS patch apply - /// - /// 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 PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToPostRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Submit a job to start a device OS patch apply - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Patch.Os.Apply.ApplyRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Patch.Os.Apply.ApplyRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ApplyRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Patch/Os/OsRequestBuilder.cs b/V2/Device/Item/Patch/Os/OsRequestBuilder.cs deleted file mode 100644 index da75b52..0000000 --- a/V2/Device/Item/Patch/Os/OsRequestBuilder.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Device.Item.Patch.Os.Apply; -using NinjaOne.Client.V2.Device.Item.Patch.Os.Scan; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Device.Item.Patch.Os -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\patch\os - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OsRequestBuilder : BaseRequestBuilder - { - /// The apply property - public global::NinjaOne.Client.V2.Device.Item.Patch.Os.Apply.ApplyRequestBuilder Apply - { - get => new global::NinjaOne.Client.V2.Device.Item.Patch.Os.Apply.ApplyRequestBuilder(PathParameters, RequestAdapter); - } - /// The scan property - public global::NinjaOne.Client.V2.Device.Item.Patch.Os.Scan.ScanRequestBuilder Scan - { - get => new global::NinjaOne.Client.V2.Device.Item.Patch.Os.Scan.ScanRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/patch/os", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/patch/os", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Patch/Os/Scan/ScanRequestBuilder.cs b/V2/Device/Item/Patch/Os/Scan/ScanRequestBuilder.cs deleted file mode 100644 index 4d16a3f..0000000 --- a/V2/Device/Item/Patch/Os/Scan/ScanRequestBuilder.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Patch.Os.Scan -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\patch\os\scan - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScanRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ScanRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/patch/os/scan", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ScanRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/patch/os/scan", rawUrl) - { - } - /// - /// Submit a job to start a device OS patch scan - /// - /// 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 PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToPostRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Submit a job to start a device OS patch scan - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Patch.Os.Scan.ScanRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Patch.Os.Scan.ScanRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScanRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Patch/PatchRequestBuilder.cs b/V2/Device/Item/Patch/PatchRequestBuilder.cs deleted file mode 100644 index c1d57da..0000000 --- a/V2/Device/Item/Patch/PatchRequestBuilder.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Device.Item.Patch.Os; -using NinjaOne.Client.V2.Device.Item.Patch.Software; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Device.Item.Patch -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\patch - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class PatchRequestBuilder : BaseRequestBuilder - { - /// The os property - public global::NinjaOne.Client.V2.Device.Item.Patch.Os.OsRequestBuilder Os - { - get => new global::NinjaOne.Client.V2.Device.Item.Patch.Os.OsRequestBuilder(PathParameters, RequestAdapter); - } - /// The software property - public global::NinjaOne.Client.V2.Device.Item.Patch.Software.SoftwareRequestBuilder Software - { - get => new global::NinjaOne.Client.V2.Device.Item.Patch.Software.SoftwareRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public PatchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/patch", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public PatchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/patch", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Patch/Software/Apply/ApplyRequestBuilder.cs b/V2/Device/Item/Patch/Software/Apply/ApplyRequestBuilder.cs deleted file mode 100644 index a13e850..0000000 --- a/V2/Device/Item/Patch/Software/Apply/ApplyRequestBuilder.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Patch.Software.Apply -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\patch\software\apply - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ApplyRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ApplyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/patch/software/apply", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ApplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/patch/software/apply", rawUrl) - { - } - /// - /// Submit a job to start a device software patch apply - /// - /// 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 PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToPostRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Submit a job to start a device software patch apply - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Patch.Software.Apply.ApplyRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Patch.Software.Apply.ApplyRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ApplyRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Patch/Software/Scan/ScanRequestBuilder.cs b/V2/Device/Item/Patch/Software/Scan/ScanRequestBuilder.cs deleted file mode 100644 index f391084..0000000 --- a/V2/Device/Item/Patch/Software/Scan/ScanRequestBuilder.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Patch.Software.Scan -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\patch\software\scan - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScanRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ScanRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/patch/software/scan", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ScanRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/patch/software/scan", rawUrl) - { - } - /// - /// Submit a job to start a device software patch scan - /// - /// 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 PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToPostRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Submit a job to start a device software patch scan - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Patch.Software.Scan.ScanRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Patch.Software.Scan.ScanRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScanRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Patch/Software/SoftwareRequestBuilder.cs b/V2/Device/Item/Patch/Software/SoftwareRequestBuilder.cs deleted file mode 100644 index 0cd2076..0000000 --- a/V2/Device/Item/Patch/Software/SoftwareRequestBuilder.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Device.Item.Patch.Software.Apply; -using NinjaOne.Client.V2.Device.Item.Patch.Software.Scan; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Device.Item.Patch.Software -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\patch\software - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwareRequestBuilder : BaseRequestBuilder - { - /// The apply property - public global::NinjaOne.Client.V2.Device.Item.Patch.Software.Apply.ApplyRequestBuilder Apply - { - get => new global::NinjaOne.Client.V2.Device.Item.Patch.Software.Apply.ApplyRequestBuilder(PathParameters, RequestAdapter); - } - /// The scan property - public global::NinjaOne.Client.V2.Device.Item.Patch.Software.Scan.ScanRequestBuilder Scan - { - get => new global::NinjaOne.Client.V2.Device.Item.Patch.Software.Scan.ScanRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SoftwareRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/patch/software", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SoftwareRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/patch/software", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Policy/Overrides/Overrides4XXError.cs b/V2/Device/Item/Policy/Overrides/Overrides4XXError.cs deleted file mode 100644 index 982043e..0000000 --- a/V2/Device/Item/Policy/Overrides/Overrides4XXError.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Policy.Overrides -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Overrides4XXError : 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 primary error message. - public override string Message { get => base.Message; } - /// List of policy sections -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Overrides { get; set; } -#nullable restore -#else - public List Overrides { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Overrides4XXError() - { - 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::NinjaOne.Client.V2.Device.Item.Policy.Overrides.Overrides4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Policy.Overrides.Overrides4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "overrides", n => { Overrides = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("overrides", Overrides); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Policy/Overrides/Overrides5XXError.cs b/V2/Device/Item/Policy/Overrides/Overrides5XXError.cs deleted file mode 100644 index a64dca5..0000000 --- a/V2/Device/Item/Policy/Overrides/Overrides5XXError.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Policy.Overrides -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Overrides5XXError : 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 primary error message. - public override string Message { get => base.Message; } - /// List of policy sections -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Overrides { get; set; } -#nullable restore -#else - public List Overrides { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Overrides5XXError() - { - 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::NinjaOne.Client.V2.Device.Item.Policy.Overrides.Overrides5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Policy.Overrides.Overrides5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "overrides", n => { Overrides = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("overrides", Overrides); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Policy/Overrides/OverridesRequestBuilder.cs b/V2/Device/Item/Policy/Overrides/OverridesRequestBuilder.cs deleted file mode 100644 index 99a1eaf..0000000 --- a/V2/Device/Item/Policy/Overrides/OverridesRequestBuilder.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Policy.Overrides -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\policy\overrides - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OverridesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OverridesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/policy/overrides", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OverridesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/policy/overrides", rawUrl) - { - } - /// - /// Submit request to remove device policy overrides - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of overridden policy sections - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Device.Item.Policy.Overrides.Overrides4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Device.Item.Policy.Overrides.Overrides5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Submit request to remove device policy overrides - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns list of overridden policy sections - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Policy.Overrides.OverridesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Policy.Overrides.OverridesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OverridesRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OverridesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Policy/PolicyRequestBuilder.cs b/V2/Device/Item/Policy/PolicyRequestBuilder.cs deleted file mode 100644 index 4c97c15..0000000 --- a/V2/Device/Item/Policy/PolicyRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Device.Item.Policy.Overrides; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Device.Item.Policy -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\policy - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class PolicyRequestBuilder : BaseRequestBuilder - { - /// The overrides property - public global::NinjaOne.Client.V2.Device.Item.Policy.Overrides.OverridesRequestBuilder Overrides - { - get => new global::NinjaOne.Client.V2.Device.Item.Policy.Overrides.OverridesRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public PolicyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/policy", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public PolicyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/policy", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Processors/Processors.cs b/V2/Device/Item/Processors/Processors.cs deleted file mode 100644 index a91ee93..0000000 --- a/V2/Device/Item/Processors/Processors.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Processors -{ - /// - /// Processors - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Processors : ApiException, 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; } - /// Architecture -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Architecture { get; set; } -#nullable restore -#else - public string Architecture { get; set; } -#endif - /// Current Clock Speed - public long? ClockSpeed { get; set; } - /// Max Clock Speed - public long? MaxClockSpeed { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Number of Cores - public int? NumCores { get; set; } - /// Number of Logical Cores] - public int? NumLogicalCores { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Processors() - { - 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::NinjaOne.Client.V2.Device.Item.Processors.Processors CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Processors.Processors(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "architecture", n => { Architecture = n.GetStringValue(); } }, - { "clockSpeed", n => { ClockSpeed = n.GetLongValue(); } }, - { "maxClockSpeed", n => { MaxClockSpeed = n.GetLongValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "numCores", n => { NumCores = n.GetIntValue(); } }, - { "numLogicalCores", n => { NumLogicalCores = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("architecture", Architecture); - writer.WriteLongValue("clockSpeed", ClockSpeed); - writer.WriteLongValue("maxClockSpeed", MaxClockSpeed); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("numCores", NumCores); - writer.WriteIntValue("numLogicalCores", NumLogicalCores); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Processors/ProcessorsRequestBuilder.cs b/V2/Device/Item/Processors/ProcessorsRequestBuilder.cs deleted file mode 100644 index 1eab5f8..0000000 --- a/V2/Device/Item/Processors/ProcessorsRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Processors -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\processors - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ProcessorsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ProcessorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/processors", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ProcessorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/processors", rawUrl) - { - } - /// - /// Returns list of device Processor details - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Device.Item.Processors.Processors.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of device Processor details - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Processors.ProcessorsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Processors.ProcessorsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ProcessorsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Reboot/Item/WithModeItemRequestBuilder.cs b/V2/Device/Item/Reboot/Item/WithModeItemRequestBuilder.cs deleted file mode 100644 index e794937..0000000 --- a/V2/Device/Item/Reboot/Item/WithModeItemRequestBuilder.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Reboot.Item -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\reboot\{mode} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithModeItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithModeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/reboot/{mode}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithModeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/reboot/{mode}", rawUrl) - { - } - /// - /// Sends a command to restart the computer - /// - /// A - /// The request body - /// 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 PostAsync(global::NinjaOne.Client.V2.Device.Item.Reboot.Item.WithModePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Device.Item.Reboot.Item.WithModePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Sends a command to restart the computer - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Device.Item.Reboot.Item.WithModePostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Device.Item.Reboot.Item.WithModePostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Reboot.Item.WithModeItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Reboot.Item.WithModeItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithModeItemRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Reboot/Item/WithModePostRequestBody.cs b/V2/Device/Item/Reboot/Item/WithModePostRequestBody.cs deleted file mode 100644 index 5a6fde1..0000000 --- a/V2/Device/Item/Reboot/Item/WithModePostRequestBody.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Reboot.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithModePostRequestBody : 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; } - /// Stated reboot reason -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Reason { get; set; } -#nullable restore -#else - public string Reason { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithModePostRequestBody() - { - 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::NinjaOne.Client.V2.Device.Item.Reboot.Item.WithModePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Reboot.Item.WithModePostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "reason", n => { Reason = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("reason", Reason); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Reboot/RebootRequestBuilder.cs b/V2/Device/Item/Reboot/RebootRequestBuilder.cs deleted file mode 100644 index 7ef5dcf..0000000 --- a/V2/Device/Item/Reboot/RebootRequestBuilder.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Device.Item.Reboot.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Device.Item.Reboot -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\reboot - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RebootRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.device.item.reboot.item collection - /// Reboot mode - /// A - public global::NinjaOne.Client.V2.Device.Item.Reboot.Item.WithModeItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("mode", position); - return new global::NinjaOne.Client.V2.Device.Item.Reboot.Item.WithModeItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RebootRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/reboot", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RebootRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/reboot", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Script/Run/RunPostRequestBody.cs b/V2/Device/Item/Script/Run/RunPostRequestBody.cs deleted file mode 100644 index fb4f528..0000000 --- a/V2/Device/Item/Script/Run/RunPostRequestBody.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Script.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RunPostRequestBody : 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; } - /// Script identifier - public int? Id { get; set; } - /// Action/Script parameters -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Parameters { get; set; } -#nullable restore -#else - public string Parameters { get; set; } -#endif - /// Credential role/identifier -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? RunAs { get; set; } -#nullable restore -#else - public string RunAs { get; set; } -#endif - /// Type - public global::NinjaOne.Client.V2.Device.Item.Script.Run.RunPostRequestBody_type? Type { get; set; } - /// Built-in action identifier - public Guid? Uid { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RunPostRequestBody() - { - 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::NinjaOne.Client.V2.Device.Item.Script.Run.RunPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Script.Run.RunPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetIntValue(); } }, - { "parameters", n => { Parameters = n.GetStringValue(); } }, - { "runAs", n => { RunAs = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("parameters", Parameters); - writer.WriteStringValue("runAs", RunAs); - writer.WriteEnumValue("type", Type); - writer.WriteGuidValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Script/Run/RunPostRequestBody_type.cs b/V2/Device/Item/Script/Run/RunPostRequestBody_type.cs deleted file mode 100644 index 0bb4eac..0000000 --- a/V2/Device/Item/Script/Run/RunPostRequestBody_type.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Script.Run -{ - /// Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RunPostRequestBody_type - { - [EnumMember(Value = "ACTION")] - #pragma warning disable CS1591 - ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT")] - #pragma warning disable CS1591 - SCRIPT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Script/Run/RunRequestBuilder.cs b/V2/Device/Item/Script/Run/RunRequestBuilder.cs deleted file mode 100644 index ad23018..0000000 --- a/V2/Device/Item/Script/Run/RunRequestBuilder.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Script.Run -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\script\run - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RunRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RunRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/script/run", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RunRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/script/run", rawUrl) - { - } - /// - /// Run script or built-in action on a device - /// - /// A - /// The request body - /// 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 PostAsync(global::NinjaOne.Client.V2.Device.Item.Script.Run.RunPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Device.Item.Script.Run.RunPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Run script or built-in action on a device - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Device.Item.Script.Run.RunPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Device.Item.Script.Run.RunPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Script.Run.RunRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Script.Run.RunRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RunRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Script/ScriptRequestBuilder.cs b/V2/Device/Item/Script/ScriptRequestBuilder.cs deleted file mode 100644 index eea3a5b..0000000 --- a/V2/Device/Item/Script/ScriptRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Device.Item.Script.Run; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Device.Item.Script -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\script - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScriptRequestBuilder : BaseRequestBuilder - { - /// The run property - public global::NinjaOne.Client.V2.Device.Item.Script.Run.RunRequestBuilder Run - { - get => new global::NinjaOne.Client.V2.Device.Item.Script.Run.RunRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ScriptRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/script", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ScriptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/script", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Scripting/Options/Options4XXError.cs b/V2/Device/Item/Scripting/Options/Options4XXError.cs deleted file mode 100644 index 914db5b..0000000 --- a/V2/Device/Item/Scripting/Options/Options4XXError.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Scripting.Options -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Options4XXError : 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 categories property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Categories { get; set; } -#nullable restore -#else - public List Categories { get; set; } -#endif - /// The credentials property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError_credentials? Credentials { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError_credentials Credentials { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The scripts property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Scripts { get; set; } -#nullable restore -#else - public List Scripts { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Options4XXError() - { - 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::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "categories", n => { Categories = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError_categories.CreateFromDiscriminatorValue)?.AsList(); } }, - { "credentials", n => { Credentials = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError_credentials.CreateFromDiscriminatorValue); } }, - { "scripts", n => { Scripts = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError_scripts.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("categories", Categories); - writer.WriteObjectValue("credentials", Credentials); - writer.WriteCollectionOfObjectValues("scripts", Scripts); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Scripting/Options/Options4XXError_categories.cs b/V2/Device/Item/Scripting/Options/Options4XXError_categories.cs deleted file mode 100644 index 19ee891..0000000 --- a/V2/Device/Item/Scripting/Options/Options4XXError_categories.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Scripting.Options -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Options4XXError_categories : 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 id property - public int? Id { get; set; } - /// The internal property - public bool? Internal { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Options4XXError_categories() - { - 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::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError_categories CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError_categories(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetIntValue(); } }, - { "internal", n => { Internal = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("internal", Internal); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Scripting/Options/Options4XXError_credentials.cs b/V2/Device/Item/Scripting/Options/Options4XXError_credentials.cs deleted file mode 100644 index f8a0d9d..0000000 --- a/V2/Device/Item/Scripting/Options/Options4XXError_credentials.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Scripting.Options -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Options4XXError_credentials : 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 credentials property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Credentials { get; set; } -#nullable restore -#else - public List Credentials { get; set; } -#endif - /// The roles property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Options4XXError_credentials() - { - 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::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError_credentials CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError_credentials(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "credentials", n => { Credentials = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError_credentials_credentials.CreateFromDiscriminatorValue)?.AsList(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("credentials", Credentials); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Scripting/Options/Options4XXError_credentials_credentials.cs b/V2/Device/Item/Scripting/Options/Options4XXError_credentials_credentials.cs deleted file mode 100644 index 7e5d4c5..0000000 --- a/V2/Device/Item/Scripting/Options/Options4XXError_credentials_credentials.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Scripting.Options -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Options4XXError_credentials_credentials : 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 id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError_credentials_credentials_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Options4XXError_credentials_credentials() - { - 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::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError_credentials_credentials CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError_credentials_credentials(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Scripting/Options/Options4XXError_credentials_credentials_type.cs b/V2/Device/Item/Scripting/Options/Options4XXError_credentials_credentials_type.cs deleted file mode 100644 index af8b8a5..0000000 --- a/V2/Device/Item/Scripting/Options/Options4XXError_credentials_credentials_type.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Scripting.Options -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Options4XXError_credentials_credentials_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "SNMPV12C")] - #pragma warning disable CS1591 - SNMPV12C, - #pragma warning restore CS1591 - [EnumMember(Value = "SNMPV3")] - #pragma warning disable CS1591 - SNMPV3, - #pragma warning restore CS1591 - [EnumMember(Value = "TELNET_SSH")] - #pragma warning disable CS1591 - TELNET_SSH, - #pragma warning restore CS1591 - [EnumMember(Value = "NETWORK_LOCATION")] - #pragma warning disable CS1591 - NETWORK_LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "ENCRYPTION_KEY")] - #pragma warning disable CS1591 - ENCRYPTION_KEY, - #pragma warning restore CS1591 - [EnumMember(Value = "BASIC")] - #pragma warning disable CS1591 - BASIC, - #pragma warning restore CS1591 - [EnumMember(Value = "SNMPV1")] - #pragma warning disable CS1591 - SNMPV1, - #pragma warning restore CS1591 - [EnumMember(Value = "SNMPV2")] - #pragma warning disable CS1591 - SNMPV2, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Scripting/Options/Options4XXError_scripts.cs b/V2/Device/Item/Scripting/Options/Options4XXError_scripts.cs deleted file mode 100644 index feeed0c..0000000 --- a/V2/Device/Item/Scripting/Options/Options4XXError_scripts.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Scripting.Options -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Options4XXError_scripts : 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; } - /// Applicable architectures -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Architecture { get; set; } -#nullable restore -#else - public List Architecture { get; set; } -#endif - /// Script Category identifier - public int? CategoryId { get; set; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom script identifier (Scripts) - public int? Id { get; set; } - /// Script language -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Language { get; set; } -#nullable restore -#else - public string Language { get; set; } -#endif - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Type of script/action - public global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError_scripts_type? Type { get; set; } - /// Built-in action identifier (Actions) - public Guid? Uid { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Options4XXError_scripts() - { - 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::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError_scripts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError_scripts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "architecture", n => { Architecture = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "categoryId", n => { CategoryId = n.GetIntValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "language", n => { Language = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("architecture", Architecture); - writer.WriteIntValue("categoryId", CategoryId); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("language", Language); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("type", Type); - writer.WriteGuidValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Scripting/Options/Options4XXError_scripts_type.cs b/V2/Device/Item/Scripting/Options/Options4XXError_scripts_type.cs deleted file mode 100644 index d47930f..0000000 --- a/V2/Device/Item/Scripting/Options/Options4XXError_scripts_type.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Scripting.Options -{ - /// Type of script/action - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Options4XXError_scripts_type - { - [EnumMember(Value = "ACTION")] - #pragma warning disable CS1591 - ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT")] - #pragma warning disable CS1591 - SCRIPT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Scripting/Options/Options5XXError.cs b/V2/Device/Item/Scripting/Options/Options5XXError.cs deleted file mode 100644 index 0094aa5..0000000 --- a/V2/Device/Item/Scripting/Options/Options5XXError.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Scripting.Options -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Options5XXError : 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 categories property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Categories { get; set; } -#nullable restore -#else - public List Categories { get; set; } -#endif - /// The credentials property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError_credentials? Credentials { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError_credentials Credentials { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The scripts property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Scripts { get; set; } -#nullable restore -#else - public List Scripts { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Options5XXError() - { - 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::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "categories", n => { Categories = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError_categories.CreateFromDiscriminatorValue)?.AsList(); } }, - { "credentials", n => { Credentials = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError_credentials.CreateFromDiscriminatorValue); } }, - { "scripts", n => { Scripts = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError_scripts.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("categories", Categories); - writer.WriteObjectValue("credentials", Credentials); - writer.WriteCollectionOfObjectValues("scripts", Scripts); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Scripting/Options/Options5XXError_categories.cs b/V2/Device/Item/Scripting/Options/Options5XXError_categories.cs deleted file mode 100644 index 620d14a..0000000 --- a/V2/Device/Item/Scripting/Options/Options5XXError_categories.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Scripting.Options -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Options5XXError_categories : 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 id property - public int? Id { get; set; } - /// The internal property - public bool? Internal { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Options5XXError_categories() - { - 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::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError_categories CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError_categories(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetIntValue(); } }, - { "internal", n => { Internal = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("internal", Internal); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Scripting/Options/Options5XXError_credentials.cs b/V2/Device/Item/Scripting/Options/Options5XXError_credentials.cs deleted file mode 100644 index b888b03..0000000 --- a/V2/Device/Item/Scripting/Options/Options5XXError_credentials.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Scripting.Options -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Options5XXError_credentials : 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 credentials property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Credentials { get; set; } -#nullable restore -#else - public List Credentials { get; set; } -#endif - /// The roles property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Options5XXError_credentials() - { - 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::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError_credentials CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError_credentials(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "credentials", n => { Credentials = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError_credentials_credentials.CreateFromDiscriminatorValue)?.AsList(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("credentials", Credentials); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Scripting/Options/Options5XXError_credentials_credentials.cs b/V2/Device/Item/Scripting/Options/Options5XXError_credentials_credentials.cs deleted file mode 100644 index fd5e0e9..0000000 --- a/V2/Device/Item/Scripting/Options/Options5XXError_credentials_credentials.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Scripting.Options -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Options5XXError_credentials_credentials : 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 id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError_credentials_credentials_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Options5XXError_credentials_credentials() - { - 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::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError_credentials_credentials CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError_credentials_credentials(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Scripting/Options/Options5XXError_credentials_credentials_type.cs b/V2/Device/Item/Scripting/Options/Options5XXError_credentials_credentials_type.cs deleted file mode 100644 index 6d0a4a7..0000000 --- a/V2/Device/Item/Scripting/Options/Options5XXError_credentials_credentials_type.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Scripting.Options -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Options5XXError_credentials_credentials_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "SNMPV12C")] - #pragma warning disable CS1591 - SNMPV12C, - #pragma warning restore CS1591 - [EnumMember(Value = "SNMPV3")] - #pragma warning disable CS1591 - SNMPV3, - #pragma warning restore CS1591 - [EnumMember(Value = "TELNET_SSH")] - #pragma warning disable CS1591 - TELNET_SSH, - #pragma warning restore CS1591 - [EnumMember(Value = "NETWORK_LOCATION")] - #pragma warning disable CS1591 - NETWORK_LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "ENCRYPTION_KEY")] - #pragma warning disable CS1591 - ENCRYPTION_KEY, - #pragma warning restore CS1591 - [EnumMember(Value = "BASIC")] - #pragma warning disable CS1591 - BASIC, - #pragma warning restore CS1591 - [EnumMember(Value = "SNMPV1")] - #pragma warning disable CS1591 - SNMPV1, - #pragma warning restore CS1591 - [EnumMember(Value = "SNMPV2")] - #pragma warning disable CS1591 - SNMPV2, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Scripting/Options/Options5XXError_scripts.cs b/V2/Device/Item/Scripting/Options/Options5XXError_scripts.cs deleted file mode 100644 index 36fd041..0000000 --- a/V2/Device/Item/Scripting/Options/Options5XXError_scripts.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Scripting.Options -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Options5XXError_scripts : 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; } - /// Applicable architectures -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Architecture { get; set; } -#nullable restore -#else - public List Architecture { get; set; } -#endif - /// Script Category identifier - public int? CategoryId { get; set; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom script identifier (Scripts) - public int? Id { get; set; } - /// Script language -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Language { get; set; } -#nullable restore -#else - public string Language { get; set; } -#endif - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Type of script/action - public global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError_scripts_type? Type { get; set; } - /// Built-in action identifier (Actions) - public Guid? Uid { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Options5XXError_scripts() - { - 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::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError_scripts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError_scripts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "architecture", n => { Architecture = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "categoryId", n => { CategoryId = n.GetIntValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "language", n => { Language = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("architecture", Architecture); - writer.WriteIntValue("categoryId", CategoryId); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("language", Language); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("type", Type); - writer.WriteGuidValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Scripting/Options/Options5XXError_scripts_type.cs b/V2/Device/Item/Scripting/Options/Options5XXError_scripts_type.cs deleted file mode 100644 index 04c6a0c..0000000 --- a/V2/Device/Item/Scripting/Options/Options5XXError_scripts_type.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Scripting.Options -{ - /// Type of script/action - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Options5XXError_scripts_type - { - [EnumMember(Value = "ACTION")] - #pragma warning disable CS1591 - ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT")] - #pragma warning disable CS1591 - SCRIPT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Scripting/Options/OptionsRequestBuilder.cs b/V2/Device/Item/Scripting/Options/OptionsRequestBuilder.cs deleted file mode 100644 index 21515bb..0000000 --- a/V2/Device/Item/Scripting/Options/OptionsRequestBuilder.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Scripting.Options -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\scripting\options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OptionsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OptionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/scripting/options{?lang*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OptionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/scripting/options{?lang*}", rawUrl) - { - } - /// - /// Returns scripting options (built-in actions, custom scripts) available for device - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Device.Item.Scripting.Options.Options5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns scripting options (built-in actions, custom scripts) available for device - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Scripting.Options.OptionsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Scripting.Options.OptionsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns scripting options (built-in actions, custom scripts) available for device - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OptionsRequestBuilderGetQueryParameters - { - /// Language -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("lang")] - public string? Lang { get; set; } -#nullable restore -#else - [QueryParameter("lang")] - public string Lang { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OptionsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Scripting/ScriptingRequestBuilder.cs b/V2/Device/Item/Scripting/ScriptingRequestBuilder.cs deleted file mode 100644 index 77fa991..0000000 --- a/V2/Device/Item/Scripting/ScriptingRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Device.Item.Scripting.Options; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Device.Item.Scripting -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\scripting - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScriptingRequestBuilder : BaseRequestBuilder - { - /// The optionsPath property - public global::NinjaOne.Client.V2.Device.Item.Scripting.Options.OptionsRequestBuilder OptionsPath - { - get => new global::NinjaOne.Client.V2.Device.Item.Scripting.Options.OptionsRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ScriptingRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/scripting", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ScriptingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/scripting", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Software/Software.cs b/V2/Device/Item/Software/Software.cs deleted file mode 100644 index f12909c..0000000 --- a/V2/Device/Item/Software/Software.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Software -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Software : 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; } - /// Installation Date - public DateTimeOffset? InstallDate { get; set; } - /// Is System Component - public bool? IsSystemComponent { get; set; } - /// Location -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Location { get; set; } -#nullable restore -#else - public string Location { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Product Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Product Code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ProductCode { get; set; } -#nullable restore -#else - public string ProductCode { get; set; } -#endif - /// Publisher -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Publisher { get; set; } -#nullable restore -#else - public string Publisher { get; set; } -#endif - /// Size on disk - public long? Size { get; set; } - /// Version -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Version { get; set; } -#nullable restore -#else - public string Version { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Software() - { - 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::NinjaOne.Client.V2.Device.Item.Software.Software CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Software.Software(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "installDate", n => { InstallDate = n.GetDateTimeOffsetValue(); } }, - { "isSystemComponent", n => { IsSystemComponent = n.GetBoolValue(); } }, - { "location", n => { Location = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "productCode", n => { ProductCode = n.GetStringValue(); } }, - { "publisher", n => { Publisher = n.GetStringValue(); } }, - { "size", n => { Size = n.GetLongValue(); } }, - { "version", n => { Version = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDateTimeOffsetValue("installDate", InstallDate); - writer.WriteBoolValue("isSystemComponent", IsSystemComponent); - writer.WriteStringValue("location", Location); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("productCode", ProductCode); - writer.WriteStringValue("publisher", Publisher); - writer.WriteLongValue("size", Size); - writer.WriteStringValue("version", Version); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Software/SoftwareRequestBuilder.cs b/V2/Device/Item/Software/SoftwareRequestBuilder.cs deleted file mode 100644 index 7adf8a9..0000000 --- a/V2/Device/Item/Software/SoftwareRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Software -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\software - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwareRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SoftwareRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/software", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SoftwareRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/software", rawUrl) - { - } - /// - /// Returns list of software installed on device - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Device.Item.Software.Software.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of software installed on device - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Software.SoftwareRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Software.SoftwareRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwareRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/SoftwarePatchInstalls/SoftwarePatchInstalls.cs b/V2/Device/Item/SoftwarePatchInstalls/SoftwarePatchInstalls.cs deleted file mode 100644 index d6e88a4..0000000 --- a/V2/Device/Item/SoftwarePatchInstalls/SoftwarePatchInstalls.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.SoftwarePatchInstalls -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwarePatchInstalls : 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; } - /// Identifier - public Guid? Id { get; set; } - /// Impact -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Impact { get; set; } -#nullable restore -#else - public string Impact { get; set; } -#endif - /// Installation attempt timestamp - public double? InstalledAt { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Software product identifier - public Guid? ProductIdentifier { get; set; } - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Patch title -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Title { get; set; } -#nullable restore -#else - public string Title { get; set; } -#endif - /// Patch type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwarePatchInstalls() - { - 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::NinjaOne.Client.V2.Device.Item.SoftwarePatchInstalls.SoftwarePatchInstalls CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.SoftwarePatchInstalls.SoftwarePatchInstalls(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetGuidValue(); } }, - { "impact", n => { Impact = n.GetStringValue(); } }, - { "installedAt", n => { InstalledAt = n.GetDoubleValue(); } }, - { "productIdentifier", n => { ProductIdentifier = n.GetGuidValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "title", n => { Title = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("impact", Impact); - writer.WriteDoubleValue("installedAt", InstalledAt); - writer.WriteGuidValue("productIdentifier", ProductIdentifier); - writer.WriteStringValue("status", Status); - writer.WriteStringValue("title", Title); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/SoftwarePatchInstalls/SoftwarePatchInstallsRequestBuilder.cs b/V2/Device/Item/SoftwarePatchInstalls/SoftwarePatchInstallsRequestBuilder.cs deleted file mode 100644 index 51fc26c..0000000 --- a/V2/Device/Item/SoftwarePatchInstalls/SoftwarePatchInstallsRequestBuilder.cs +++ /dev/null @@ -1,163 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.SoftwarePatchInstalls -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\software-patch-installs - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwarePatchInstallsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SoftwarePatchInstallsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/software-patch-installs{?impact*,installedAfter*,installedBefore*,productIdentifier*,status*,type*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SoftwarePatchInstallsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/software-patch-installs{?impact*,installedAfter*,installedBefore*,productIdentifier*,status*,type*}", rawUrl) - { - } - /// - /// Returns 3rd party software patch installation history records for device (successful and failed) - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Device.Item.SoftwarePatchInstalls.SoftwarePatchInstalls.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns 3rd party software patch installation history records for device (successful and failed) - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.SoftwarePatchInstalls.SoftwarePatchInstallsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.SoftwarePatchInstalls.SoftwarePatchInstallsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns 3rd party software patch installation history records for device (successful and failed) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwarePatchInstallsRequestBuilderGetQueryParameters - { - /// Patch Impact filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("impact")] - public string? Impact { get; set; } -#nullable restore -#else - [QueryParameter("impact")] - public string Impact { get; set; } -#endif - /// Include patches installed after specified date -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("installedAfter")] - public string? InstalledAfter { get; set; } -#nullable restore -#else - [QueryParameter("installedAfter")] - public string InstalledAfter { get; set; } -#endif - /// Include patches installed before specified date -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("installedBefore")] - public string? InstalledBefore { get; set; } -#nullable restore -#else - [QueryParameter("installedBefore")] - public string InstalledBefore { get; set; } -#endif - /// Product Identifier -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("productIdentifier")] - public string? ProductIdentifier { get; set; } -#nullable restore -#else - [QueryParameter("productIdentifier")] - public string ProductIdentifier { get; set; } -#endif - /// Patch Status filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("status")] - public string? Status { get; set; } -#nullable restore -#else - [QueryParameter("status")] - public string Status { get; set; } -#endif - /// Patch Type filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("type")] - public string? Type { get; set; } -#nullable restore -#else - [QueryParameter("type")] - public string Type { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwarePatchInstallsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/SoftwarePatches/SoftwarePatches.cs b/V2/Device/Item/SoftwarePatches/SoftwarePatches.cs deleted file mode 100644 index ef1610f..0000000 --- a/V2/Device/Item/SoftwarePatches/SoftwarePatches.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.SoftwarePatches -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwarePatches : 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; } - /// Identifier - public Guid? Id { get; set; } - /// Impact -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Impact { get; set; } -#nullable restore -#else - public string Impact { get; set; } -#endif - /// Installation attempt timestamp - public double? InstalledAt { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Software product identifier - public Guid? ProductIdentifier { get; set; } - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Patch title -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Title { get; set; } -#nullable restore -#else - public string Title { get; set; } -#endif - /// Patch type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwarePatches() - { - 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::NinjaOne.Client.V2.Device.Item.SoftwarePatches.SoftwarePatches CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.SoftwarePatches.SoftwarePatches(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetGuidValue(); } }, - { "impact", n => { Impact = n.GetStringValue(); } }, - { "installedAt", n => { InstalledAt = n.GetDoubleValue(); } }, - { "productIdentifier", n => { ProductIdentifier = n.GetGuidValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "title", n => { Title = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("impact", Impact); - writer.WriteDoubleValue("installedAt", InstalledAt); - writer.WriteGuidValue("productIdentifier", ProductIdentifier); - writer.WriteStringValue("status", Status); - writer.WriteStringValue("title", Title); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/SoftwarePatches/SoftwarePatchesRequestBuilder.cs b/V2/Device/Item/SoftwarePatches/SoftwarePatchesRequestBuilder.cs deleted file mode 100644 index 0a99ad9..0000000 --- a/V2/Device/Item/SoftwarePatches/SoftwarePatchesRequestBuilder.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.SoftwarePatches -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\software-patches - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwarePatchesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SoftwarePatchesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/software-patches{?impact*,productIdentifier*,status*,type*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SoftwarePatchesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/software-patches{?impact*,productIdentifier*,status*,type*}", rawUrl) - { - } - /// - /// Returns list of 3rd party Software patches for a device (for which there were no installation attempts) - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Device.Item.SoftwarePatches.SoftwarePatches.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of 3rd party Software patches for a device (for which there were no installation attempts) - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.SoftwarePatches.SoftwarePatchesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.SoftwarePatches.SoftwarePatchesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of 3rd party Software patches for a device (for which there were no installation attempts) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwarePatchesRequestBuilderGetQueryParameters - { - /// Patch Impact filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("impact")] - public string? Impact { get; set; } -#nullable restore -#else - [QueryParameter("impact")] - public string Impact { get; set; } -#endif - /// Product Identifier -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("productIdentifier")] - public string? ProductIdentifier { get; set; } -#nullable restore -#else - [QueryParameter("productIdentifier")] - public string ProductIdentifier { get; set; } -#endif - /// Patch Status filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("status")] - public string? Status { get; set; } -#nullable restore -#else - [QueryParameter("status")] - public string Status { get; set; } -#endif - /// Patch Type filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("type")] - public string? Type { get; set; } -#nullable restore -#else - [QueryParameter("type")] - public string Type { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwarePatchesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Volumes/Volumes.cs b/V2/Device/Item/Volumes/Volumes.cs deleted file mode 100644 index 4a80659..0000000 --- a/V2/Device/Item/Volumes/Volumes.cs +++ /dev/null @@ -1,145 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Volumes -{ - /// - /// Disk Volumes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Volumes : ApiException, 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; } - /// Automatically Mounted - public bool? AutoMount { get; set; } - /// BitLocker Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Device.Item.Volumes.Volumes_bitLockerStatus? BitLockerStatus { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Device.Item.Volumes.Volumes_bitLockerStatus BitLockerStatus { get; set; } -#endif - /// Capacity (bytes) - public long? Capacity { get; set; } - /// Compressed - public bool? Compressed { get; set; } - /// Device Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DeviceType { get; set; } -#nullable restore -#else - public string DeviceType { get; set; } -#endif - /// Drive Letter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DriveLetter { get; set; } -#nullable restore -#else - public string DriveLetter { get; set; } -#endif - /// File System Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileSystem { get; set; } -#nullable restore -#else - public string FileSystem { get; set; } -#endif - /// Free Space (bytes) - public long? FreeSpace { get; set; } - /// Volume Label -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Serial Number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SerialNumber { get; set; } -#nullable restore -#else - public string SerialNumber { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Volumes() - { - 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::NinjaOne.Client.V2.Device.Item.Volumes.Volumes CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Volumes.Volumes(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "autoMount", n => { AutoMount = n.GetBoolValue(); } }, - { "bitLockerStatus", n => { BitLockerStatus = n.GetObjectValue(global::NinjaOne.Client.V2.Device.Item.Volumes.Volumes_bitLockerStatus.CreateFromDiscriminatorValue); } }, - { "capacity", n => { Capacity = n.GetLongValue(); } }, - { "compressed", n => { Compressed = n.GetBoolValue(); } }, - { "deviceType", n => { DeviceType = n.GetStringValue(); } }, - { "driveLetter", n => { DriveLetter = n.GetStringValue(); } }, - { "fileSystem", n => { FileSystem = n.GetStringValue(); } }, - { "freeSpace", n => { FreeSpace = n.GetLongValue(); } }, - { "label", n => { Label = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "serialNumber", n => { SerialNumber = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("autoMount", AutoMount); - writer.WriteObjectValue("bitLockerStatus", BitLockerStatus); - writer.WriteLongValue("capacity", Capacity); - writer.WriteBoolValue("compressed", Compressed); - writer.WriteStringValue("deviceType", DeviceType); - writer.WriteStringValue("driveLetter", DriveLetter); - writer.WriteStringValue("fileSystem", FileSystem); - writer.WriteLongValue("freeSpace", FreeSpace); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("serialNumber", SerialNumber); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Volumes/VolumesRequestBuilder.cs b/V2/Device/Item/Volumes/VolumesRequestBuilder.cs deleted file mode 100644 index b616ad0..0000000 --- a/V2/Device/Item/Volumes/VolumesRequestBuilder.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.Volumes -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\volumes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class VolumesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public VolumesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/volumes{?include*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public VolumesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/volumes{?include*}", rawUrl) - { - } - /// - /// Returns device volumes' details - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Device.Item.Volumes.Volumes.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns device volumes' details - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.Volumes.VolumesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.Volumes.VolumesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns device volumes' details - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class VolumesRequestBuilderGetQueryParameters - { - /// Additional information to include (bl - BitLocker status) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("include")] - public string? Include { get; set; } -#nullable restore -#else - [QueryParameter("include")] - public string Include { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class VolumesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Volumes/Volumes_bitLockerStatus.cs b/V2/Device/Item/Volumes/Volumes_bitLockerStatus.cs deleted file mode 100644 index 3209673..0000000 --- a/V2/Device/Item/Volumes/Volumes_bitLockerStatus.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.Volumes -{ - /// - /// BitLocker Status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Volumes_bitLockerStatus : 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; } - /// Volume encryption or decryption status. - public global::NinjaOne.Client.V2.Device.Item.Volumes.Volumes_bitLockerStatus_conversionStatus? ConversionStatus { get; set; } - /// Indicated the encryption algorithm and key size used on the volume - public global::NinjaOne.Client.V2.Device.Item.Volumes.Volumes_bitLockerStatus_encryptionMethod? EncryptionMethod { get; set; } - /// Is initialized for protection - public bool? InitializedForProtection { get; set; } - /// Indicates whether the contents of the volume are accessible from Windows - public global::NinjaOne.Client.V2.Device.Item.Volumes.Volumes_bitLockerStatus_lockStatus? LockStatus { get; set; } - /// indicates whether the volume and its encryption key (if any) are secured. - public global::NinjaOne.Client.V2.Device.Item.Volumes.Volumes_bitLockerStatus_protectionStatus? ProtectionStatus { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Volumes_bitLockerStatus() - { - 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::NinjaOne.Client.V2.Device.Item.Volumes.Volumes_bitLockerStatus CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.Volumes.Volumes_bitLockerStatus(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "conversionStatus", n => { ConversionStatus = n.GetEnumValue(); } }, - { "encryptionMethod", n => { EncryptionMethod = n.GetEnumValue(); } }, - { "initializedForProtection", n => { InitializedForProtection = n.GetBoolValue(); } }, - { "lockStatus", n => { LockStatus = n.GetEnumValue(); } }, - { "protectionStatus", n => { ProtectionStatus = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("conversionStatus", ConversionStatus); - writer.WriteEnumValue("encryptionMethod", EncryptionMethod); - writer.WriteBoolValue("initializedForProtection", InitializedForProtection); - writer.WriteEnumValue("lockStatus", LockStatus); - writer.WriteEnumValue("protectionStatus", ProtectionStatus); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/Volumes/Volumes_bitLockerStatus_conversionStatus.cs b/V2/Device/Item/Volumes/Volumes_bitLockerStatus_conversionStatus.cs deleted file mode 100644 index c73f182..0000000 --- a/V2/Device/Item/Volumes/Volumes_bitLockerStatus_conversionStatus.cs +++ /dev/null @@ -1,39 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Volumes -{ - /// Volume encryption or decryption status. - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Volumes_bitLockerStatus_conversionStatus - { - [EnumMember(Value = "FULLY_DECRYPTED")] - #pragma warning disable CS1591 - FULLY_DECRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "FULLY_ENCRYPTED")] - #pragma warning disable CS1591 - FULLY_ENCRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "ENCRYPTION_IN_PROGRESS")] - #pragma warning disable CS1591 - ENCRYPTION_IN_PROGRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "DECRYPTION_IN_PROGRESS")] - #pragma warning disable CS1591 - DECRYPTION_IN_PROGRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "ENCRYPTION_PAUSED")] - #pragma warning disable CS1591 - ENCRYPTION_PAUSED, - #pragma warning restore CS1591 - [EnumMember(Value = "DECRYPTION_PAUSED")] - #pragma warning disable CS1591 - DECRYPTION_PAUSED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Volumes/Volumes_bitLockerStatus_encryptionMethod.cs b/V2/Device/Item/Volumes/Volumes_bitLockerStatus_encryptionMethod.cs deleted file mode 100644 index 2def112..0000000 --- a/V2/Device/Item/Volumes/Volumes_bitLockerStatus_encryptionMethod.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Volumes -{ - /// Indicated the encryption algorithm and key size used on the volume - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Volumes_bitLockerStatus_encryptionMethod - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "AES_128_WITH_DIFFUSER")] - #pragma warning disable CS1591 - AES_128_WITH_DIFFUSER, - #pragma warning restore CS1591 - [EnumMember(Value = "AES_256_WITH_DIFFUSER")] - #pragma warning disable CS1591 - AES_256_WITH_DIFFUSER, - #pragma warning restore CS1591 - [EnumMember(Value = "AES_128")] - #pragma warning disable CS1591 - AES_128, - #pragma warning restore CS1591 - [EnumMember(Value = "AES_256")] - #pragma warning disable CS1591 - AES_256, - #pragma warning restore CS1591 - [EnumMember(Value = "HARDWARE_ENCRYPTION")] - #pragma warning disable CS1591 - HARDWARE_ENCRYPTION, - #pragma warning restore CS1591 - [EnumMember(Value = "XTS_AES_128")] - #pragma warning disable CS1591 - XTS_AES_128, - #pragma warning restore CS1591 - [EnumMember(Value = "XTS_AES_256")] - #pragma warning disable CS1591 - XTS_AES_256, - #pragma warning restore CS1591 - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Volumes/Volumes_bitLockerStatus_lockStatus.cs b/V2/Device/Item/Volumes/Volumes_bitLockerStatus_lockStatus.cs deleted file mode 100644 index 32e1c7b..0000000 --- a/V2/Device/Item/Volumes/Volumes_bitLockerStatus_lockStatus.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Volumes -{ - /// Indicates whether the contents of the volume are accessible from Windows - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Volumes_bitLockerStatus_lockStatus - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "UNLOCKED")] - #pragma warning disable CS1591 - UNLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCKED")] - #pragma warning disable CS1591 - LOCKED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/Volumes/Volumes_bitLockerStatus_protectionStatus.cs b/V2/Device/Item/Volumes/Volumes_bitLockerStatus_protectionStatus.cs deleted file mode 100644 index 31e89cf..0000000 --- a/V2/Device/Item/Volumes/Volumes_bitLockerStatus_protectionStatus.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.Volumes -{ - /// indicates whether the volume and its encryption key (if any) are secured. - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Volumes_bitLockerStatus_protectionStatus - { - [EnumMember(Value = "UNPROTECTED")] - #pragma warning disable CS1591 - UNPROTECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PROTECTED")] - #pragma warning disable CS1591 - PROTECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/WindowsService/Item/Configure/ConfigurePostRequestBody.cs b/V2/Device/Item/WindowsService/Item/Configure/ConfigurePostRequestBody.cs deleted file mode 100644 index 08e4c03..0000000 --- a/V2/Device/Item/WindowsService/Item/Configure/ConfigurePostRequestBody.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.WindowsService.Item.Configure -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ConfigurePostRequestBody : 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; } - /// Start Type - public global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Configure.ConfigurePostRequestBody_startType? StartType { get; set; } - /// Username -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UserName { get; set; } -#nullable restore -#else - public string UserName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ConfigurePostRequestBody() - { - 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::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Configure.ConfigurePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Configure.ConfigurePostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "startType", n => { StartType = n.GetEnumValue(); } }, - { "userName", n => { UserName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("startType", StartType); - writer.WriteStringValue("userName", UserName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/WindowsService/Item/Configure/ConfigurePostRequestBody_startType.cs b/V2/Device/Item/WindowsService/Item/Configure/ConfigurePostRequestBody_startType.cs deleted file mode 100644 index 9464d78..0000000 --- a/V2/Device/Item/WindowsService/Item/Configure/ConfigurePostRequestBody_startType.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.WindowsService.Item.Configure -{ - /// Start Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum ConfigurePostRequestBody_startType - { - [EnumMember(Value = "AUTO_START")] - #pragma warning disable CS1591 - AUTO_START, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTO_START_DELAYED")] - #pragma warning disable CS1591 - AUTO_START_DELAYED, - #pragma warning restore CS1591 - [EnumMember(Value = "BOOT_START")] - #pragma warning disable CS1591 - BOOT_START, - #pragma warning restore CS1591 - [EnumMember(Value = "DEMAND_START")] - #pragma warning disable CS1591 - DEMAND_START, - #pragma warning restore CS1591 - [EnumMember(Value = "DISABLED")] - #pragma warning disable CS1591 - DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM_START")] - #pragma warning disable CS1591 - SYSTEM_START, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/WindowsService/Item/Configure/ConfigureRequestBuilder.cs b/V2/Device/Item/WindowsService/Item/Configure/ConfigureRequestBuilder.cs deleted file mode 100644 index 26c2517..0000000 --- a/V2/Device/Item/WindowsService/Item/Configure/ConfigureRequestBuilder.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.WindowsService.Item.Configure -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\windows-service\{serviceId}\configure - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConfigureRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ConfigureRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/windows-service/{serviceId}/configure", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ConfigureRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/windows-service/{serviceId}/configure", rawUrl) - { - } - /// - /// Configures Windows Service startup settings - /// - /// A - /// The request body - /// 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 PostAsync(global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Configure.ConfigurePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Configure.ConfigurePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Configures Windows Service startup settings - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Configure.ConfigurePostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Configure.ConfigurePostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Configure.ConfigureRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Configure.ConfigureRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConfigureRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/WindowsService/Item/Control/ControlPostRequestBody.cs b/V2/Device/Item/WindowsService/Item/Control/ControlPostRequestBody.cs deleted file mode 100644 index 55e55d3..0000000 --- a/V2/Device/Item/WindowsService/Item/Control/ControlPostRequestBody.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.WindowsService.Item.Control -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ControlPostRequestBody : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Action - public global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Control.ControlPostRequestBody_action? Action { get; set; } - /// 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. - /// - public ControlPostRequestBody() - { - 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::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Control.ControlPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Control.ControlPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "action", n => { Action = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("action", Action); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/WindowsService/Item/Control/ControlPostRequestBody_action.cs b/V2/Device/Item/WindowsService/Item/Control/ControlPostRequestBody_action.cs deleted file mode 100644 index 8262b72..0000000 --- a/V2/Device/Item/WindowsService/Item/Control/ControlPostRequestBody_action.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.WindowsService.Item.Control -{ - /// Action - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum ControlPostRequestBody_action - { - [EnumMember(Value = "START")] - #pragma warning disable CS1591 - START, - #pragma warning restore CS1591 - [EnumMember(Value = "PAUSE")] - #pragma warning disable CS1591 - PAUSE, - #pragma warning restore CS1591 - [EnumMember(Value = "STOP")] - #pragma warning disable CS1591 - STOP, - #pragma warning restore CS1591 - [EnumMember(Value = "RESTART")] - #pragma warning disable CS1591 - RESTART, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/WindowsService/Item/Control/ControlRequestBuilder.cs b/V2/Device/Item/WindowsService/Item/Control/ControlRequestBuilder.cs deleted file mode 100644 index 38a0e91..0000000 --- a/V2/Device/Item/WindowsService/Item/Control/ControlRequestBuilder.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.WindowsService.Item.Control -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\windows-service\{serviceId}\control - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ControlRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ControlRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/windows-service/{serviceId}/control", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ControlRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/windows-service/{serviceId}/control", rawUrl) - { - } - /// - /// Start/Stop/Restart Windows Service on a device - /// - /// A - /// The request body - /// 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 PostAsync(global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Control.ControlPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Control.ControlPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Start/Stop/Restart Windows Service on a device - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Control.ControlPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Control.ControlPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Control.ControlRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Control.ControlRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ControlRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/WindowsService/Item/WithServiceItemRequestBuilder.cs b/V2/Device/Item/WindowsService/Item/WithServiceItemRequestBuilder.cs deleted file mode 100644 index 01de133..0000000 --- a/V2/Device/Item/WindowsService/Item/WithServiceItemRequestBuilder.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Device.Item.WindowsService.Item.Configure; -using NinjaOne.Client.V2.Device.Item.WindowsService.Item.Control; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Device.Item.WindowsService.Item -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\windows-service\{serviceId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithServiceItemRequestBuilder : BaseRequestBuilder - { - /// The configure property - public global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Configure.ConfigureRequestBuilder Configure - { - get => new global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Configure.ConfigureRequestBuilder(PathParameters, RequestAdapter); - } - /// The control property - public global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Control.ControlRequestBuilder Control - { - get => new global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.Control.ControlRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithServiceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/windows-service/{serviceId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithServiceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/windows-service/{serviceId}", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/WindowsService/WindowsServiceRequestBuilder.cs b/V2/Device/Item/WindowsService/WindowsServiceRequestBuilder.cs deleted file mode 100644 index d87b103..0000000 --- a/V2/Device/Item/WindowsService/WindowsServiceRequestBuilder.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Device.Item.WindowsService.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Device.Item.WindowsService -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\windows-service - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsServiceRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.device.item.windowsService.item collection - /// Service identifier - /// A - public global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.WithServiceItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("serviceId", position); - return new global::NinjaOne.Client.V2.Device.Item.WindowsService.Item.WithServiceItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WindowsServiceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/windows-service", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WindowsServiceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/windows-service", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/WindowsServices/GetStateQueryParameterType.cs b/V2/Device/Item/WindowsServices/GetStateQueryParameterType.cs deleted file mode 100644 index 5619f23..0000000 --- a/V2/Device/Item/WindowsServices/GetStateQueryParameterType.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.WindowsServices -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum GetStateQueryParameterType - #pragma warning restore CS1591 - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "STOPPED")] - #pragma warning disable CS1591 - STOPPED, - #pragma warning restore CS1591 - [EnumMember(Value = "START_PENDING")] - #pragma warning disable CS1591 - START_PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "RUNNING")] - #pragma warning disable CS1591 - RUNNING, - #pragma warning restore CS1591 - [EnumMember(Value = "STOP_PENDING")] - #pragma warning disable CS1591 - STOP_PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "PAUSE_PENDING")] - #pragma warning disable CS1591 - PAUSE_PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "PAUSED")] - #pragma warning disable CS1591 - PAUSED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTINUE_PENDING")] - #pragma warning disable CS1591 - CONTINUE_PENDING, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/WindowsServices/WindowsServices.cs b/V2/Device/Item/WindowsServices/WindowsServices.cs deleted file mode 100644 index b59982d..0000000 --- a/V2/Device/Item/WindowsServices/WindowsServices.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Device.Item.WindowsServices -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WindowsServices : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Display Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Start Type - public global::NinjaOne.Client.V2.Device.Item.WindowsServices.WindowsServices_startType? StartType { get; set; } - /// State - public global::NinjaOne.Client.V2.Device.Item.WindowsServices.WindowsServices_state? State { get; set; } - /// User Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UserName { get; set; } -#nullable restore -#else - public string UserName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsServices() - { - 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::NinjaOne.Client.V2.Device.Item.WindowsServices.WindowsServices CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Device.Item.WindowsServices.WindowsServices(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "startType", n => { StartType = n.GetEnumValue(); } }, - { "state", n => { State = n.GetEnumValue(); } }, - { "userName", n => { UserName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("startType", StartType); - writer.WriteEnumValue("state", State); - writer.WriteStringValue("userName", UserName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/WindowsServices/WindowsServicesRequestBuilder.cs b/V2/Device/Item/WindowsServices/WindowsServicesRequestBuilder.cs deleted file mode 100644 index 5d4e293..0000000 --- a/V2/Device/Item/WindowsServices/WindowsServicesRequestBuilder.cs +++ /dev/null @@ -1,127 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Device.Item.WindowsServices -{ - /// - /// Builds and executes requests for operations under \v2\device\{id}\windows-services - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsServicesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WindowsServicesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/windows-services{?name*,state*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WindowsServicesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device/{id}/windows-services{?name*,state*}", rawUrl) - { - } - /// - /// Returns list of Windows Services and their statuses - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Device.Item.WindowsServices.WindowsServices.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of Windows Services and their statuses - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Device.Item.WindowsServices.WindowsServicesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Device.Item.WindowsServices.WindowsServicesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of Windows Services and their statuses - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsServicesRequestBuilderGetQueryParameters - { - /// Service name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("name")] - public string? Name { get; set; } -#nullable restore -#else - [QueryParameter("name")] - public string Name { get; set; } -#endif - /// Service state - [Obsolete("This property is deprecated, use StateAsGetStateQueryParameterType instead")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("state")] - public string? State { get; set; } -#nullable restore -#else - [QueryParameter("state")] - public string State { get; set; } -#endif - /// Service state - [QueryParameter("state")] - public global::NinjaOne.Client.V2.Device.Item.WindowsServices.GetStateQueryParameterType? StateAsGetStateQueryParameterType { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsServicesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Device/Item/WindowsServices/WindowsServices_startType.cs b/V2/Device/Item/WindowsServices/WindowsServices_startType.cs deleted file mode 100644 index 019b714..0000000 --- a/V2/Device/Item/WindowsServices/WindowsServices_startType.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.WindowsServices -{ - /// Start Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsServices_startType - { - [EnumMember(Value = "AUTO_START")] - #pragma warning disable CS1591 - AUTO_START, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTO_START_DELAYED")] - #pragma warning disable CS1591 - AUTO_START_DELAYED, - #pragma warning restore CS1591 - [EnumMember(Value = "BOOT_START")] - #pragma warning disable CS1591 - BOOT_START, - #pragma warning restore CS1591 - [EnumMember(Value = "DEMAND_START")] - #pragma warning disable CS1591 - DEMAND_START, - #pragma warning restore CS1591 - [EnumMember(Value = "DISABLED")] - #pragma warning disable CS1591 - DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM_START")] - #pragma warning disable CS1591 - SYSTEM_START, - #pragma warning restore CS1591 - } -} diff --git a/V2/Device/Item/WindowsServices/WindowsServices_state.cs b/V2/Device/Item/WindowsServices/WindowsServices_state.cs deleted file mode 100644 index 926e8a3..0000000 --- a/V2/Device/Item/WindowsServices/WindowsServices_state.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Device.Item.WindowsServices -{ - /// State - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsServices_state - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "STOPPED")] - #pragma warning disable CS1591 - STOPPED, - #pragma warning restore CS1591 - [EnumMember(Value = "START_PENDING")] - #pragma warning disable CS1591 - START_PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "RUNNING")] - #pragma warning disable CS1591 - RUNNING, - #pragma warning restore CS1591 - [EnumMember(Value = "STOP_PENDING")] - #pragma warning disable CS1591 - STOP_PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "PAUSE_PENDING")] - #pragma warning disable CS1591 - PAUSE_PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "PAUSED")] - #pragma warning disable CS1591 - PAUSED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTINUE_PENDING")] - #pragma warning disable CS1591 - CONTINUE_PENDING, - #pragma warning restore CS1591 - } -} diff --git a/V2/DeviceCustomFields/DeviceCustomFields.cs b/V2/DeviceCustomFields/DeviceCustomFields.cs deleted file mode 100644 index c2be449..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields.cs +++ /dev/null @@ -1,162 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceCustomFields : ApiException, IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Active - public bool? Active { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Public API Permission - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_apiPermission? ApiPermission { get; set; } - /// The content property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content? Content { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content Content { get; set; } -#endif - /// Create Time - public double? CreateTime { get; set; } - /// Default Value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DefaultValue { get; set; } -#nullable restore -#else - public string DefaultValue { get; set; } -#endif - /// Definition Scope -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DefinitionScope { get; set; } -#nullable restore -#else - public List DefinitionScope { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// End User Permission - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_endUserPermission? EndUserPermission { get; set; } - /// Entity Type - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_entityType? EntityType { get; set; } - /// Label -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Scope - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_scope? Scope { get; set; } - /// Script Permission - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_scriptPermission? ScriptPermission { get; set; } - /// System - public bool? System { get; set; } - /// Technician Permission - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_technicianPermission? TechnicianPermission { get; set; } - /// Type - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_type? Type { get; set; } - /// Update Time - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DeviceCustomFields() - { - 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::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "apiPermission", n => { ApiPermission = n.GetEnumValue(); } }, - { "content", n => { Content = n.GetObjectValue(global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content.CreateFromDiscriminatorValue); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "defaultValue", n => { DefaultValue = n.GetStringValue(); } }, - { "definitionScope", n => { DefinitionScope = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "endUserPermission", n => { EndUserPermission = n.GetEnumValue(); } }, - { "entityType", n => { EntityType = n.GetEnumValue(); } }, - { "label", n => { Label = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - { "scriptPermission", n => { ScriptPermission = n.GetEnumValue(); } }, - { "system", n => { System = n.GetBoolValue(); } }, - { "technicianPermission", n => { TechnicianPermission = n.GetEnumValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteEnumValue("apiPermission", ApiPermission); - writer.WriteObjectValue("content", Content); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("defaultValue", DefaultValue); - writer.WriteCollectionOfEnumValues("definitionScope", DefinitionScope); - writer.WriteStringValue("description", Description); - writer.WriteEnumValue("endUserPermission", EndUserPermission); - writer.WriteEnumValue("entityType", EntityType); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("scope", Scope); - writer.WriteEnumValue("scriptPermission", ScriptPermission); - writer.WriteBoolValue("system", System); - writer.WriteEnumValue("technicianPermission", TechnicianPermission); - writer.WriteEnumValue("type", Type); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DeviceCustomFields/DeviceCustomFieldsRequestBuilder.cs b/V2/DeviceCustomFields/DeviceCustomFieldsRequestBuilder.cs deleted file mode 100644 index 57fec9f..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFieldsRequestBuilder.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - /// - /// Builds and executes requests for operations under \v2\device-custom-fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceCustomFieldsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DeviceCustomFieldsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device-custom-fields{?scopes*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DeviceCustomFieldsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/device-custom-fields{?scopes*}", rawUrl) - { - } - /// - /// Returns list of all custom fields - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of all custom fields - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFieldsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFieldsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of all custom fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceCustomFieldsRequestBuilderGetQueryParameters - { - /// Comma-separated list of scopes - [Obsolete("This property is deprecated, use ScopesAsGetScopesQueryParameterType instead")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("scopes")] - public string? Scopes { get; set; } -#nullable restore -#else - [QueryParameter("scopes")] - public string Scopes { get; set; } -#endif - /// Comma-separated list of scopes - [QueryParameter("scopes")] - public global::NinjaOne.Client.V2.DeviceCustomFields.GetScopesQueryParameterType? ScopesAsGetScopesQueryParameterType { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceCustomFieldsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DeviceCustomFields/DeviceCustomFields_apiPermission.cs b/V2/DeviceCustomFields/DeviceCustomFields_apiPermission.cs deleted file mode 100644 index 8e18ecd..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_apiPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - /// Public API Permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceCustomFields_apiPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DeviceCustomFields/DeviceCustomFields_content.cs b/V2/DeviceCustomFields/DeviceCustomFields_content.cs deleted file mode 100644 index c0e3f64..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_content.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceCustomFields_content : 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 advancedSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings? AdvancedSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings AdvancedSettings { get; set; } -#endif - /// The customizeForEndUser property - public bool? CustomizeForEndUser { get; set; } - /// The endUserCustomization property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_endUserCustomization? EndUserCustomization { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_endUserCustomization EndUserCustomization { get; set; } -#endif - /// The footerText property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FooterText { get; set; } -#nullable restore -#else - public string FooterText { get; set; } -#endif - /// The required property - public bool? Required { get; set; } - /// The tooltipText property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TooltipText { get; set; } -#nullable restore -#else - public string TooltipText { get; set; } -#endif - /// The values property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DeviceCustomFields_content() - { - 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::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "advancedSettings", n => { AdvancedSettings = n.GetObjectValue(global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings.CreateFromDiscriminatorValue); } }, - { "customizeForEndUser", n => { CustomizeForEndUser = n.GetBoolValue(); } }, - { "endUserCustomization", n => { EndUserCustomization = n.GetObjectValue(global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_endUserCustomization.CreateFromDiscriminatorValue); } }, - { "footerText", n => { FooterText = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tooltipText", n => { TooltipText = n.GetStringValue(); } }, - { "values", n => { Values = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_values.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("advancedSettings", AdvancedSettings); - writer.WriteBoolValue("customizeForEndUser", CustomizeForEndUser); - writer.WriteObjectValue("endUserCustomization", EndUserCustomization); - writer.WriteStringValue("footerText", FooterText); - writer.WriteBoolValue("required", Required); - writer.WriteStringValue("tooltipText", TooltipText); - writer.WriteCollectionOfObjectValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings.cs b/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings.cs deleted file mode 100644 index 1fdf1b8..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceCustomFields_content_advancedSettings : 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 complexityRules property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_complexityRules? ComplexityRules { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_complexityRules ComplexityRules { get; set; } -#endif - /// The dateFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_dateFilters? DateFilters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_dateFilters DateFilters { get; set; } -#endif - /// The expandLargeValueOnRender property - public bool? ExpandLargeValueOnRender { get; set; } - /// The fileExtensions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FileExtensions { get; set; } -#nullable restore -#else - public List FileExtensions { get; set; } -#endif - /// The fileMaxSize property - public int? FileMaxSize { get; set; } - /// The identifier property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_identifier? Identifier { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_identifier Identifier { get; set; } -#endif - /// The ipAddressType property - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_ipAddressType? IpAddressType { get; set; } - /// The maxCharacters property - public int? MaxCharacters { get; set; } - /// The monetary property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_monetary? Monetary { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_monetary Monetary { get; set; } -#endif - /// The nodeClass property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? NodeClass { get; set; } -#nullable restore -#else - public List NodeClass { get; set; } -#endif - /// The numericRange property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_numericRange? NumericRange { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_numericRange NumericRange { get; set; } -#endif - /// The org property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Org { get; set; } -#nullable restore -#else - public List Org { get; set; } -#endif - /// The templates property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Templates { get; set; } -#nullable restore -#else - public List Templates { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DeviceCustomFields_content_advancedSettings() - { - 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::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "complexityRules", n => { ComplexityRules = n.GetObjectValue(global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_complexityRules.CreateFromDiscriminatorValue); } }, - { "dateFilters", n => { DateFilters = n.GetObjectValue(global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_dateFilters.CreateFromDiscriminatorValue); } }, - { "expandLargeValueOnRender", n => { ExpandLargeValueOnRender = n.GetBoolValue(); } }, - { "fileExtensions", n => { FileExtensions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "fileMaxSize", n => { FileMaxSize = n.GetIntValue(); } }, - { "identifier", n => { Identifier = n.GetObjectValue(global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_identifier.CreateFromDiscriminatorValue); } }, - { "ipAddressType", n => { IpAddressType = n.GetEnumValue(); } }, - { "maxCharacters", n => { MaxCharacters = n.GetIntValue(); } }, - { "monetary", n => { Monetary = n.GetObjectValue(global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_monetary.CreateFromDiscriminatorValue); } }, - { "nodeClass", n => { NodeClass = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "numericRange", n => { NumericRange = n.GetObjectValue(global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_numericRange.CreateFromDiscriminatorValue); } }, - { "org", n => { Org = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "templates", n => { Templates = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("complexityRules", ComplexityRules); - writer.WriteObjectValue("dateFilters", DateFilters); - writer.WriteBoolValue("expandLargeValueOnRender", ExpandLargeValueOnRender); - writer.WriteCollectionOfPrimitiveValues("fileExtensions", FileExtensions); - writer.WriteIntValue("fileMaxSize", FileMaxSize); - writer.WriteObjectValue("identifier", Identifier); - writer.WriteEnumValue("ipAddressType", IpAddressType); - writer.WriteIntValue("maxCharacters", MaxCharacters); - writer.WriteObjectValue("monetary", Monetary); - writer.WriteCollectionOfEnumValues("nodeClass", NodeClass); - writer.WriteObjectValue("numericRange", NumericRange); - writer.WriteCollectionOfPrimitiveValues("org", Org); - writer.WriteCollectionOfPrimitiveValues("templates", Templates); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_complexityRules.cs b/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_complexityRules.cs deleted file mode 100644 index 54022d9..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_complexityRules.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceCustomFields_content_advancedSettings_complexityRules : 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 greaterOrEqualThanSixCharacters property - public bool? GreaterOrEqualThanSixCharacters { get; set; } - /// The mustContainOneInteger property - public bool? MustContainOneInteger { get; set; } - /// The mustContainOneLowercaseLetter property - public bool? MustContainOneLowercaseLetter { get; set; } - /// The mustContainOneUppercaseLetter property - public bool? MustContainOneUppercaseLetter { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DeviceCustomFields_content_advancedSettings_complexityRules() - { - 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::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_complexityRules CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_complexityRules(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "greaterOrEqualThanSixCharacters", n => { GreaterOrEqualThanSixCharacters = n.GetBoolValue(); } }, - { "mustContainOneInteger", n => { MustContainOneInteger = n.GetBoolValue(); } }, - { "mustContainOneLowercaseLetter", n => { MustContainOneLowercaseLetter = n.GetBoolValue(); } }, - { "mustContainOneUppercaseLetter", n => { MustContainOneUppercaseLetter = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("greaterOrEqualThanSixCharacters", GreaterOrEqualThanSixCharacters); - writer.WriteBoolValue("mustContainOneInteger", MustContainOneInteger); - writer.WriteBoolValue("mustContainOneLowercaseLetter", MustContainOneLowercaseLetter); - writer.WriteBoolValue("mustContainOneUppercaseLetter", MustContainOneUppercaseLetter); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_dateFilters.cs b/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_dateFilters.cs deleted file mode 100644 index e00d988..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_dateFilters.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceCustomFields_content_advancedSettings_dateFilters : 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 selected property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Selected { get; set; } -#nullable restore -#else - public List Selected { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_dateFilters_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DeviceCustomFields_content_advancedSettings_dateFilters() - { - 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::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_dateFilters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_dateFilters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "selected", n => { Selected = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("selected", Selected); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_dateFilters_type.cs b/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_dateFilters_type.cs deleted file mode 100644 index bc285c6..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_dateFilters_type.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DeviceCustomFields_content_advancedSettings_dateFilters_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "INCLUDE")] - #pragma warning disable CS1591 - INCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "EXCLUDE")] - #pragma warning disable CS1591 - EXCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "PAST_DATES_ONLY")] - #pragma warning disable CS1591 - PAST_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "FUTURE_DATES_ONLY")] - #pragma warning disable CS1591 - FUTURE_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "RANGE")] - #pragma warning disable CS1591 - RANGE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_identifier.cs b/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_identifier.cs deleted file mode 100644 index d425bb0..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_identifier.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceCustomFields_content_advancedSettings_identifier : 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 assignTo property - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_identifier_assignTo? AssignTo { get; set; } - /// The automaticGenerationEnabled property - public bool? AutomaticGenerationEnabled { get; set; } - /// The nextSequenceNumber property - public long? NextSequenceNumber { get; set; } - /// The prefix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Prefix { get; set; } -#nullable restore -#else - public string Prefix { get; set; } -#endif - /// The scope property - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_identifier_scope? Scope { get; set; } - /// The suffix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Suffix { get; set; } -#nullable restore -#else - public string Suffix { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_identifier_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DeviceCustomFields_content_advancedSettings_identifier() - { - 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::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_identifier CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_identifier(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignTo", n => { AssignTo = n.GetEnumValue(); } }, - { "automaticGenerationEnabled", n => { AutomaticGenerationEnabled = n.GetBoolValue(); } }, - { "nextSequenceNumber", n => { NextSequenceNumber = n.GetLongValue(); } }, - { "prefix", n => { Prefix = n.GetStringValue(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - { "suffix", n => { Suffix = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignTo", AssignTo); - writer.WriteBoolValue("automaticGenerationEnabled", AutomaticGenerationEnabled); - writer.WriteLongValue("nextSequenceNumber", NextSequenceNumber); - writer.WriteStringValue("prefix", Prefix); - writer.WriteEnumValue("scope", Scope); - writer.WriteStringValue("suffix", Suffix); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_identifier_assignTo.cs b/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_identifier_assignTo.cs deleted file mode 100644 index 25fbaf8..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_identifier_assignTo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DeviceCustomFields_content_advancedSettings_identifier_assignTo - #pragma warning restore CS1591 - { - [EnumMember(Value = "NEW_ASSETS_ONLY")] - #pragma warning disable CS1591 - NEW_ASSETS_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "NEW_AND_EXISTING_ASSETS")] - #pragma warning disable CS1591 - NEW_AND_EXISTING_ASSETS, - #pragma warning restore CS1591 - } -} diff --git a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_identifier_scope.cs b/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_identifier_scope.cs deleted file mode 100644 index b3f724b..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_identifier_scope.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DeviceCustomFields_content_advancedSettings_identifier_scope - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "GLOBAL")] - #pragma warning disable CS1591 - GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_identifier_type.cs b/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_identifier_type.cs deleted file mode 100644 index c4d97ad..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_identifier_type.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DeviceCustomFields_content_advancedSettings_identifier_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - [EnumMember(Value = "SEQUENCE")] - #pragma warning disable CS1591 - SEQUENCE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_ipAddressType.cs b/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_ipAddressType.cs deleted file mode 100644 index d124b9b..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_ipAddressType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DeviceCustomFields_content_advancedSettings_ipAddressType - #pragma warning restore CS1591 - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV4")] - #pragma warning disable CS1591 - IPV4, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV6")] - #pragma warning disable CS1591 - IPV6, - #pragma warning restore CS1591 - } -} diff --git a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_monetary.cs b/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_monetary.cs deleted file mode 100644 index af01424..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_monetary.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceCustomFields_content_advancedSettings_monetary : 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 currency property - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_monetary_currency? Currency { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DeviceCustomFields_content_advancedSettings_monetary() - { - 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::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_monetary CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_monetary(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "currency", n => { Currency = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("currency", Currency); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_monetary_currency.cs b/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_monetary_currency.cs deleted file mode 100644 index b88869b..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_monetary_currency.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DeviceCustomFields_content_advancedSettings_monetary_currency - #pragma warning restore CS1591 - { - [EnumMember(Value = "USD")] - #pragma warning disable CS1591 - USD, - #pragma warning restore CS1591 - [EnumMember(Value = "EUR")] - #pragma warning disable CS1591 - EUR, - #pragma warning restore CS1591 - [EnumMember(Value = "CAD")] - #pragma warning disable CS1591 - CAD, - #pragma warning restore CS1591 - [EnumMember(Value = "GBP")] - #pragma warning disable CS1591 - GBP, - #pragma warning restore CS1591 - [EnumMember(Value = "AUD")] - #pragma warning disable CS1591 - AUD, - #pragma warning restore CS1591 - [EnumMember(Value = "JPY")] - #pragma warning disable CS1591 - JPY, - #pragma warning restore CS1591 - [EnumMember(Value = "SEK")] - #pragma warning disable CS1591 - SEK, - #pragma warning restore CS1591 - [EnumMember(Value = "NOK")] - #pragma warning disable CS1591 - NOK, - #pragma warning restore CS1591 - [EnumMember(Value = "DKK")] - #pragma warning disable CS1591 - DKK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHF")] - #pragma warning disable CS1591 - CHF, - #pragma warning restore CS1591 - } -} diff --git a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_nodeClass.cs b/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_nodeClass.cs deleted file mode 100644 index 8cd5a7c..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_nodeClass.cs +++ /dev/null @@ -1,144 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DeviceCustomFields_content_advancedSettings_nodeClass - #pragma warning restore CS1591 - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_numericRange.cs b/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_numericRange.cs deleted file mode 100644 index e2ce0bf..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_content_advancedSettings_numericRange.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceCustomFields_content_advancedSettings_numericRange : 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 max property - public double? Max { get; set; } - /// The min property - public double? Min { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DeviceCustomFields_content_advancedSettings_numericRange() - { - 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::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_numericRange CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_advancedSettings_numericRange(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "max", n => { Max = n.GetDoubleValue(); } }, - { "min", n => { Min = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("max", Max); - writer.WriteDoubleValue("min", Min); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DeviceCustomFields/DeviceCustomFields_content_endUserCustomization.cs b/V2/DeviceCustomFields/DeviceCustomFields_content_endUserCustomization.cs deleted file mode 100644 index 7bccd9f..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_content_endUserCustomization.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceCustomFields_content_endUserCustomization : 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 description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DeviceCustomFields_content_endUserCustomization() - { - 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::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_endUserCustomization CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_endUserCustomization(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "label", n => { Label = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DeviceCustomFields/DeviceCustomFields_content_values.cs b/V2/DeviceCustomFields/DeviceCustomFields_content_values.cs deleted file mode 100644 index c0dc215..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_content_values.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceCustomFields_content_values : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The active property - public bool? Active { get; set; } - /// 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 id property - public Guid? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The system property - public bool? System { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DeviceCustomFields_content_values() - { - 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::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_values CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFields_content_values(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "system", n => { System = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteBoolValue("system", System); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DeviceCustomFields/DeviceCustomFields_definitionScope.cs b/V2/DeviceCustomFields/DeviceCustomFields_definitionScope.cs deleted file mode 100644 index 9554b6a..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_definitionScope.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - /// Definition Scope - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceCustomFields_definitionScope - { - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/DeviceCustomFields/DeviceCustomFields_endUserPermission.cs b/V2/DeviceCustomFields/DeviceCustomFields_endUserPermission.cs deleted file mode 100644 index cfaa5ff..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_endUserPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - /// End User Permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceCustomFields_endUserPermission - { - [EnumMember(Value = "HIDDEN")] - #pragma warning disable CS1591 - HIDDEN, - #pragma warning restore CS1591 - [EnumMember(Value = "EDITABLE_OPTIONAL")] - #pragma warning disable CS1591 - EDITABLE_OPTIONAL, - #pragma warning restore CS1591 - [EnumMember(Value = "EDITABLE_REQUIRED")] - #pragma warning disable CS1591 - EDITABLE_REQUIRED, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - } -} diff --git a/V2/DeviceCustomFields/DeviceCustomFields_entityType.cs b/V2/DeviceCustomFields/DeviceCustomFields_entityType.cs deleted file mode 100644 index 39977d9..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_entityType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - /// Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceCustomFields_entityType - { - [EnumMember(Value = "USER")] - #pragma warning disable CS1591 - USER, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "TICKET")] - #pragma warning disable CS1591 - TICKET, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - } -} diff --git a/V2/DeviceCustomFields/DeviceCustomFields_scope.cs b/V2/DeviceCustomFields/DeviceCustomFields_scope.cs deleted file mode 100644 index d691546..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_scope.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - /// Scope - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceCustomFields_scope - { - [EnumMember(Value = "NODE_GLOBAL")] - #pragma warning disable CS1591 - NODE_GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ROLE")] - #pragma warning disable CS1591 - NODE_ROLE, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_CLASS")] - #pragma warning disable CS1591 - NODE_CLASS, - #pragma warning restore CS1591 - } -} diff --git a/V2/DeviceCustomFields/DeviceCustomFields_scriptPermission.cs b/V2/DeviceCustomFields/DeviceCustomFields_scriptPermission.cs deleted file mode 100644 index 5eb37a6..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_scriptPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - /// Script Permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceCustomFields_scriptPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DeviceCustomFields/DeviceCustomFields_technicianPermission.cs b/V2/DeviceCustomFields/DeviceCustomFields_technicianPermission.cs deleted file mode 100644 index 63fbcf7..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_technicianPermission.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - /// Technician Permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceCustomFields_technicianPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "EDITABLE")] - #pragma warning disable CS1591 - EDITABLE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - } -} diff --git a/V2/DeviceCustomFields/DeviceCustomFields_type.cs b/V2/DeviceCustomFields/DeviceCustomFields_type.cs deleted file mode 100644 index 79c61b7..0000000 --- a/V2/DeviceCustomFields/DeviceCustomFields_type.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - /// Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceCustomFields_type - { - [EnumMember(Value = "DROPDOWN")] - #pragma warning disable CS1591 - DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "MULTI_SELECT")] - #pragma warning disable CS1591 - MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKBOX")] - #pragma warning disable CS1591 - CHECKBOX, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT")] - #pragma warning disable CS1591 - TEXT, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_MULTILINE")] - #pragma warning disable CS1591 - TEXT_MULTILINE, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_ENCRYPTED")] - #pragma warning disable CS1591 - TEXT_ENCRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NUMERIC")] - #pragma warning disable CS1591 - NUMERIC, - #pragma warning restore CS1591 - [EnumMember(Value = "DECIMAL")] - #pragma warning disable CS1591 - DECIMAL, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE")] - #pragma warning disable CS1591 - DATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE_TIME")] - #pragma warning disable CS1591 - DATE_TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "TIME")] - #pragma warning disable CS1591 - TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_DROPDOWN")] - #pragma warning disable CS1591 - NODE_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MULTI_SELECT")] - #pragma warning disable CS1591 - NODE_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_LOCATION_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_LOCATION_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "EMAIL")] - #pragma warning disable CS1591 - EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "PHONE")] - #pragma warning disable CS1591 - PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "IP_ADDRESS")] - #pragma warning disable CS1591 - IP_ADDRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "WYSIWYG")] - #pragma warning disable CS1591 - WYSIWYG, - #pragma warning restore CS1591 - [EnumMember(Value = "URL")] - #pragma warning disable CS1591 - URL, - #pragma warning restore CS1591 - [EnumMember(Value = "MONETARY")] - #pragma warning disable CS1591 - MONETARY, - #pragma warning restore CS1591 - [EnumMember(Value = "IDENTIFIER")] - #pragma warning disable CS1591 - IDENTIFIER, - #pragma warning restore CS1591 - [EnumMember(Value = "TOTP")] - #pragma warning disable CS1591 - TOTP, - #pragma warning restore CS1591 - } -} diff --git a/V2/DeviceCustomFields/GetScopesQueryParameterType.cs b/V2/DeviceCustomFields/GetScopesQueryParameterType.cs deleted file mode 100644 index cde7cf5..0000000 --- a/V2/DeviceCustomFields/GetScopesQueryParameterType.cs +++ /dev/null @@ -1,16 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DeviceCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum GetScopesQueryParameterType - #pragma warning restore CS1591 - { - [EnumMember(Value = "all,node,location,organization")] - #pragma warning disable CS1591 - AllNodeLocationOrganization, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Approval/ApprovalRequestBuilder.cs b/V2/Devices/Approval/ApprovalRequestBuilder.cs deleted file mode 100644 index 7bb7473..0000000 --- a/V2/Devices/Approval/ApprovalRequestBuilder.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Devices.Approval.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Devices.Approval -{ - /// - /// Builds and executes requests for operations under \v2\devices\approval - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ApprovalRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.devices.approval.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Devices.Approval.Item.WithModeItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("mode", position); - return new global::NinjaOne.Client.V2.Devices.Approval.Item.WithModeItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ApprovalRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/devices/approval", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ApprovalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/devices/approval", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Approval/Item/WithModeItemRequestBuilder.cs b/V2/Devices/Approval/Item/WithModeItemRequestBuilder.cs deleted file mode 100644 index f2a4048..0000000 --- a/V2/Devices/Approval/Item/WithModeItemRequestBuilder.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Devices.Approval.Item -{ - /// - /// Builds and executes requests for operations under \v2\devices\approval\{mode} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithModeItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithModeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/devices/approval/{mode}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithModeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/devices/approval/{mode}", rawUrl) - { - } - /// - /// Approve or reject devices that are waiting for approval - /// - /// A - /// The request body - /// 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 PostAsync(global::NinjaOne.Client.V2.Devices.Approval.Item.WithModePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Devices.Approval.Item.WithModePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Approve or reject devices that are waiting for approval - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Devices.Approval.Item.WithModePostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Devices.Approval.Item.WithModePostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Devices.Approval.Item.WithModeItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Devices.Approval.Item.WithModeItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithModeItemRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Approval/Item/WithModePostRequestBody.cs b/V2/Devices/Approval/Item/WithModePostRequestBody.cs deleted file mode 100644 index 9a1506a..0000000 --- a/V2/Devices/Approval/Item/WithModePostRequestBody.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Approval.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithModePostRequestBody : 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 devices property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Devices { get; set; } -#nullable restore -#else - public List Devices { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithModePostRequestBody() - { - 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::NinjaOne.Client.V2.Devices.Approval.Item.WithModePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Approval.Item.WithModePostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "devices", n => { Devices = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("devices", Devices); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices.cs b/V2/Devices/Devices.cs deleted file mode 100644 index dab52c6..0000000 --- a/V2/Devices/Devices.cs +++ /dev/null @@ -1,209 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Device information. - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices : ApiException, 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; } - /// Approval Status - public global::NinjaOne.Client.V2.Devices.Devices_approvalStatus? ApprovalStatus { get; set; } - /// Node (Device) Owner UUID - public Guid? AssignedOwnerUid { get; set; } - /// Created - public double? Created { get; set; } - /// Display Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// DNS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DnsName { get; set; } -#nullable restore -#else - public string DnsName { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_fields Fields { get; set; } -#endif - /// Node (Device) identifier - public int? Id { get; set; } - /// Last Contact - public double? LastContact { get; set; } - /// Last data submission timestamp - public double? LastUpdate { get; set; } - /// Location identifier - public int? LocationId { get; set; } - /// Maintenance mode status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_maintenance? Maintenance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_maintenance Maintenance { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// NETBIOS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NetbiosName { get; set; } -#nullable restore -#else - public string NetbiosName { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Devices.Devices_nodeClass? NodeClass { get; set; } - /// Node Role identifier - public int? NodeRoleId { get; set; } - /// Is Offline? - public bool? Offline { get; set; } - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent Node identifier - public int? ParentDeviceId { get; set; } - /// Assigned policy ID (overrides organization and location policy mapping) - public int? PolicyId { get; set; } - /// Expanded entity references -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references? References { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references References { get; set; } -#endif - /// Node Role policy ID based on organization and location Policy Mapping - public int? RolePolicyId { get; set; } - /// System Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SystemName { get; set; } -#nullable restore -#else - public string SystemName { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Node (Device) UUID - public Guid? Uid { get; set; } - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Devices() - { - 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::NinjaOne.Client.V2.Devices.Devices CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "approvalStatus", n => { ApprovalStatus = n.GetEnumValue(); } }, - { "assignedOwnerUid", n => { AssignedOwnerUid = n.GetGuidValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "dnsName", n => { DnsName = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastContact", n => { LastContact = n.GetDoubleValue(); } }, - { "lastUpdate", n => { LastUpdate = n.GetDoubleValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "maintenance", n => { Maintenance = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_maintenance.CreateFromDiscriminatorValue); } }, - { "netbiosName", n => { NetbiosName = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "offline", n => { Offline = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentDeviceId", n => { ParentDeviceId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - { "references", n => { References = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references.CreateFromDiscriminatorValue); } }, - { "rolePolicyId", n => { RolePolicyId = n.GetIntValue(); } }, - { "systemName", n => { SystemName = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("approvalStatus", ApprovalStatus); - writer.WriteGuidValue("assignedOwnerUid", AssignedOwnerUid); - writer.WriteDoubleValue("created", Created); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("dnsName", DnsName); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteDoubleValue("lastContact", LastContact); - writer.WriteDoubleValue("lastUpdate", LastUpdate); - writer.WriteIntValue("locationId", LocationId); - writer.WriteObjectValue("maintenance", Maintenance); - writer.WriteStringValue("netbiosName", NetbiosName); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteBoolValue("offline", Offline); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentDeviceId", ParentDeviceId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteObjectValue("references", References); - writer.WriteIntValue("rolePolicyId", RolePolicyId); - writer.WriteStringValue("systemName", SystemName); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/DevicesRequestBuilder.cs b/V2/Devices/DevicesRequestBuilder.cs deleted file mode 100644 index 72e14f4..0000000 --- a/V2/Devices/DevicesRequestBuilder.cs +++ /dev/null @@ -1,131 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Devices.Approval; -using NinjaOne.Client.V2.Devices.Search; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Builds and executes requests for operations under \v2\devices - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesRequestBuilder : BaseRequestBuilder - { - /// The approval property - public global::NinjaOne.Client.V2.Devices.Approval.ApprovalRequestBuilder Approval - { - get => new global::NinjaOne.Client.V2.Devices.Approval.ApprovalRequestBuilder(PathParameters, RequestAdapter); - } - /// The search property - public global::NinjaOne.Client.V2.Devices.Search.SearchRequestBuilder Search - { - get => new global::NinjaOne.Client.V2.Devices.Search.SearchRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DevicesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/devices{?after*,df*,pageSize*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DevicesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/devices{?after*,df*,pageSize*}", rawUrl) - { - } - /// - /// Returns list of devices (basic node information) - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Devices.Devices.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of devices (basic node information) - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Devices.DevicesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Devices.DevicesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of devices (basic node information) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesRequestBuilderGetQueryParameters - { - /// Last Node ID from previous page - [QueryParameter("after")] - public int? After { get; set; } - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Limit number of devices to return - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_approvalStatus.cs b/V2/Devices/Devices_approvalStatus.cs deleted file mode 100644 index 6429a17..0000000 --- a/V2/Devices/Devices_approvalStatus.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// Approval Status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Devices_approvalStatus - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "APPROVED")] - #pragma warning disable CS1591 - APPROVED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Devices_fields.cs b/V2/Devices/Devices_fields.cs deleted file mode 100644 index 8f1c28d..0000000 --- a/V2/Devices/Devices_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_fields : 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. - /// - public Devices_fields() - { - 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::NinjaOne.Client.V2.Devices.Devices_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_maintenance.cs b/V2/Devices/Devices_maintenance.cs deleted file mode 100644 index 8045356..0000000 --- a/V2/Devices/Devices_maintenance.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Maintenance mode status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_maintenance : 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; } - /// Maintenance mode end time - public double? End { get; set; } - /// Maintenance reason message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ReasonMessage { get; set; } -#nullable restore -#else - public string ReasonMessage { get; set; } -#endif - /// Maintenance mode start time - public double? Start { get; set; } - /// Maintenance mode status - public global::NinjaOne.Client.V2.Devices.Devices_maintenance_status? Status { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Devices_maintenance() - { - 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::NinjaOne.Client.V2.Devices.Devices_maintenance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_maintenance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "end", n => { End = n.GetDoubleValue(); } }, - { "reasonMessage", n => { ReasonMessage = n.GetStringValue(); } }, - { "start", n => { Start = n.GetDoubleValue(); } }, - { "status", n => { Status = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("end", End); - writer.WriteStringValue("reasonMessage", ReasonMessage); - writer.WriteDoubleValue("start", Start); - writer.WriteEnumValue("status", Status); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_maintenance_status.cs b/V2/Devices/Devices_maintenance_status.cs deleted file mode 100644 index a6093e7..0000000 --- a/V2/Devices/Devices_maintenance_status.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// Maintenance mode status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Devices_maintenance_status - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_MAINTENANCE")] - #pragma warning disable CS1591 - IN_MAINTENANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILED")] - #pragma warning disable CS1591 - FAILED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Devices_nodeClass.cs b/V2/Devices/Devices_nodeClass.cs deleted file mode 100644 index f9dfb54..0000000 --- a/V2/Devices/Devices_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Devices_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Devices_references.cs b/V2/Devices/Devices_references.cs deleted file mode 100644 index 31838be..0000000 --- a/V2/Devices/Devices_references.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Expanded entity references - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references : 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; } - /// Assigned device owner -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_assignedOwner? AssignedOwner { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_assignedOwner AssignedOwner { get; set; } -#endif - /// Device Backup Bandwidth Throttle -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_backupBandwidthThrottle? BackupBandwidthThrottle { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_backupBandwidthThrottle BackupBandwidthThrottle { get; set; } -#endif - /// Device Backup Usage -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_backupUsage? BackupUsage { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_backupUsage BackupUsage { get; set; } -#endif - /// Location -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_location? Location { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_location Location { get; set; } -#endif - /// Organization -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_organization? Organization { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_organization Organization { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_policy? Policy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_policy Policy { get; set; } -#endif - /// Device Role -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_role? Role { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_role Role { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_rolePolicy? RolePolicy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_rolePolicy RolePolicy { get; set; } -#endif - /// Warranty Info -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_warranty? Warranty { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_warranty Warranty { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references() - { - 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::NinjaOne.Client.V2.Devices.Devices_references CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignedOwner", n => { AssignedOwner = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_assignedOwner.CreateFromDiscriminatorValue); } }, - { "backupBandwidthThrottle", n => { BackupBandwidthThrottle = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_backupBandwidthThrottle.CreateFromDiscriminatorValue); } }, - { "backupUsage", n => { BackupUsage = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_backupUsage.CreateFromDiscriminatorValue); } }, - { "location", n => { Location = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_location.CreateFromDiscriminatorValue); } }, - { "organization", n => { Organization = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_organization.CreateFromDiscriminatorValue); } }, - { "policy", n => { Policy = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_policy.CreateFromDiscriminatorValue); } }, - { "role", n => { Role = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_role.CreateFromDiscriminatorValue); } }, - { "rolePolicy", n => { RolePolicy = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_rolePolicy.CreateFromDiscriminatorValue); } }, - { "warranty", n => { Warranty = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_warranty.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assignedOwner", AssignedOwner); - writer.WriteObjectValue("backupBandwidthThrottle", BackupBandwidthThrottle); - writer.WriteObjectValue("backupUsage", BackupUsage); - writer.WriteObjectValue("location", Location); - writer.WriteObjectValue("organization", Organization); - writer.WriteObjectValue("policy", Policy); - writer.WriteObjectValue("role", Role); - writer.WriteObjectValue("rolePolicy", RolePolicy); - writer.WriteObjectValue("warranty", Warranty); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_assignedOwner.cs b/V2/Devices/Devices_references_assignedOwner.cs deleted file mode 100644 index 0ac7007..0000000 --- a/V2/Devices/Devices_references_assignedOwner.cs +++ /dev/null @@ -1,190 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Assigned device owner - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_assignedOwner : 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; } - /// The administrator property - public bool? Administrator { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Device IDs which end-user is authorized to access -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DeviceIds { get; set; } -#nullable restore -#else - public List DeviceIds { get; set; } -#endif - /// The email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The enabled property - public bool? Enabled { get; set; } - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_assignedOwner_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_assignedOwner_fields Fields { get; set; } -#endif - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// The invitationStatus property - public global::NinjaOne.Client.V2.Devices.Devices_references_assignedOwner_invitationStatus? InvitationStatus { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// The mfaConfigured property - public bool? MfaConfigured { get; set; } - /// The mustChangePw property - public bool? MustChangePw { get; set; } - /// The notifyAllClients property - public bool? NotifyAllClients { get; set; } - /// Identifier of organization for end-users - public int? OrganizationId { get; set; } - /// The permitAllClients property - public bool? PermitAllClients { get; set; } - /// The phone property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the user. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// User universally unique identifier - public Guid? Uid { get; set; } - /// The userType property - public global::NinjaOne.Client.V2.Devices.Devices_references_assignedOwner_userType? UserType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_assignedOwner() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_assignedOwner CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_assignedOwner(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "administrator", n => { Administrator = n.GetBoolValue(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "deviceIds", n => { DeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_assignedOwner_fields.CreateFromDiscriminatorValue); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "notifyAllClients", n => { NotifyAllClients = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "permitAllClients", n => { PermitAllClients = n.GetBoolValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userType", n => { UserType = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("administrator", Administrator); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteCollectionOfPrimitiveValues("deviceIds", DeviceIds); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteBoolValue("notifyAllClients", NotifyAllClients); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteBoolValue("permitAllClients", PermitAllClients); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteEnumValue("userType", UserType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_assignedOwner_fields.cs b/V2/Devices/Devices_references_assignedOwner_fields.cs deleted file mode 100644 index d96ae1c..0000000 --- a/V2/Devices/Devices_references_assignedOwner_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_assignedOwner_fields : 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. - /// - public Devices_references_assignedOwner_fields() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_assignedOwner_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_assignedOwner_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_assignedOwner_invitationStatus.cs b/V2/Devices/Devices_references_assignedOwner_invitationStatus.cs deleted file mode 100644 index 554b6f0..0000000 --- a/V2/Devices/Devices_references_assignedOwner_invitationStatus.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Devices_references_assignedOwner_invitationStatus - #pragma warning restore CS1591 - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Devices_references_assignedOwner_userType.cs b/V2/Devices/Devices_references_assignedOwner_userType.cs deleted file mode 100644 index 86ae698..0000000 --- a/V2/Devices/Devices_references_assignedOwner_userType.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Devices_references_assignedOwner_userType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Devices_references_backupBandwidthThrottle.cs b/V2/Devices/Devices_references_backupBandwidthThrottle.cs deleted file mode 100644 index aac1eda..0000000 --- a/V2/Devices/Devices_references_backupBandwidthThrottle.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Device Backup Bandwidth Throttle - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_backupBandwidthThrottle : 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; } - /// Whether bandwidth throttle is enabled/true or disabled/false - public bool? Enabled { get; set; } - /// Bandwidth nonwork hours limit - public int? NonWorkHoursKbps { get; set; } - /// Bandwidth nonwork hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NonWorkHoursUserUnit { get; set; } -#nullable restore -#else - public string NonWorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work hours limit - public int? WorkHoursKbps { get; set; } - /// Bandwidth work hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? WorkHoursUserUnit { get; set; } -#nullable restore -#else - public string WorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work schedule -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_backupBandwidthThrottle_workSchedule? WorkSchedule { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_backupBandwidthThrottle_workSchedule WorkSchedule { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_backupBandwidthThrottle() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_backupBandwidthThrottle CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_backupBandwidthThrottle(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "nonWorkHoursKbps", n => { NonWorkHoursKbps = n.GetIntValue(); } }, - { "nonWorkHoursUserUnit", n => { NonWorkHoursUserUnit = n.GetStringValue(); } }, - { "workHoursKbps", n => { WorkHoursKbps = n.GetIntValue(); } }, - { "workHoursUserUnit", n => { WorkHoursUserUnit = n.GetStringValue(); } }, - { "workSchedule", n => { WorkSchedule = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_backupBandwidthThrottle_workSchedule.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("nonWorkHoursKbps", NonWorkHoursKbps); - writer.WriteStringValue("nonWorkHoursUserUnit", NonWorkHoursUserUnit); - writer.WriteIntValue("workHoursKbps", WorkHoursKbps); - writer.WriteStringValue("workHoursUserUnit", WorkHoursUserUnit); - writer.WriteObjectValue("workSchedule", WorkSchedule); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_backupBandwidthThrottle_workSchedule.cs b/V2/Devices/Devices_references_backupBandwidthThrottle_workSchedule.cs deleted file mode 100644 index 6f09390..0000000 --- a/V2/Devices/Devices_references_backupBandwidthThrottle_workSchedule.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Bandwidth work schedule - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_backupBandwidthThrottle_workSchedule : 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; } - /// Work schedule end hour (0 to 23) - public int? EndHour { get; set; } - /// Work schedule end minute (0 to 59) - public int? EndMinute { get; set; } - /// Work schedule start hour (0 to 23) - public int? StartHour { get; set; } - /// Work schedule start minute (0 to 59) - public int? StartMinute { get; set; } - /// Work schedule week days list -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? WeekDays { get; set; } -#nullable restore -#else - public List WeekDays { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_backupBandwidthThrottle_workSchedule() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_backupBandwidthThrottle_workSchedule CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_backupBandwidthThrottle_workSchedule(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endHour", n => { EndHour = n.GetIntValue(); } }, - { "endMinute", n => { EndMinute = n.GetIntValue(); } }, - { "startHour", n => { StartHour = n.GetIntValue(); } }, - { "startMinute", n => { StartMinute = n.GetIntValue(); } }, - { "weekDays", n => { WeekDays = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("endHour", EndHour); - writer.WriteIntValue("endMinute", EndMinute); - writer.WriteIntValue("startHour", StartHour); - writer.WriteIntValue("startMinute", StartMinute); - writer.WriteCollectionOfPrimitiveValues("weekDays", WeekDays); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_backupUsage.cs b/V2/Devices/Devices_references_backupUsage.cs deleted file mode 100644 index dbd7733..0000000 --- a/V2/Devices/Devices_references_backupUsage.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Device Backup Usage - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_backupUsage : 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; } - /// Revisions cloud file folder size - public long? CloudFileFolderSize { get; set; } - /// Revisions cloud image size - public long? CloudImageSize { get; set; } - /// Revisions cloud image v2 size - public long? CloudImageV2Size { get; set; } - /// Revisions cloud network share size - public long? CloudNetworkShareSize { get; set; } - /// Revisions cloud total size - public long? CloudTotalSize { get; private set; } - /// Last failed job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastFailedBackupJob { get; set; } - /// Last successful job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastSuccessfulBackupJob { get; set; } - /// Revisions local file folder size - public long? LocalFileFolderSize { get; set; } - /// Revisions local image size - public long? LocalImageSize { get; set; } - /// Revisions local image v2 size - public long? LocalImageV2Size { get; set; } - /// Revisions local total size - public long? LocalTotalSize { get; private set; } - /// Revisions current size - public long? RevisionsCurrentSize { get; set; } - /// Revisions deleted size - public long? RevisionsDeletedSize { get; set; } - /// Revisions previous size - public long? RevisionsPreviousSize { get; set; } - /// Revisions total size - public long? RevisionsTotalSize { get; private set; } - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_backupUsage() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_backupUsage CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_backupUsage(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cloudFileFolderSize", n => { CloudFileFolderSize = n.GetLongValue(); } }, - { "cloudImageSize", n => { CloudImageSize = n.GetLongValue(); } }, - { "cloudImageV2Size", n => { CloudImageV2Size = n.GetLongValue(); } }, - { "cloudNetworkShareSize", n => { CloudNetworkShareSize = n.GetLongValue(); } }, - { "cloudTotalSize", n => { CloudTotalSize = n.GetLongValue(); } }, - { "lastFailedBackupJob", n => { LastFailedBackupJob = n.GetDoubleValue(); } }, - { "lastSuccessfulBackupJob", n => { LastSuccessfulBackupJob = n.GetDoubleValue(); } }, - { "localFileFolderSize", n => { LocalFileFolderSize = n.GetLongValue(); } }, - { "localImageSize", n => { LocalImageSize = n.GetLongValue(); } }, - { "localImageV2Size", n => { LocalImageV2Size = n.GetLongValue(); } }, - { "localTotalSize", n => { LocalTotalSize = n.GetLongValue(); } }, - { "revisionsCurrentSize", n => { RevisionsCurrentSize = n.GetLongValue(); } }, - { "revisionsDeletedSize", n => { RevisionsDeletedSize = n.GetLongValue(); } }, - { "revisionsPreviousSize", n => { RevisionsPreviousSize = n.GetLongValue(); } }, - { "revisionsTotalSize", n => { RevisionsTotalSize = n.GetLongValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteLongValue("cloudFileFolderSize", CloudFileFolderSize); - writer.WriteLongValue("cloudImageSize", CloudImageSize); - writer.WriteLongValue("cloudImageV2Size", CloudImageV2Size); - writer.WriteLongValue("cloudNetworkShareSize", CloudNetworkShareSize); - writer.WriteDoubleValue("lastFailedBackupJob", LastFailedBackupJob); - writer.WriteDoubleValue("lastSuccessfulBackupJob", LastSuccessfulBackupJob); - writer.WriteLongValue("localFileFolderSize", LocalFileFolderSize); - writer.WriteLongValue("localImageSize", LocalImageSize); - writer.WriteLongValue("localImageV2Size", LocalImageV2Size); - writer.WriteLongValue("revisionsCurrentSize", RevisionsCurrentSize); - writer.WriteLongValue("revisionsDeletedSize", RevisionsDeletedSize); - writer.WriteLongValue("revisionsPreviousSize", RevisionsPreviousSize); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_location.cs b/V2/Devices/Devices_references_location.cs deleted file mode 100644 index 0408815..0000000 --- a/V2/Devices/Devices_references_location.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_location : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_location_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_location_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_location_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_location_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_location() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_location CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_location(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_location_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_location_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_location_fields.cs b/V2/Devices/Devices_references_location_fields.cs deleted file mode 100644 index 15c13a8..0000000 --- a/V2/Devices/Devices_references_location_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_location_fields : 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. - /// - public Devices_references_location_fields() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_location_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_location_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_location_userData.cs b/V2/Devices/Devices_references_location_userData.cs deleted file mode 100644 index fc7df16..0000000 --- a/V2/Devices/Devices_references_location_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_location_userData : 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. - /// - public Devices_references_location_userData() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_location_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_location_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_organization.cs b/V2/Devices/Devices_references_organization.cs deleted file mode 100644 index 80e9bb3..0000000 --- a/V2/Devices/Devices_references_organization.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_organization : 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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_organization_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_organization_fields Fields { get; set; } -#endif - /// Organization identifier - public int? Id { get; set; } - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.Devices.Devices_references_organization_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_organization_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_organization_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_organization() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_organization CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_organization(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_organization_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_organization_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_organization_fields.cs b/V2/Devices/Devices_references_organization_fields.cs deleted file mode 100644 index d26f56c..0000000 --- a/V2/Devices/Devices_references_organization_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_organization_fields : 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. - /// - public Devices_references_organization_fields() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_organization_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_organization_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_organization_nodeApprovalMode.cs b/V2/Devices/Devices_references_organization_nodeApprovalMode.cs deleted file mode 100644 index 7de82f6..0000000 --- a/V2/Devices/Devices_references_organization_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Devices_references_organization_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Devices_references_organization_userData.cs b/V2/Devices/Devices_references_organization_userData.cs deleted file mode 100644 index 297572d..0000000 --- a/V2/Devices/Devices_references_organization_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_organization_userData : 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. - /// - public Devices_references_organization_userData() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_organization_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_organization_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_policy.cs b/V2/Devices/Devices_references_policy.cs deleted file mode 100644 index f686c0f..0000000 --- a/V2/Devices/Devices_references_policy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_policy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_policy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_policy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Devices.Devices_references_policy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_policy() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_policy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_policy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_policy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_policy_fields.cs b/V2/Devices/Devices_references_policy_fields.cs deleted file mode 100644 index e416e12..0000000 --- a/V2/Devices/Devices_references_policy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_policy_fields : 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. - /// - public Devices_references_policy_fields() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_policy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_policy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_policy_nodeClass.cs b/V2/Devices/Devices_references_policy_nodeClass.cs deleted file mode 100644 index 2bc077d..0000000 --- a/V2/Devices/Devices_references_policy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Devices_references_policy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Devices_references_role.cs b/V2/Devices/Devices_references_role.cs deleted file mode 100644 index a42cf73..0000000 --- a/V2/Devices/Devices_references_role.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Device Role - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_role : 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; } - /// Chassis Type - public global::NinjaOne.Client.V2.Devices.Devices_references_role_chassisType? ChassisType { get; set; } - /// Date created - public double? Created { get; set; } - /// Is custom node role? - public bool? Custom { get; set; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_role_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_role_fields Fields { get; set; } -#endif - /// Icon -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Icon { get; set; } -#nullable restore -#else - public string Icon { get; set; } -#endif - /// Device Role identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Devices.Devices_references_role_nodeClass? NodeClass { get; set; } - /// Node Role Parent Id - public int? NodeRoleParentId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_role() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_role CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_role(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "chassisType", n => { ChassisType = n.GetEnumValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "custom", n => { Custom = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_role_fields.CreateFromDiscriminatorValue); } }, - { "icon", n => { Icon = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleParentId", n => { NodeRoleParentId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("chassisType", ChassisType); - writer.WriteDoubleValue("created", Created); - writer.WriteBoolValue("custom", Custom); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("icon", Icon); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleParentId", NodeRoleParentId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_rolePolicy.cs b/V2/Devices/Devices_references_rolePolicy.cs deleted file mode 100644 index 25c5991..0000000 --- a/V2/Devices/Devices_references_rolePolicy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_rolePolicy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Devices_references_rolePolicy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Devices_references_rolePolicy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Devices.Devices_references_rolePolicy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_rolePolicy() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_rolePolicy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_rolePolicy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Devices_references_rolePolicy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_rolePolicy_fields.cs b/V2/Devices/Devices_references_rolePolicy_fields.cs deleted file mode 100644 index 5680e6f..0000000 --- a/V2/Devices/Devices_references_rolePolicy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_rolePolicy_fields : 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. - /// - public Devices_references_rolePolicy_fields() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_rolePolicy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_rolePolicy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_rolePolicy_nodeClass.cs b/V2/Devices/Devices_references_rolePolicy_nodeClass.cs deleted file mode 100644 index 2571597..0000000 --- a/V2/Devices/Devices_references_rolePolicy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Devices_references_rolePolicy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Devices_references_role_chassisType.cs b/V2/Devices/Devices_references_role_chassisType.cs deleted file mode 100644 index 4bd1ea5..0000000 --- a/V2/Devices/Devices_references_role_chassisType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// Chassis Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Devices_references_role_chassisType - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "DESKTOP")] - #pragma warning disable CS1591 - DESKTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "LAPTOP")] - #pragma warning disable CS1591 - LAPTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "MOBILE")] - #pragma warning disable CS1591 - MOBILE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Devices_references_role_fields.cs b/V2/Devices/Devices_references_role_fields.cs deleted file mode 100644 index b3e681e..0000000 --- a/V2/Devices/Devices_references_role_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_role_fields : 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. - /// - public Devices_references_role_fields() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_role_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_role_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_references_role_nodeClass.cs b/V2/Devices/Devices_references_role_nodeClass.cs deleted file mode 100644 index c875e8a..0000000 --- a/V2/Devices/Devices_references_role_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Devices_references_role_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Devices_references_warranty.cs b/V2/Devices/Devices_references_warranty.cs deleted file mode 100644 index 309492a..0000000 --- a/V2/Devices/Devices_references_warranty.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Warranty Info - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_warranty : 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; } - /// Warranty End Date (Seconds) - public double? EndDate { get; set; } - /// Manufacturer Fulfillment Date - public double? ManufacturerFulfillmentDate { get; set; } - /// Warranty Start Date (Seconds) - public double? StartDate { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_warranty() - { - 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::NinjaOne.Client.V2.Devices.Devices_references_warranty CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_references_warranty(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endDate", n => { EndDate = n.GetDoubleValue(); } }, - { "manufacturerFulfillmentDate", n => { ManufacturerFulfillmentDate = n.GetDoubleValue(); } }, - { "startDate", n => { StartDate = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("endDate", EndDate); - writer.WriteDoubleValue("manufacturerFulfillmentDate", ManufacturerFulfillmentDate); - writer.WriteDoubleValue("startDate", StartDate); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Devices_userData.cs b/V2/Devices/Devices_userData.cs deleted file mode 100644 index 81a880c..0000000 --- a/V2/Devices/Devices_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_userData : 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. - /// - public Devices_userData() - { - 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::NinjaOne.Client.V2.Devices.Devices_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Devices_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError.cs b/V2/Devices/Search/Search4XXError.cs deleted file mode 100644 index 1e069a7..0000000 --- a/V2/Devices/Search/Search4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Search4XXError : 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; } - /// Devices matching search query -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Devices { get; set; } -#nullable restore -#else - public List Devices { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Search query -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Query { get; set; } -#nullable restore -#else - public string Query { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Search4XXError() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "devices", n => { Devices = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices.CreateFromDiscriminatorValue)?.AsList(); } }, - { "query", n => { Query = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("devices", Devices); - writer.WriteStringValue("query", Query); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices.cs b/V2/Devices/Search/Search4XXError_devices.cs deleted file mode 100644 index 3abe23b..0000000 --- a/V2/Devices/Search/Search4XXError_devices.cs +++ /dev/null @@ -1,230 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Devices matching search query - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices : 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; } - /// Approval Status - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_approvalStatus? ApprovalStatus { get; set; } - /// Node (Device) Owner UUID - public Guid? AssignedOwnerUid { get; set; } - /// Created - public double? Created { get; set; } - /// Display Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// DNS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DnsName { get; set; } -#nullable restore -#else - public string DnsName { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_fields Fields { get; set; } -#endif - /// Node (Device) identifier - public int? Id { get; set; } - /// Last Contact - public double? LastContact { get; set; } - /// Last data submission timestamp - public double? LastUpdate { get; set; } - /// Location identifier - public int? LocationId { get; set; } - /// Maintenance mode status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_maintenance? Maintenance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_maintenance Maintenance { get; set; } -#endif - /// Name of the attribute that matched the query -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MatchAttr { get; set; } -#nullable restore -#else - public string MatchAttr { get; set; } -#endif - /// Value of that attribute that matched -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MatchAttrValue { get; set; } -#nullable restore -#else - public string MatchAttrValue { get; set; } -#endif - /// NETBIOS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NetbiosName { get; set; } -#nullable restore -#else - public string NetbiosName { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_nodeClass? NodeClass { get; set; } - /// Node Role identifier - public int? NodeRoleId { get; set; } - /// Is Offline? - public bool? Offline { get; set; } - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent Node identifier - public int? ParentDeviceId { get; set; } - /// Assigned policy ID (overrides organization and location policy mapping) - public int? PolicyId { get; set; } - /// Expanded entity references -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references? References { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references References { get; set; } -#endif - /// Node Role policy ID based on organization and location Policy Mapping - public int? RolePolicyId { get; set; } - /// Match score - public int? Score { get; set; } - /// System Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SystemName { get; set; } -#nullable restore -#else - public string SystemName { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Node (Device) UUID - public Guid? Uid { get; set; } - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Search4XXError_devices() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "approvalStatus", n => { ApprovalStatus = n.GetEnumValue(); } }, - { "assignedOwnerUid", n => { AssignedOwnerUid = n.GetGuidValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "dnsName", n => { DnsName = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastContact", n => { LastContact = n.GetDoubleValue(); } }, - { "lastUpdate", n => { LastUpdate = n.GetDoubleValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "maintenance", n => { Maintenance = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_maintenance.CreateFromDiscriminatorValue); } }, - { "matchAttr", n => { MatchAttr = n.GetStringValue(); } }, - { "matchAttrValue", n => { MatchAttrValue = n.GetStringValue(); } }, - { "netbiosName", n => { NetbiosName = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "offline", n => { Offline = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentDeviceId", n => { ParentDeviceId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - { "references", n => { References = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references.CreateFromDiscriminatorValue); } }, - { "rolePolicyId", n => { RolePolicyId = n.GetIntValue(); } }, - { "score", n => { Score = n.GetIntValue(); } }, - { "systemName", n => { SystemName = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("approvalStatus", ApprovalStatus); - writer.WriteGuidValue("assignedOwnerUid", AssignedOwnerUid); - writer.WriteDoubleValue("created", Created); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("dnsName", DnsName); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteDoubleValue("lastContact", LastContact); - writer.WriteDoubleValue("lastUpdate", LastUpdate); - writer.WriteIntValue("locationId", LocationId); - writer.WriteObjectValue("maintenance", Maintenance); - writer.WriteStringValue("matchAttr", MatchAttr); - writer.WriteStringValue("matchAttrValue", MatchAttrValue); - writer.WriteStringValue("netbiosName", NetbiosName); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteBoolValue("offline", Offline); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentDeviceId", ParentDeviceId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteObjectValue("references", References); - writer.WriteIntValue("rolePolicyId", RolePolicyId); - writer.WriteIntValue("score", Score); - writer.WriteStringValue("systemName", SystemName); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_approvalStatus.cs b/V2/Devices/Search/Search4XXError_devices_approvalStatus.cs deleted file mode 100644 index 1c2859d..0000000 --- a/V2/Devices/Search/Search4XXError_devices_approvalStatus.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// Approval Status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Search4XXError_devices_approvalStatus - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "APPROVED")] - #pragma warning disable CS1591 - APPROVED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search4XXError_devices_fields.cs b/V2/Devices/Search/Search4XXError_devices_fields.cs deleted file mode 100644 index f4a6cda..0000000 --- a/V2/Devices/Search/Search4XXError_devices_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_fields : 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. - /// - public Search4XXError_devices_fields() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_maintenance.cs b/V2/Devices/Search/Search4XXError_devices_maintenance.cs deleted file mode 100644 index 4a9ef2e..0000000 --- a/V2/Devices/Search/Search4XXError_devices_maintenance.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Maintenance mode status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_maintenance : 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; } - /// Maintenance mode end time - public double? End { get; set; } - /// Maintenance reason message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ReasonMessage { get; set; } -#nullable restore -#else - public string ReasonMessage { get; set; } -#endif - /// Maintenance mode start time - public double? Start { get; set; } - /// Maintenance mode status - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_maintenance_status? Status { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Search4XXError_devices_maintenance() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_maintenance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_maintenance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "end", n => { End = n.GetDoubleValue(); } }, - { "reasonMessage", n => { ReasonMessage = n.GetStringValue(); } }, - { "start", n => { Start = n.GetDoubleValue(); } }, - { "status", n => { Status = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("end", End); - writer.WriteStringValue("reasonMessage", ReasonMessage); - writer.WriteDoubleValue("start", Start); - writer.WriteEnumValue("status", Status); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_maintenance_status.cs b/V2/Devices/Search/Search4XXError_devices_maintenance_status.cs deleted file mode 100644 index a8c5187..0000000 --- a/V2/Devices/Search/Search4XXError_devices_maintenance_status.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// Maintenance mode status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Search4XXError_devices_maintenance_status - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_MAINTENANCE")] - #pragma warning disable CS1591 - IN_MAINTENANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILED")] - #pragma warning disable CS1591 - FAILED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search4XXError_devices_nodeClass.cs b/V2/Devices/Search/Search4XXError_devices_nodeClass.cs deleted file mode 100644 index 738a8c0..0000000 --- a/V2/Devices/Search/Search4XXError_devices_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Search4XXError_devices_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search4XXError_devices_references.cs b/V2/Devices/Search/Search4XXError_devices_references.cs deleted file mode 100644 index df9942d..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Expanded entity references - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references : 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; } - /// Assigned device owner -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_assignedOwner? AssignedOwner { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_assignedOwner AssignedOwner { get; set; } -#endif - /// Device Backup Bandwidth Throttle -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_backupBandwidthThrottle? BackupBandwidthThrottle { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_backupBandwidthThrottle BackupBandwidthThrottle { get; set; } -#endif - /// Device Backup Usage -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_backupUsage? BackupUsage { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_backupUsage BackupUsage { get; set; } -#endif - /// Location -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_location? Location { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_location Location { get; set; } -#endif - /// Organization -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_organization? Organization { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_organization Organization { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_policy? Policy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_policy Policy { get; set; } -#endif - /// Device Role -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_role? Role { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_role Role { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_rolePolicy? RolePolicy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_rolePolicy RolePolicy { get; set; } -#endif - /// Warranty Info -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_warranty? Warranty { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_warranty Warranty { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Search4XXError_devices_references() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignedOwner", n => { AssignedOwner = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_assignedOwner.CreateFromDiscriminatorValue); } }, - { "backupBandwidthThrottle", n => { BackupBandwidthThrottle = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_backupBandwidthThrottle.CreateFromDiscriminatorValue); } }, - { "backupUsage", n => { BackupUsage = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_backupUsage.CreateFromDiscriminatorValue); } }, - { "location", n => { Location = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_location.CreateFromDiscriminatorValue); } }, - { "organization", n => { Organization = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_organization.CreateFromDiscriminatorValue); } }, - { "policy", n => { Policy = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_policy.CreateFromDiscriminatorValue); } }, - { "role", n => { Role = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_role.CreateFromDiscriminatorValue); } }, - { "rolePolicy", n => { RolePolicy = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_rolePolicy.CreateFromDiscriminatorValue); } }, - { "warranty", n => { Warranty = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_warranty.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assignedOwner", AssignedOwner); - writer.WriteObjectValue("backupBandwidthThrottle", BackupBandwidthThrottle); - writer.WriteObjectValue("backupUsage", BackupUsage); - writer.WriteObjectValue("location", Location); - writer.WriteObjectValue("organization", Organization); - writer.WriteObjectValue("policy", Policy); - writer.WriteObjectValue("role", Role); - writer.WriteObjectValue("rolePolicy", RolePolicy); - writer.WriteObjectValue("warranty", Warranty); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_assignedOwner.cs b/V2/Devices/Search/Search4XXError_devices_references_assignedOwner.cs deleted file mode 100644 index 4eed605..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_assignedOwner.cs +++ /dev/null @@ -1,190 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Assigned device owner - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_assignedOwner : 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; } - /// The administrator property - public bool? Administrator { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Device IDs which end-user is authorized to access -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DeviceIds { get; set; } -#nullable restore -#else - public List DeviceIds { get; set; } -#endif - /// The email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The enabled property - public bool? Enabled { get; set; } - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_assignedOwner_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_assignedOwner_fields Fields { get; set; } -#endif - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// The invitationStatus property - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_assignedOwner_invitationStatus? InvitationStatus { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// The mfaConfigured property - public bool? MfaConfigured { get; set; } - /// The mustChangePw property - public bool? MustChangePw { get; set; } - /// The notifyAllClients property - public bool? NotifyAllClients { get; set; } - /// Identifier of organization for end-users - public int? OrganizationId { get; set; } - /// The permitAllClients property - public bool? PermitAllClients { get; set; } - /// The phone property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the user. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// User universally unique identifier - public Guid? Uid { get; set; } - /// The userType property - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_assignedOwner_userType? UserType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Search4XXError_devices_references_assignedOwner() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_assignedOwner CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_assignedOwner(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "administrator", n => { Administrator = n.GetBoolValue(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "deviceIds", n => { DeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_assignedOwner_fields.CreateFromDiscriminatorValue); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "notifyAllClients", n => { NotifyAllClients = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "permitAllClients", n => { PermitAllClients = n.GetBoolValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userType", n => { UserType = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("administrator", Administrator); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteCollectionOfPrimitiveValues("deviceIds", DeviceIds); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteBoolValue("notifyAllClients", NotifyAllClients); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteBoolValue("permitAllClients", PermitAllClients); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteEnumValue("userType", UserType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_assignedOwner_fields.cs b/V2/Devices/Search/Search4XXError_devices_references_assignedOwner_fields.cs deleted file mode 100644 index 4b20002..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_assignedOwner_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_assignedOwner_fields : 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. - /// - public Search4XXError_devices_references_assignedOwner_fields() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_assignedOwner_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_assignedOwner_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_assignedOwner_invitationStatus.cs b/V2/Devices/Search/Search4XXError_devices_references_assignedOwner_invitationStatus.cs deleted file mode 100644 index 1c6f225..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_assignedOwner_invitationStatus.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Search4XXError_devices_references_assignedOwner_invitationStatus - #pragma warning restore CS1591 - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search4XXError_devices_references_assignedOwner_userType.cs b/V2/Devices/Search/Search4XXError_devices_references_assignedOwner_userType.cs deleted file mode 100644 index 36f763c..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_assignedOwner_userType.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Search4XXError_devices_references_assignedOwner_userType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search4XXError_devices_references_backupBandwidthThrottle.cs b/V2/Devices/Search/Search4XXError_devices_references_backupBandwidthThrottle.cs deleted file mode 100644 index 5c16678..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_backupBandwidthThrottle.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Device Backup Bandwidth Throttle - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_backupBandwidthThrottle : 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; } - /// Whether bandwidth throttle is enabled/true or disabled/false - public bool? Enabled { get; set; } - /// Bandwidth nonwork hours limit - public int? NonWorkHoursKbps { get; set; } - /// Bandwidth nonwork hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NonWorkHoursUserUnit { get; set; } -#nullable restore -#else - public string NonWorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work hours limit - public int? WorkHoursKbps { get; set; } - /// Bandwidth work hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? WorkHoursUserUnit { get; set; } -#nullable restore -#else - public string WorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work schedule -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_backupBandwidthThrottle_workSchedule? WorkSchedule { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_backupBandwidthThrottle_workSchedule WorkSchedule { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Search4XXError_devices_references_backupBandwidthThrottle() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_backupBandwidthThrottle CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_backupBandwidthThrottle(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "nonWorkHoursKbps", n => { NonWorkHoursKbps = n.GetIntValue(); } }, - { "nonWorkHoursUserUnit", n => { NonWorkHoursUserUnit = n.GetStringValue(); } }, - { "workHoursKbps", n => { WorkHoursKbps = n.GetIntValue(); } }, - { "workHoursUserUnit", n => { WorkHoursUserUnit = n.GetStringValue(); } }, - { "workSchedule", n => { WorkSchedule = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_backupBandwidthThrottle_workSchedule.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("nonWorkHoursKbps", NonWorkHoursKbps); - writer.WriteStringValue("nonWorkHoursUserUnit", NonWorkHoursUserUnit); - writer.WriteIntValue("workHoursKbps", WorkHoursKbps); - writer.WriteStringValue("workHoursUserUnit", WorkHoursUserUnit); - writer.WriteObjectValue("workSchedule", WorkSchedule); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_backupBandwidthThrottle_workSchedule.cs b/V2/Devices/Search/Search4XXError_devices_references_backupBandwidthThrottle_workSchedule.cs deleted file mode 100644 index f5c9ccd..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_backupBandwidthThrottle_workSchedule.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Bandwidth work schedule - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_backupBandwidthThrottle_workSchedule : 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; } - /// Work schedule end hour (0 to 23) - public int? EndHour { get; set; } - /// Work schedule end minute (0 to 59) - public int? EndMinute { get; set; } - /// Work schedule start hour (0 to 23) - public int? StartHour { get; set; } - /// Work schedule start minute (0 to 59) - public int? StartMinute { get; set; } - /// Work schedule week days list -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? WeekDays { get; set; } -#nullable restore -#else - public List WeekDays { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Search4XXError_devices_references_backupBandwidthThrottle_workSchedule() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_backupBandwidthThrottle_workSchedule CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_backupBandwidthThrottle_workSchedule(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endHour", n => { EndHour = n.GetIntValue(); } }, - { "endMinute", n => { EndMinute = n.GetIntValue(); } }, - { "startHour", n => { StartHour = n.GetIntValue(); } }, - { "startMinute", n => { StartMinute = n.GetIntValue(); } }, - { "weekDays", n => { WeekDays = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("endHour", EndHour); - writer.WriteIntValue("endMinute", EndMinute); - writer.WriteIntValue("startHour", StartHour); - writer.WriteIntValue("startMinute", StartMinute); - writer.WriteCollectionOfPrimitiveValues("weekDays", WeekDays); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_backupUsage.cs b/V2/Devices/Search/Search4XXError_devices_references_backupUsage.cs deleted file mode 100644 index 36a2a71..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_backupUsage.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Device Backup Usage - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_backupUsage : 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; } - /// Revisions cloud file folder size - public long? CloudFileFolderSize { get; set; } - /// Revisions cloud image size - public long? CloudImageSize { get; set; } - /// Revisions cloud image v2 size - public long? CloudImageV2Size { get; set; } - /// Revisions cloud network share size - public long? CloudNetworkShareSize { get; set; } - /// Revisions cloud total size - public long? CloudTotalSize { get; private set; } - /// Last failed job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastFailedBackupJob { get; set; } - /// Last successful job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastSuccessfulBackupJob { get; set; } - /// Revisions local file folder size - public long? LocalFileFolderSize { get; set; } - /// Revisions local image size - public long? LocalImageSize { get; set; } - /// Revisions local image v2 size - public long? LocalImageV2Size { get; set; } - /// Revisions local total size - public long? LocalTotalSize { get; private set; } - /// Revisions current size - public long? RevisionsCurrentSize { get; set; } - /// Revisions deleted size - public long? RevisionsDeletedSize { get; set; } - /// Revisions previous size - public long? RevisionsPreviousSize { get; set; } - /// Revisions total size - public long? RevisionsTotalSize { get; private set; } - /// - /// Instantiates a new and sets the default values. - /// - public Search4XXError_devices_references_backupUsage() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_backupUsage CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_backupUsage(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cloudFileFolderSize", n => { CloudFileFolderSize = n.GetLongValue(); } }, - { "cloudImageSize", n => { CloudImageSize = n.GetLongValue(); } }, - { "cloudImageV2Size", n => { CloudImageV2Size = n.GetLongValue(); } }, - { "cloudNetworkShareSize", n => { CloudNetworkShareSize = n.GetLongValue(); } }, - { "cloudTotalSize", n => { CloudTotalSize = n.GetLongValue(); } }, - { "lastFailedBackupJob", n => { LastFailedBackupJob = n.GetDoubleValue(); } }, - { "lastSuccessfulBackupJob", n => { LastSuccessfulBackupJob = n.GetDoubleValue(); } }, - { "localFileFolderSize", n => { LocalFileFolderSize = n.GetLongValue(); } }, - { "localImageSize", n => { LocalImageSize = n.GetLongValue(); } }, - { "localImageV2Size", n => { LocalImageV2Size = n.GetLongValue(); } }, - { "localTotalSize", n => { LocalTotalSize = n.GetLongValue(); } }, - { "revisionsCurrentSize", n => { RevisionsCurrentSize = n.GetLongValue(); } }, - { "revisionsDeletedSize", n => { RevisionsDeletedSize = n.GetLongValue(); } }, - { "revisionsPreviousSize", n => { RevisionsPreviousSize = n.GetLongValue(); } }, - { "revisionsTotalSize", n => { RevisionsTotalSize = n.GetLongValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteLongValue("cloudFileFolderSize", CloudFileFolderSize); - writer.WriteLongValue("cloudImageSize", CloudImageSize); - writer.WriteLongValue("cloudImageV2Size", CloudImageV2Size); - writer.WriteLongValue("cloudNetworkShareSize", CloudNetworkShareSize); - writer.WriteDoubleValue("lastFailedBackupJob", LastFailedBackupJob); - writer.WriteDoubleValue("lastSuccessfulBackupJob", LastSuccessfulBackupJob); - writer.WriteLongValue("localFileFolderSize", LocalFileFolderSize); - writer.WriteLongValue("localImageSize", LocalImageSize); - writer.WriteLongValue("localImageV2Size", LocalImageV2Size); - writer.WriteLongValue("revisionsCurrentSize", RevisionsCurrentSize); - writer.WriteLongValue("revisionsDeletedSize", RevisionsDeletedSize); - writer.WriteLongValue("revisionsPreviousSize", RevisionsPreviousSize); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_location.cs b/V2/Devices/Search/Search4XXError_devices_references_location.cs deleted file mode 100644 index d527fbe..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_location.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_location : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_location_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_location_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_location_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_location_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Search4XXError_devices_references_location() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_location CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_location(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_location_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_location_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_location_fields.cs b/V2/Devices/Search/Search4XXError_devices_references_location_fields.cs deleted file mode 100644 index 0263fd1..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_location_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_location_fields : 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. - /// - public Search4XXError_devices_references_location_fields() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_location_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_location_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_location_userData.cs b/V2/Devices/Search/Search4XXError_devices_references_location_userData.cs deleted file mode 100644 index f0586dc..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_location_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_location_userData : 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. - /// - public Search4XXError_devices_references_location_userData() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_location_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_location_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_organization.cs b/V2/Devices/Search/Search4XXError_devices_references_organization.cs deleted file mode 100644 index 13c3348..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_organization.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_organization : 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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_organization_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_organization_fields Fields { get; set; } -#endif - /// Organization identifier - public int? Id { get; set; } - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_organization_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_organization_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_organization_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Search4XXError_devices_references_organization() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_organization CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_organization(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_organization_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_organization_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_organization_fields.cs b/V2/Devices/Search/Search4XXError_devices_references_organization_fields.cs deleted file mode 100644 index 1e115f4..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_organization_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_organization_fields : 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. - /// - public Search4XXError_devices_references_organization_fields() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_organization_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_organization_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_organization_nodeApprovalMode.cs b/V2/Devices/Search/Search4XXError_devices_references_organization_nodeApprovalMode.cs deleted file mode 100644 index 84873fa..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_organization_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Search4XXError_devices_references_organization_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search4XXError_devices_references_organization_userData.cs b/V2/Devices/Search/Search4XXError_devices_references_organization_userData.cs deleted file mode 100644 index 31bd938..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_organization_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_organization_userData : 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. - /// - public Search4XXError_devices_references_organization_userData() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_organization_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_organization_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_policy.cs b/V2/Devices/Search/Search4XXError_devices_references_policy.cs deleted file mode 100644 index 48c73fd..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_policy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_policy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_policy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_policy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_policy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Search4XXError_devices_references_policy() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_policy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_policy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_policy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_policy_fields.cs b/V2/Devices/Search/Search4XXError_devices_references_policy_fields.cs deleted file mode 100644 index 51eb283..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_policy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_policy_fields : 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. - /// - public Search4XXError_devices_references_policy_fields() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_policy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_policy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_policy_nodeClass.cs b/V2/Devices/Search/Search4XXError_devices_references_policy_nodeClass.cs deleted file mode 100644 index adad25d..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_policy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Search4XXError_devices_references_policy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search4XXError_devices_references_role.cs b/V2/Devices/Search/Search4XXError_devices_references_role.cs deleted file mode 100644 index 87c232f..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_role.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Device Role - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_role : 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; } - /// Chassis Type - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_role_chassisType? ChassisType { get; set; } - /// Date created - public double? Created { get; set; } - /// Is custom node role? - public bool? Custom { get; set; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_role_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_role_fields Fields { get; set; } -#endif - /// Icon -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Icon { get; set; } -#nullable restore -#else - public string Icon { get; set; } -#endif - /// Device Role identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_role_nodeClass? NodeClass { get; set; } - /// Node Role Parent Id - public int? NodeRoleParentId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Search4XXError_devices_references_role() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_role CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_role(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "chassisType", n => { ChassisType = n.GetEnumValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "custom", n => { Custom = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_role_fields.CreateFromDiscriminatorValue); } }, - { "icon", n => { Icon = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleParentId", n => { NodeRoleParentId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("chassisType", ChassisType); - writer.WriteDoubleValue("created", Created); - writer.WriteBoolValue("custom", Custom); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("icon", Icon); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleParentId", NodeRoleParentId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_rolePolicy.cs b/V2/Devices/Search/Search4XXError_devices_references_rolePolicy.cs deleted file mode 100644 index 291f1a3..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_rolePolicy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_rolePolicy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_rolePolicy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_rolePolicy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_rolePolicy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Search4XXError_devices_references_rolePolicy() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_rolePolicy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_rolePolicy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_rolePolicy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_rolePolicy_fields.cs b/V2/Devices/Search/Search4XXError_devices_references_rolePolicy_fields.cs deleted file mode 100644 index b3833b6..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_rolePolicy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_rolePolicy_fields : 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. - /// - public Search4XXError_devices_references_rolePolicy_fields() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_rolePolicy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_rolePolicy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_rolePolicy_nodeClass.cs b/V2/Devices/Search/Search4XXError_devices_references_rolePolicy_nodeClass.cs deleted file mode 100644 index ae0c6c7..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_rolePolicy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Search4XXError_devices_references_rolePolicy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search4XXError_devices_references_role_chassisType.cs b/V2/Devices/Search/Search4XXError_devices_references_role_chassisType.cs deleted file mode 100644 index ad34479..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_role_chassisType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// Chassis Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Search4XXError_devices_references_role_chassisType - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "DESKTOP")] - #pragma warning disable CS1591 - DESKTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "LAPTOP")] - #pragma warning disable CS1591 - LAPTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "MOBILE")] - #pragma warning disable CS1591 - MOBILE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search4XXError_devices_references_role_fields.cs b/V2/Devices/Search/Search4XXError_devices_references_role_fields.cs deleted file mode 100644 index 0328848..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_role_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_role_fields : 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. - /// - public Search4XXError_devices_references_role_fields() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_role_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_role_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_references_role_nodeClass.cs b/V2/Devices/Search/Search4XXError_devices_references_role_nodeClass.cs deleted file mode 100644 index e8f6553..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_role_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Search4XXError_devices_references_role_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search4XXError_devices_references_warranty.cs b/V2/Devices/Search/Search4XXError_devices_references_warranty.cs deleted file mode 100644 index b8ab3b8..0000000 --- a/V2/Devices/Search/Search4XXError_devices_references_warranty.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Warranty Info - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_references_warranty : 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; } - /// Warranty End Date (Seconds) - public double? EndDate { get; set; } - /// Manufacturer Fulfillment Date - public double? ManufacturerFulfillmentDate { get; set; } - /// Warranty Start Date (Seconds) - public double? StartDate { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Search4XXError_devices_references_warranty() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_warranty CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_references_warranty(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endDate", n => { EndDate = n.GetDoubleValue(); } }, - { "manufacturerFulfillmentDate", n => { ManufacturerFulfillmentDate = n.GetDoubleValue(); } }, - { "startDate", n => { StartDate = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("endDate", EndDate); - writer.WriteDoubleValue("manufacturerFulfillmentDate", ManufacturerFulfillmentDate); - writer.WriteDoubleValue("startDate", StartDate); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search4XXError_devices_userData.cs b/V2/Devices/Search/Search4XXError_devices_userData.cs deleted file mode 100644 index 86c51fb..0000000 --- a/V2/Devices/Search/Search4XXError_devices_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search4XXError_devices_userData : 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. - /// - public Search4XXError_devices_userData() - { - 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::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search4XXError_devices_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError.cs b/V2/Devices/Search/Search5XXError.cs deleted file mode 100644 index 891f8e5..0000000 --- a/V2/Devices/Search/Search5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Search5XXError : 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; } - /// Devices matching search query -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Devices { get; set; } -#nullable restore -#else - public List Devices { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Search query -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Query { get; set; } -#nullable restore -#else - public string Query { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Search5XXError() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "devices", n => { Devices = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices.CreateFromDiscriminatorValue)?.AsList(); } }, - { "query", n => { Query = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("devices", Devices); - writer.WriteStringValue("query", Query); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices.cs b/V2/Devices/Search/Search5XXError_devices.cs deleted file mode 100644 index d79df63..0000000 --- a/V2/Devices/Search/Search5XXError_devices.cs +++ /dev/null @@ -1,230 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Devices matching search query - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices : 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; } - /// Approval Status - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_approvalStatus? ApprovalStatus { get; set; } - /// Node (Device) Owner UUID - public Guid? AssignedOwnerUid { get; set; } - /// Created - public double? Created { get; set; } - /// Display Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// DNS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DnsName { get; set; } -#nullable restore -#else - public string DnsName { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_fields Fields { get; set; } -#endif - /// Node (Device) identifier - public int? Id { get; set; } - /// Last Contact - public double? LastContact { get; set; } - /// Last data submission timestamp - public double? LastUpdate { get; set; } - /// Location identifier - public int? LocationId { get; set; } - /// Maintenance mode status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_maintenance? Maintenance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_maintenance Maintenance { get; set; } -#endif - /// Name of the attribute that matched the query -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MatchAttr { get; set; } -#nullable restore -#else - public string MatchAttr { get; set; } -#endif - /// Value of that attribute that matched -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MatchAttrValue { get; set; } -#nullable restore -#else - public string MatchAttrValue { get; set; } -#endif - /// NETBIOS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NetbiosName { get; set; } -#nullable restore -#else - public string NetbiosName { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_nodeClass? NodeClass { get; set; } - /// Node Role identifier - public int? NodeRoleId { get; set; } - /// Is Offline? - public bool? Offline { get; set; } - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent Node identifier - public int? ParentDeviceId { get; set; } - /// Assigned policy ID (overrides organization and location policy mapping) - public int? PolicyId { get; set; } - /// Expanded entity references -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references? References { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references References { get; set; } -#endif - /// Node Role policy ID based on organization and location Policy Mapping - public int? RolePolicyId { get; set; } - /// Match score - public int? Score { get; set; } - /// System Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SystemName { get; set; } -#nullable restore -#else - public string SystemName { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Node (Device) UUID - public Guid? Uid { get; set; } - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Search5XXError_devices() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "approvalStatus", n => { ApprovalStatus = n.GetEnumValue(); } }, - { "assignedOwnerUid", n => { AssignedOwnerUid = n.GetGuidValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "dnsName", n => { DnsName = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastContact", n => { LastContact = n.GetDoubleValue(); } }, - { "lastUpdate", n => { LastUpdate = n.GetDoubleValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "maintenance", n => { Maintenance = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_maintenance.CreateFromDiscriminatorValue); } }, - { "matchAttr", n => { MatchAttr = n.GetStringValue(); } }, - { "matchAttrValue", n => { MatchAttrValue = n.GetStringValue(); } }, - { "netbiosName", n => { NetbiosName = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "offline", n => { Offline = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentDeviceId", n => { ParentDeviceId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - { "references", n => { References = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references.CreateFromDiscriminatorValue); } }, - { "rolePolicyId", n => { RolePolicyId = n.GetIntValue(); } }, - { "score", n => { Score = n.GetIntValue(); } }, - { "systemName", n => { SystemName = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("approvalStatus", ApprovalStatus); - writer.WriteGuidValue("assignedOwnerUid", AssignedOwnerUid); - writer.WriteDoubleValue("created", Created); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("dnsName", DnsName); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteDoubleValue("lastContact", LastContact); - writer.WriteDoubleValue("lastUpdate", LastUpdate); - writer.WriteIntValue("locationId", LocationId); - writer.WriteObjectValue("maintenance", Maintenance); - writer.WriteStringValue("matchAttr", MatchAttr); - writer.WriteStringValue("matchAttrValue", MatchAttrValue); - writer.WriteStringValue("netbiosName", NetbiosName); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteBoolValue("offline", Offline); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentDeviceId", ParentDeviceId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteObjectValue("references", References); - writer.WriteIntValue("rolePolicyId", RolePolicyId); - writer.WriteIntValue("score", Score); - writer.WriteStringValue("systemName", SystemName); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_approvalStatus.cs b/V2/Devices/Search/Search5XXError_devices_approvalStatus.cs deleted file mode 100644 index 7708180..0000000 --- a/V2/Devices/Search/Search5XXError_devices_approvalStatus.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// Approval Status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Search5XXError_devices_approvalStatus - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "APPROVED")] - #pragma warning disable CS1591 - APPROVED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search5XXError_devices_fields.cs b/V2/Devices/Search/Search5XXError_devices_fields.cs deleted file mode 100644 index df89197..0000000 --- a/V2/Devices/Search/Search5XXError_devices_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_fields : 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. - /// - public Search5XXError_devices_fields() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_maintenance.cs b/V2/Devices/Search/Search5XXError_devices_maintenance.cs deleted file mode 100644 index d44e775..0000000 --- a/V2/Devices/Search/Search5XXError_devices_maintenance.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Maintenance mode status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_maintenance : 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; } - /// Maintenance mode end time - public double? End { get; set; } - /// Maintenance reason message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ReasonMessage { get; set; } -#nullable restore -#else - public string ReasonMessage { get; set; } -#endif - /// Maintenance mode start time - public double? Start { get; set; } - /// Maintenance mode status - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_maintenance_status? Status { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Search5XXError_devices_maintenance() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_maintenance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_maintenance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "end", n => { End = n.GetDoubleValue(); } }, - { "reasonMessage", n => { ReasonMessage = n.GetStringValue(); } }, - { "start", n => { Start = n.GetDoubleValue(); } }, - { "status", n => { Status = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("end", End); - writer.WriteStringValue("reasonMessage", ReasonMessage); - writer.WriteDoubleValue("start", Start); - writer.WriteEnumValue("status", Status); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_maintenance_status.cs b/V2/Devices/Search/Search5XXError_devices_maintenance_status.cs deleted file mode 100644 index 650679d..0000000 --- a/V2/Devices/Search/Search5XXError_devices_maintenance_status.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// Maintenance mode status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Search5XXError_devices_maintenance_status - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_MAINTENANCE")] - #pragma warning disable CS1591 - IN_MAINTENANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILED")] - #pragma warning disable CS1591 - FAILED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search5XXError_devices_nodeClass.cs b/V2/Devices/Search/Search5XXError_devices_nodeClass.cs deleted file mode 100644 index 5a3e51c..0000000 --- a/V2/Devices/Search/Search5XXError_devices_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Search5XXError_devices_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search5XXError_devices_references.cs b/V2/Devices/Search/Search5XXError_devices_references.cs deleted file mode 100644 index 79b9b95..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Expanded entity references - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references : 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; } - /// Assigned device owner -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_assignedOwner? AssignedOwner { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_assignedOwner AssignedOwner { get; set; } -#endif - /// Device Backup Bandwidth Throttle -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_backupBandwidthThrottle? BackupBandwidthThrottle { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_backupBandwidthThrottle BackupBandwidthThrottle { get; set; } -#endif - /// Device Backup Usage -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_backupUsage? BackupUsage { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_backupUsage BackupUsage { get; set; } -#endif - /// Location -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_location? Location { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_location Location { get; set; } -#endif - /// Organization -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_organization? Organization { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_organization Organization { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_policy? Policy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_policy Policy { get; set; } -#endif - /// Device Role -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_role? Role { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_role Role { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_rolePolicy? RolePolicy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_rolePolicy RolePolicy { get; set; } -#endif - /// Warranty Info -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_warranty? Warranty { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_warranty Warranty { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Search5XXError_devices_references() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignedOwner", n => { AssignedOwner = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_assignedOwner.CreateFromDiscriminatorValue); } }, - { "backupBandwidthThrottle", n => { BackupBandwidthThrottle = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_backupBandwidthThrottle.CreateFromDiscriminatorValue); } }, - { "backupUsage", n => { BackupUsage = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_backupUsage.CreateFromDiscriminatorValue); } }, - { "location", n => { Location = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_location.CreateFromDiscriminatorValue); } }, - { "organization", n => { Organization = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_organization.CreateFromDiscriminatorValue); } }, - { "policy", n => { Policy = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_policy.CreateFromDiscriminatorValue); } }, - { "role", n => { Role = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_role.CreateFromDiscriminatorValue); } }, - { "rolePolicy", n => { RolePolicy = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_rolePolicy.CreateFromDiscriminatorValue); } }, - { "warranty", n => { Warranty = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_warranty.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assignedOwner", AssignedOwner); - writer.WriteObjectValue("backupBandwidthThrottle", BackupBandwidthThrottle); - writer.WriteObjectValue("backupUsage", BackupUsage); - writer.WriteObjectValue("location", Location); - writer.WriteObjectValue("organization", Organization); - writer.WriteObjectValue("policy", Policy); - writer.WriteObjectValue("role", Role); - writer.WriteObjectValue("rolePolicy", RolePolicy); - writer.WriteObjectValue("warranty", Warranty); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_assignedOwner.cs b/V2/Devices/Search/Search5XXError_devices_references_assignedOwner.cs deleted file mode 100644 index bfbb529..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_assignedOwner.cs +++ /dev/null @@ -1,190 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Assigned device owner - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_assignedOwner : 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; } - /// The administrator property - public bool? Administrator { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Device IDs which end-user is authorized to access -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DeviceIds { get; set; } -#nullable restore -#else - public List DeviceIds { get; set; } -#endif - /// The email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The enabled property - public bool? Enabled { get; set; } - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_assignedOwner_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_assignedOwner_fields Fields { get; set; } -#endif - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// The invitationStatus property - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_assignedOwner_invitationStatus? InvitationStatus { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// The mfaConfigured property - public bool? MfaConfigured { get; set; } - /// The mustChangePw property - public bool? MustChangePw { get; set; } - /// The notifyAllClients property - public bool? NotifyAllClients { get; set; } - /// Identifier of organization for end-users - public int? OrganizationId { get; set; } - /// The permitAllClients property - public bool? PermitAllClients { get; set; } - /// The phone property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the user. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// User universally unique identifier - public Guid? Uid { get; set; } - /// The userType property - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_assignedOwner_userType? UserType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Search5XXError_devices_references_assignedOwner() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_assignedOwner CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_assignedOwner(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "administrator", n => { Administrator = n.GetBoolValue(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "deviceIds", n => { DeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_assignedOwner_fields.CreateFromDiscriminatorValue); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "notifyAllClients", n => { NotifyAllClients = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "permitAllClients", n => { PermitAllClients = n.GetBoolValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userType", n => { UserType = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("administrator", Administrator); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteCollectionOfPrimitiveValues("deviceIds", DeviceIds); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteBoolValue("notifyAllClients", NotifyAllClients); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteBoolValue("permitAllClients", PermitAllClients); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteEnumValue("userType", UserType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_assignedOwner_fields.cs b/V2/Devices/Search/Search5XXError_devices_references_assignedOwner_fields.cs deleted file mode 100644 index 0135b12..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_assignedOwner_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_assignedOwner_fields : 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. - /// - public Search5XXError_devices_references_assignedOwner_fields() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_assignedOwner_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_assignedOwner_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_assignedOwner_invitationStatus.cs b/V2/Devices/Search/Search5XXError_devices_references_assignedOwner_invitationStatus.cs deleted file mode 100644 index 3eaaacd..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_assignedOwner_invitationStatus.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Search5XXError_devices_references_assignedOwner_invitationStatus - #pragma warning restore CS1591 - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search5XXError_devices_references_assignedOwner_userType.cs b/V2/Devices/Search/Search5XXError_devices_references_assignedOwner_userType.cs deleted file mode 100644 index 7540e6d..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_assignedOwner_userType.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Search5XXError_devices_references_assignedOwner_userType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search5XXError_devices_references_backupBandwidthThrottle.cs b/V2/Devices/Search/Search5XXError_devices_references_backupBandwidthThrottle.cs deleted file mode 100644 index 4956442..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_backupBandwidthThrottle.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Device Backup Bandwidth Throttle - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_backupBandwidthThrottle : 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; } - /// Whether bandwidth throttle is enabled/true or disabled/false - public bool? Enabled { get; set; } - /// Bandwidth nonwork hours limit - public int? NonWorkHoursKbps { get; set; } - /// Bandwidth nonwork hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NonWorkHoursUserUnit { get; set; } -#nullable restore -#else - public string NonWorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work hours limit - public int? WorkHoursKbps { get; set; } - /// Bandwidth work hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? WorkHoursUserUnit { get; set; } -#nullable restore -#else - public string WorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work schedule -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_backupBandwidthThrottle_workSchedule? WorkSchedule { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_backupBandwidthThrottle_workSchedule WorkSchedule { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Search5XXError_devices_references_backupBandwidthThrottle() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_backupBandwidthThrottle CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_backupBandwidthThrottle(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "nonWorkHoursKbps", n => { NonWorkHoursKbps = n.GetIntValue(); } }, - { "nonWorkHoursUserUnit", n => { NonWorkHoursUserUnit = n.GetStringValue(); } }, - { "workHoursKbps", n => { WorkHoursKbps = n.GetIntValue(); } }, - { "workHoursUserUnit", n => { WorkHoursUserUnit = n.GetStringValue(); } }, - { "workSchedule", n => { WorkSchedule = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_backupBandwidthThrottle_workSchedule.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("nonWorkHoursKbps", NonWorkHoursKbps); - writer.WriteStringValue("nonWorkHoursUserUnit", NonWorkHoursUserUnit); - writer.WriteIntValue("workHoursKbps", WorkHoursKbps); - writer.WriteStringValue("workHoursUserUnit", WorkHoursUserUnit); - writer.WriteObjectValue("workSchedule", WorkSchedule); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_backupBandwidthThrottle_workSchedule.cs b/V2/Devices/Search/Search5XXError_devices_references_backupBandwidthThrottle_workSchedule.cs deleted file mode 100644 index 4d0abb9..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_backupBandwidthThrottle_workSchedule.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Bandwidth work schedule - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_backupBandwidthThrottle_workSchedule : 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; } - /// Work schedule end hour (0 to 23) - public int? EndHour { get; set; } - /// Work schedule end minute (0 to 59) - public int? EndMinute { get; set; } - /// Work schedule start hour (0 to 23) - public int? StartHour { get; set; } - /// Work schedule start minute (0 to 59) - public int? StartMinute { get; set; } - /// Work schedule week days list -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? WeekDays { get; set; } -#nullable restore -#else - public List WeekDays { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Search5XXError_devices_references_backupBandwidthThrottle_workSchedule() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_backupBandwidthThrottle_workSchedule CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_backupBandwidthThrottle_workSchedule(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endHour", n => { EndHour = n.GetIntValue(); } }, - { "endMinute", n => { EndMinute = n.GetIntValue(); } }, - { "startHour", n => { StartHour = n.GetIntValue(); } }, - { "startMinute", n => { StartMinute = n.GetIntValue(); } }, - { "weekDays", n => { WeekDays = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("endHour", EndHour); - writer.WriteIntValue("endMinute", EndMinute); - writer.WriteIntValue("startHour", StartHour); - writer.WriteIntValue("startMinute", StartMinute); - writer.WriteCollectionOfPrimitiveValues("weekDays", WeekDays); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_backupUsage.cs b/V2/Devices/Search/Search5XXError_devices_references_backupUsage.cs deleted file mode 100644 index ed14fbc..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_backupUsage.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Device Backup Usage - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_backupUsage : 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; } - /// Revisions cloud file folder size - public long? CloudFileFolderSize { get; set; } - /// Revisions cloud image size - public long? CloudImageSize { get; set; } - /// Revisions cloud image v2 size - public long? CloudImageV2Size { get; set; } - /// Revisions cloud network share size - public long? CloudNetworkShareSize { get; set; } - /// Revisions cloud total size - public long? CloudTotalSize { get; private set; } - /// Last failed job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastFailedBackupJob { get; set; } - /// Last successful job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastSuccessfulBackupJob { get; set; } - /// Revisions local file folder size - public long? LocalFileFolderSize { get; set; } - /// Revisions local image size - public long? LocalImageSize { get; set; } - /// Revisions local image v2 size - public long? LocalImageV2Size { get; set; } - /// Revisions local total size - public long? LocalTotalSize { get; private set; } - /// Revisions current size - public long? RevisionsCurrentSize { get; set; } - /// Revisions deleted size - public long? RevisionsDeletedSize { get; set; } - /// Revisions previous size - public long? RevisionsPreviousSize { get; set; } - /// Revisions total size - public long? RevisionsTotalSize { get; private set; } - /// - /// Instantiates a new and sets the default values. - /// - public Search5XXError_devices_references_backupUsage() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_backupUsage CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_backupUsage(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cloudFileFolderSize", n => { CloudFileFolderSize = n.GetLongValue(); } }, - { "cloudImageSize", n => { CloudImageSize = n.GetLongValue(); } }, - { "cloudImageV2Size", n => { CloudImageV2Size = n.GetLongValue(); } }, - { "cloudNetworkShareSize", n => { CloudNetworkShareSize = n.GetLongValue(); } }, - { "cloudTotalSize", n => { CloudTotalSize = n.GetLongValue(); } }, - { "lastFailedBackupJob", n => { LastFailedBackupJob = n.GetDoubleValue(); } }, - { "lastSuccessfulBackupJob", n => { LastSuccessfulBackupJob = n.GetDoubleValue(); } }, - { "localFileFolderSize", n => { LocalFileFolderSize = n.GetLongValue(); } }, - { "localImageSize", n => { LocalImageSize = n.GetLongValue(); } }, - { "localImageV2Size", n => { LocalImageV2Size = n.GetLongValue(); } }, - { "localTotalSize", n => { LocalTotalSize = n.GetLongValue(); } }, - { "revisionsCurrentSize", n => { RevisionsCurrentSize = n.GetLongValue(); } }, - { "revisionsDeletedSize", n => { RevisionsDeletedSize = n.GetLongValue(); } }, - { "revisionsPreviousSize", n => { RevisionsPreviousSize = n.GetLongValue(); } }, - { "revisionsTotalSize", n => { RevisionsTotalSize = n.GetLongValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteLongValue("cloudFileFolderSize", CloudFileFolderSize); - writer.WriteLongValue("cloudImageSize", CloudImageSize); - writer.WriteLongValue("cloudImageV2Size", CloudImageV2Size); - writer.WriteLongValue("cloudNetworkShareSize", CloudNetworkShareSize); - writer.WriteDoubleValue("lastFailedBackupJob", LastFailedBackupJob); - writer.WriteDoubleValue("lastSuccessfulBackupJob", LastSuccessfulBackupJob); - writer.WriteLongValue("localFileFolderSize", LocalFileFolderSize); - writer.WriteLongValue("localImageSize", LocalImageSize); - writer.WriteLongValue("localImageV2Size", LocalImageV2Size); - writer.WriteLongValue("revisionsCurrentSize", RevisionsCurrentSize); - writer.WriteLongValue("revisionsDeletedSize", RevisionsDeletedSize); - writer.WriteLongValue("revisionsPreviousSize", RevisionsPreviousSize); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_location.cs b/V2/Devices/Search/Search5XXError_devices_references_location.cs deleted file mode 100644 index 40ec0c6..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_location.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_location : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_location_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_location_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_location_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_location_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Search5XXError_devices_references_location() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_location CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_location(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_location_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_location_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_location_fields.cs b/V2/Devices/Search/Search5XXError_devices_references_location_fields.cs deleted file mode 100644 index 9cbaa2d..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_location_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_location_fields : 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. - /// - public Search5XXError_devices_references_location_fields() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_location_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_location_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_location_userData.cs b/V2/Devices/Search/Search5XXError_devices_references_location_userData.cs deleted file mode 100644 index 5f0cf74..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_location_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_location_userData : 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. - /// - public Search5XXError_devices_references_location_userData() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_location_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_location_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_organization.cs b/V2/Devices/Search/Search5XXError_devices_references_organization.cs deleted file mode 100644 index 9df21a9..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_organization.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_organization : 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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_organization_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_organization_fields Fields { get; set; } -#endif - /// Organization identifier - public int? Id { get; set; } - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_organization_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_organization_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_organization_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Search5XXError_devices_references_organization() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_organization CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_organization(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_organization_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_organization_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_organization_fields.cs b/V2/Devices/Search/Search5XXError_devices_references_organization_fields.cs deleted file mode 100644 index eac96fe..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_organization_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_organization_fields : 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. - /// - public Search5XXError_devices_references_organization_fields() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_organization_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_organization_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_organization_nodeApprovalMode.cs b/V2/Devices/Search/Search5XXError_devices_references_organization_nodeApprovalMode.cs deleted file mode 100644 index b413fce..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_organization_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Search5XXError_devices_references_organization_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search5XXError_devices_references_organization_userData.cs b/V2/Devices/Search/Search5XXError_devices_references_organization_userData.cs deleted file mode 100644 index d39be8a..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_organization_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_organization_userData : 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. - /// - public Search5XXError_devices_references_organization_userData() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_organization_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_organization_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_policy.cs b/V2/Devices/Search/Search5XXError_devices_references_policy.cs deleted file mode 100644 index 0aaa2ba..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_policy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_policy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_policy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_policy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_policy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Search5XXError_devices_references_policy() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_policy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_policy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_policy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_policy_fields.cs b/V2/Devices/Search/Search5XXError_devices_references_policy_fields.cs deleted file mode 100644 index 0b9ec1c..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_policy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_policy_fields : 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. - /// - public Search5XXError_devices_references_policy_fields() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_policy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_policy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_policy_nodeClass.cs b/V2/Devices/Search/Search5XXError_devices_references_policy_nodeClass.cs deleted file mode 100644 index 531edc9..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_policy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Search5XXError_devices_references_policy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search5XXError_devices_references_role.cs b/V2/Devices/Search/Search5XXError_devices_references_role.cs deleted file mode 100644 index 4199e80..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_role.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Device Role - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_role : 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; } - /// Chassis Type - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_role_chassisType? ChassisType { get; set; } - /// Date created - public double? Created { get; set; } - /// Is custom node role? - public bool? Custom { get; set; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_role_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_role_fields Fields { get; set; } -#endif - /// Icon -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Icon { get; set; } -#nullable restore -#else - public string Icon { get; set; } -#endif - /// Device Role identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_role_nodeClass? NodeClass { get; set; } - /// Node Role Parent Id - public int? NodeRoleParentId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Search5XXError_devices_references_role() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_role CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_role(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "chassisType", n => { ChassisType = n.GetEnumValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "custom", n => { Custom = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_role_fields.CreateFromDiscriminatorValue); } }, - { "icon", n => { Icon = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleParentId", n => { NodeRoleParentId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("chassisType", ChassisType); - writer.WriteDoubleValue("created", Created); - writer.WriteBoolValue("custom", Custom); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("icon", Icon); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleParentId", NodeRoleParentId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_rolePolicy.cs b/V2/Devices/Search/Search5XXError_devices_references_rolePolicy.cs deleted file mode 100644 index c0fa4d7..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_rolePolicy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_rolePolicy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_rolePolicy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_rolePolicy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_rolePolicy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Search5XXError_devices_references_rolePolicy() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_rolePolicy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_rolePolicy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_rolePolicy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_rolePolicy_fields.cs b/V2/Devices/Search/Search5XXError_devices_references_rolePolicy_fields.cs deleted file mode 100644 index e91e5ea..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_rolePolicy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_rolePolicy_fields : 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. - /// - public Search5XXError_devices_references_rolePolicy_fields() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_rolePolicy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_rolePolicy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_rolePolicy_nodeClass.cs b/V2/Devices/Search/Search5XXError_devices_references_rolePolicy_nodeClass.cs deleted file mode 100644 index 615cc03..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_rolePolicy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Search5XXError_devices_references_rolePolicy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search5XXError_devices_references_role_chassisType.cs b/V2/Devices/Search/Search5XXError_devices_references_role_chassisType.cs deleted file mode 100644 index fd20d65..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_role_chassisType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// Chassis Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Search5XXError_devices_references_role_chassisType - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "DESKTOP")] - #pragma warning disable CS1591 - DESKTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "LAPTOP")] - #pragma warning disable CS1591 - LAPTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "MOBILE")] - #pragma warning disable CS1591 - MOBILE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search5XXError_devices_references_role_fields.cs b/V2/Devices/Search/Search5XXError_devices_references_role_fields.cs deleted file mode 100644 index 5ea0d47..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_role_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_role_fields : 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. - /// - public Search5XXError_devices_references_role_fields() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_role_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_role_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_references_role_nodeClass.cs b/V2/Devices/Search/Search5XXError_devices_references_role_nodeClass.cs deleted file mode 100644 index 2234086..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_role_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Search5XXError_devices_references_role_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Devices/Search/Search5XXError_devices_references_warranty.cs b/V2/Devices/Search/Search5XXError_devices_references_warranty.cs deleted file mode 100644 index 43966be..0000000 --- a/V2/Devices/Search/Search5XXError_devices_references_warranty.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Warranty Info - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_references_warranty : 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; } - /// Warranty End Date (Seconds) - public double? EndDate { get; set; } - /// Manufacturer Fulfillment Date - public double? ManufacturerFulfillmentDate { get; set; } - /// Warranty Start Date (Seconds) - public double? StartDate { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Search5XXError_devices_references_warranty() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_warranty CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_references_warranty(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endDate", n => { EndDate = n.GetDoubleValue(); } }, - { "manufacturerFulfillmentDate", n => { ManufacturerFulfillmentDate = n.GetDoubleValue(); } }, - { "startDate", n => { StartDate = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("endDate", EndDate); - writer.WriteDoubleValue("manufacturerFulfillmentDate", ManufacturerFulfillmentDate); - writer.WriteDoubleValue("startDate", StartDate); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/Search5XXError_devices_userData.cs b/V2/Devices/Search/Search5XXError_devices_userData.cs deleted file mode 100644 index 8ebafd8..0000000 --- a/V2/Devices/Search/Search5XXError_devices_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Search5XXError_devices_userData : 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. - /// - public Search5XXError_devices_userData() - { - 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::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Devices.Search.Search5XXError_devices_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Devices/Search/SearchRequestBuilder.cs b/V2/Devices/Search/SearchRequestBuilder.cs deleted file mode 100644 index 504e6e4..0000000 --- a/V2/Devices/Search/SearchRequestBuilder.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Devices.Search -{ - /// - /// Builds and executes requests for operations under \v2\devices\search - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SearchRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/devices/search{?limit*,q*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/devices/search{?limit*,q*}", rawUrl) - { - } - /// - /// Returns list of entities matching search term - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Devices.Search.Search4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Devices.Search.Search5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of entities matching search term - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Devices.Search.SearchRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Devices.Search.SearchRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of entities matching search term - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SearchRequestBuilderGetQueryParameters - { - /// Limit number of devices to return - [QueryParameter("limit")] - public int? Limit { get; set; } - /// Search query (name, logged on user name, IP address, etc.) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("q")] - public string? Q { get; set; } -#nullable restore -#else - [QueryParameter("q")] - public string Q { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SearchRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed.cs b/V2/DevicesDetailed/DevicesDetailed.cs deleted file mode 100644 index 2ec9bf1..0000000 --- a/V2/DevicesDetailed/DevicesDetailed.cs +++ /dev/null @@ -1,258 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DevicesDetailed : 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; } - /// Approval Status - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_approvalStatus? ApprovalStatus { get; set; } - /// Node (Device) Owner UUID - public Guid? AssignedOwnerUid { get; set; } - /// Created - public double? Created { get; set; } - /// The deviceType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DeviceType { get; set; } -#nullable restore -#else - public string DeviceType { get; set; } -#endif - /// Display Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// DNS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DnsName { get; set; } -#nullable restore -#else - public string DnsName { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_fields Fields { get; set; } -#endif - /// Node (Device) identifier - public int? Id { get; set; } - /// Device IP addresses -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? IpAddresses { get; set; } -#nullable restore -#else - public List IpAddresses { get; set; } -#endif - /// Last Contact - public double? LastContact { get; set; } - /// Last data submission timestamp - public double? LastUpdate { get; set; } - /// Location identifier - public int? LocationId { get; set; } - /// Device MAC addresses -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MacAddresses { get; set; } -#nullable restore -#else - public List MacAddresses { get; set; } -#endif - /// Maintenance mode status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_maintenance? Maintenance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_maintenance Maintenance { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// NETBIOS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NetbiosName { get; set; } -#nullable restore -#else - public string NetbiosName { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_nodeClass? NodeClass { get; set; } - /// Node Role identifier - public int? NodeRoleId { get; set; } - /// Device Notes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Notes { get; set; } -#nullable restore -#else - public List Notes { get; set; } -#endif - /// Is Offline? - public bool? Offline { get; set; } - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent Node identifier - public int? ParentDeviceId { get; set; } - /// Assigned policy ID (overrides organization and location policy mapping) - public int? PolicyId { get; set; } - /// Device Public IP Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? PublicIP { get; set; } -#nullable restore -#else - public string PublicIP { get; set; } -#endif - /// Expanded entity references -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references? References { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references References { get; set; } -#endif - /// Node Role policy ID based on organization and location Policy Mapping - public int? RolePolicyId { get; set; } - /// System Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SystemName { get; set; } -#nullable restore -#else - public string SystemName { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Node (Device) UUID - public Guid? Uid { get; set; } - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DevicesDetailed() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "approvalStatus", n => { ApprovalStatus = n.GetEnumValue(); } }, - { "assignedOwnerUid", n => { AssignedOwnerUid = n.GetGuidValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "deviceType", n => { DeviceType = n.GetStringValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "dnsName", n => { DnsName = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "ipAddresses", n => { IpAddresses = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "lastContact", n => { LastContact = n.GetDoubleValue(); } }, - { "lastUpdate", n => { LastUpdate = n.GetDoubleValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "macAddresses", n => { MacAddresses = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "maintenance", n => { Maintenance = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_maintenance.CreateFromDiscriminatorValue); } }, - { "netbiosName", n => { NetbiosName = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "notes", n => { Notes = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_notes.CreateFromDiscriminatorValue)?.AsList(); } }, - { "offline", n => { Offline = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentDeviceId", n => { ParentDeviceId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - { "publicIP", n => { PublicIP = n.GetStringValue(); } }, - { "references", n => { References = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references.CreateFromDiscriminatorValue); } }, - { "rolePolicyId", n => { RolePolicyId = n.GetIntValue(); } }, - { "systemName", n => { SystemName = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("approvalStatus", ApprovalStatus); - writer.WriteGuidValue("assignedOwnerUid", AssignedOwnerUid); - writer.WriteDoubleValue("created", Created); - writer.WriteStringValue("deviceType", DeviceType); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("dnsName", DnsName); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteCollectionOfPrimitiveValues("ipAddresses", IpAddresses); - writer.WriteDoubleValue("lastContact", LastContact); - writer.WriteDoubleValue("lastUpdate", LastUpdate); - writer.WriteIntValue("locationId", LocationId); - writer.WriteCollectionOfPrimitiveValues("macAddresses", MacAddresses); - writer.WriteObjectValue("maintenance", Maintenance); - writer.WriteStringValue("netbiosName", NetbiosName); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteCollectionOfObjectValues("notes", Notes); - writer.WriteBoolValue("offline", Offline); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentDeviceId", ParentDeviceId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteStringValue("publicIP", PublicIP); - writer.WriteObjectValue("references", References); - writer.WriteIntValue("rolePolicyId", RolePolicyId); - writer.WriteStringValue("systemName", SystemName); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailedRequestBuilder.cs b/V2/DevicesDetailed/DevicesDetailedRequestBuilder.cs deleted file mode 100644 index cb294b1..0000000 --- a/V2/DevicesDetailed/DevicesDetailedRequestBuilder.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Builds and executes requests for operations under \v2\devices-detailed - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailedRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DevicesDetailedRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/devices-detailed{?after*,df*,pageSize*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DevicesDetailedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/devices-detailed{?after*,df*,pageSize*}", rawUrl) - { - } - /// - /// Returns list of devices with additional information - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of devices with additional information - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailedRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailedRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of devices with additional information - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailedRequestBuilderGetQueryParameters - { - [QueryParameter("after")] - public int? After { get; set; } - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailedRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_approvalStatus.cs b/V2/DevicesDetailed/DevicesDetailed_approvalStatus.cs deleted file mode 100644 index fd41b2c..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_approvalStatus.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// Approval Status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DevicesDetailed_approvalStatus - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "APPROVED")] - #pragma warning disable CS1591 - APPROVED, - #pragma warning restore CS1591 - } -} diff --git a/V2/DevicesDetailed/DevicesDetailed_fields.cs b/V2/DevicesDetailed/DevicesDetailed_fields.cs deleted file mode 100644 index efe219b..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_fields : 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. - /// - public DevicesDetailed_fields() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_maintenance.cs b/V2/DevicesDetailed/DevicesDetailed_maintenance.cs deleted file mode 100644 index 18ef92c..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_maintenance.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Maintenance mode status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_maintenance : 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; } - /// Maintenance mode end time - public double? End { get; set; } - /// Maintenance reason message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ReasonMessage { get; set; } -#nullable restore -#else - public string ReasonMessage { get; set; } -#endif - /// Maintenance mode start time - public double? Start { get; set; } - /// Maintenance mode status - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_maintenance_status? Status { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DevicesDetailed_maintenance() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_maintenance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_maintenance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "end", n => { End = n.GetDoubleValue(); } }, - { "reasonMessage", n => { ReasonMessage = n.GetStringValue(); } }, - { "start", n => { Start = n.GetDoubleValue(); } }, - { "status", n => { Status = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("end", End); - writer.WriteStringValue("reasonMessage", ReasonMessage); - writer.WriteDoubleValue("start", Start); - writer.WriteEnumValue("status", Status); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_maintenance_status.cs b/V2/DevicesDetailed/DevicesDetailed_maintenance_status.cs deleted file mode 100644 index b718ef4..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_maintenance_status.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// Maintenance mode status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DevicesDetailed_maintenance_status - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_MAINTENANCE")] - #pragma warning disable CS1591 - IN_MAINTENANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILED")] - #pragma warning disable CS1591 - FAILED, - #pragma warning restore CS1591 - } -} diff --git a/V2/DevicesDetailed/DevicesDetailed_nodeClass.cs b/V2/DevicesDetailed/DevicesDetailed_nodeClass.cs deleted file mode 100644 index 3d30381..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DevicesDetailed_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DevicesDetailed/DevicesDetailed_notes.cs b/V2/DevicesDetailed/DevicesDetailed_notes.cs deleted file mode 100644 index 8274152..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_notes.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Device Notes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_notes : 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; } - /// Note text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DevicesDetailed_notes() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_notes CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_notes(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references.cs b/V2/DevicesDetailed/DevicesDetailed_references.cs deleted file mode 100644 index 6fd13e7..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Expanded entity references - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references : 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; } - /// Assigned device owner -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_assignedOwner? AssignedOwner { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_assignedOwner AssignedOwner { get; set; } -#endif - /// Device Backup Bandwidth Throttle -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_backupBandwidthThrottle? BackupBandwidthThrottle { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_backupBandwidthThrottle BackupBandwidthThrottle { get; set; } -#endif - /// Device Backup Usage -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_backupUsage? BackupUsage { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_backupUsage BackupUsage { get; set; } -#endif - /// Location -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_location? Location { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_location Location { get; set; } -#endif - /// Organization -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_organization? Organization { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_organization Organization { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_policy? Policy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_policy Policy { get; set; } -#endif - /// Device Role -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_role? Role { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_role Role { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_rolePolicy? RolePolicy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_rolePolicy RolePolicy { get; set; } -#endif - /// Warranty Info -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_warranty? Warranty { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_warranty Warranty { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DevicesDetailed_references() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignedOwner", n => { AssignedOwner = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_assignedOwner.CreateFromDiscriminatorValue); } }, - { "backupBandwidthThrottle", n => { BackupBandwidthThrottle = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_backupBandwidthThrottle.CreateFromDiscriminatorValue); } }, - { "backupUsage", n => { BackupUsage = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_backupUsage.CreateFromDiscriminatorValue); } }, - { "location", n => { Location = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_location.CreateFromDiscriminatorValue); } }, - { "organization", n => { Organization = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_organization.CreateFromDiscriminatorValue); } }, - { "policy", n => { Policy = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_policy.CreateFromDiscriminatorValue); } }, - { "role", n => { Role = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_role.CreateFromDiscriminatorValue); } }, - { "rolePolicy", n => { RolePolicy = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_rolePolicy.CreateFromDiscriminatorValue); } }, - { "warranty", n => { Warranty = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_warranty.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assignedOwner", AssignedOwner); - writer.WriteObjectValue("backupBandwidthThrottle", BackupBandwidthThrottle); - writer.WriteObjectValue("backupUsage", BackupUsage); - writer.WriteObjectValue("location", Location); - writer.WriteObjectValue("organization", Organization); - writer.WriteObjectValue("policy", Policy); - writer.WriteObjectValue("role", Role); - writer.WriteObjectValue("rolePolicy", RolePolicy); - writer.WriteObjectValue("warranty", Warranty); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_assignedOwner.cs b/V2/DevicesDetailed/DevicesDetailed_references_assignedOwner.cs deleted file mode 100644 index bbc8f96..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_assignedOwner.cs +++ /dev/null @@ -1,190 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Assigned device owner - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_assignedOwner : 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; } - /// The administrator property - public bool? Administrator { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Device IDs which end-user is authorized to access -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DeviceIds { get; set; } -#nullable restore -#else - public List DeviceIds { get; set; } -#endif - /// The email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The enabled property - public bool? Enabled { get; set; } - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_assignedOwner_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_assignedOwner_fields Fields { get; set; } -#endif - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// The invitationStatus property - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_assignedOwner_invitationStatus? InvitationStatus { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// The mfaConfigured property - public bool? MfaConfigured { get; set; } - /// The mustChangePw property - public bool? MustChangePw { get; set; } - /// The notifyAllClients property - public bool? NotifyAllClients { get; set; } - /// Identifier of organization for end-users - public int? OrganizationId { get; set; } - /// The permitAllClients property - public bool? PermitAllClients { get; set; } - /// The phone property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the user. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// User universally unique identifier - public Guid? Uid { get; set; } - /// The userType property - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_assignedOwner_userType? UserType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DevicesDetailed_references_assignedOwner() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_assignedOwner CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_assignedOwner(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "administrator", n => { Administrator = n.GetBoolValue(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "deviceIds", n => { DeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_assignedOwner_fields.CreateFromDiscriminatorValue); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "notifyAllClients", n => { NotifyAllClients = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "permitAllClients", n => { PermitAllClients = n.GetBoolValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userType", n => { UserType = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("administrator", Administrator); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteCollectionOfPrimitiveValues("deviceIds", DeviceIds); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteBoolValue("notifyAllClients", NotifyAllClients); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteBoolValue("permitAllClients", PermitAllClients); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteEnumValue("userType", UserType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_assignedOwner_fields.cs b/V2/DevicesDetailed/DevicesDetailed_references_assignedOwner_fields.cs deleted file mode 100644 index 9fb4fae..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_assignedOwner_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_assignedOwner_fields : 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. - /// - public DevicesDetailed_references_assignedOwner_fields() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_assignedOwner_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_assignedOwner_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_assignedOwner_invitationStatus.cs b/V2/DevicesDetailed/DevicesDetailed_references_assignedOwner_invitationStatus.cs deleted file mode 100644 index 231d435..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_assignedOwner_invitationStatus.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DevicesDetailed_references_assignedOwner_invitationStatus - #pragma warning restore CS1591 - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/DevicesDetailed/DevicesDetailed_references_assignedOwner_userType.cs b/V2/DevicesDetailed/DevicesDetailed_references_assignedOwner_userType.cs deleted file mode 100644 index 0c41fd8..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_assignedOwner_userType.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DevicesDetailed_references_assignedOwner_userType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - } -} diff --git a/V2/DevicesDetailed/DevicesDetailed_references_backupBandwidthThrottle.cs b/V2/DevicesDetailed/DevicesDetailed_references_backupBandwidthThrottle.cs deleted file mode 100644 index d1080f1..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_backupBandwidthThrottle.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Device Backup Bandwidth Throttle - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_backupBandwidthThrottle : 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; } - /// Whether bandwidth throttle is enabled/true or disabled/false - public bool? Enabled { get; set; } - /// Bandwidth nonwork hours limit - public int? NonWorkHoursKbps { get; set; } - /// Bandwidth nonwork hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NonWorkHoursUserUnit { get; set; } -#nullable restore -#else - public string NonWorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work hours limit - public int? WorkHoursKbps { get; set; } - /// Bandwidth work hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? WorkHoursUserUnit { get; set; } -#nullable restore -#else - public string WorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work schedule -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_backupBandwidthThrottle_workSchedule? WorkSchedule { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_backupBandwidthThrottle_workSchedule WorkSchedule { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DevicesDetailed_references_backupBandwidthThrottle() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_backupBandwidthThrottle CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_backupBandwidthThrottle(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "nonWorkHoursKbps", n => { NonWorkHoursKbps = n.GetIntValue(); } }, - { "nonWorkHoursUserUnit", n => { NonWorkHoursUserUnit = n.GetStringValue(); } }, - { "workHoursKbps", n => { WorkHoursKbps = n.GetIntValue(); } }, - { "workHoursUserUnit", n => { WorkHoursUserUnit = n.GetStringValue(); } }, - { "workSchedule", n => { WorkSchedule = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_backupBandwidthThrottle_workSchedule.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("nonWorkHoursKbps", NonWorkHoursKbps); - writer.WriteStringValue("nonWorkHoursUserUnit", NonWorkHoursUserUnit); - writer.WriteIntValue("workHoursKbps", WorkHoursKbps); - writer.WriteStringValue("workHoursUserUnit", WorkHoursUserUnit); - writer.WriteObjectValue("workSchedule", WorkSchedule); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_backupBandwidthThrottle_workSchedule.cs b/V2/DevicesDetailed/DevicesDetailed_references_backupBandwidthThrottle_workSchedule.cs deleted file mode 100644 index b8b334e..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_backupBandwidthThrottle_workSchedule.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Bandwidth work schedule - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_backupBandwidthThrottle_workSchedule : 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; } - /// Work schedule end hour (0 to 23) - public int? EndHour { get; set; } - /// Work schedule end minute (0 to 59) - public int? EndMinute { get; set; } - /// Work schedule start hour (0 to 23) - public int? StartHour { get; set; } - /// Work schedule start minute (0 to 59) - public int? StartMinute { get; set; } - /// Work schedule week days list -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? WeekDays { get; set; } -#nullable restore -#else - public List WeekDays { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DevicesDetailed_references_backupBandwidthThrottle_workSchedule() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_backupBandwidthThrottle_workSchedule CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_backupBandwidthThrottle_workSchedule(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endHour", n => { EndHour = n.GetIntValue(); } }, - { "endMinute", n => { EndMinute = n.GetIntValue(); } }, - { "startHour", n => { StartHour = n.GetIntValue(); } }, - { "startMinute", n => { StartMinute = n.GetIntValue(); } }, - { "weekDays", n => { WeekDays = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("endHour", EndHour); - writer.WriteIntValue("endMinute", EndMinute); - writer.WriteIntValue("startHour", StartHour); - writer.WriteIntValue("startMinute", StartMinute); - writer.WriteCollectionOfPrimitiveValues("weekDays", WeekDays); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_backupUsage.cs b/V2/DevicesDetailed/DevicesDetailed_references_backupUsage.cs deleted file mode 100644 index c0f56f4..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_backupUsage.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Device Backup Usage - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_backupUsage : 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; } - /// Revisions cloud file folder size - public long? CloudFileFolderSize { get; set; } - /// Revisions cloud image size - public long? CloudImageSize { get; set; } - /// Revisions cloud image v2 size - public long? CloudImageV2Size { get; set; } - /// Revisions cloud network share size - public long? CloudNetworkShareSize { get; set; } - /// Revisions cloud total size - public long? CloudTotalSize { get; private set; } - /// Last failed job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastFailedBackupJob { get; set; } - /// Last successful job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastSuccessfulBackupJob { get; set; } - /// Revisions local file folder size - public long? LocalFileFolderSize { get; set; } - /// Revisions local image size - public long? LocalImageSize { get; set; } - /// Revisions local image v2 size - public long? LocalImageV2Size { get; set; } - /// Revisions local total size - public long? LocalTotalSize { get; private set; } - /// Revisions current size - public long? RevisionsCurrentSize { get; set; } - /// Revisions deleted size - public long? RevisionsDeletedSize { get; set; } - /// Revisions previous size - public long? RevisionsPreviousSize { get; set; } - /// Revisions total size - public long? RevisionsTotalSize { get; private set; } - /// - /// Instantiates a new and sets the default values. - /// - public DevicesDetailed_references_backupUsage() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_backupUsage CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_backupUsage(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cloudFileFolderSize", n => { CloudFileFolderSize = n.GetLongValue(); } }, - { "cloudImageSize", n => { CloudImageSize = n.GetLongValue(); } }, - { "cloudImageV2Size", n => { CloudImageV2Size = n.GetLongValue(); } }, - { "cloudNetworkShareSize", n => { CloudNetworkShareSize = n.GetLongValue(); } }, - { "cloudTotalSize", n => { CloudTotalSize = n.GetLongValue(); } }, - { "lastFailedBackupJob", n => { LastFailedBackupJob = n.GetDoubleValue(); } }, - { "lastSuccessfulBackupJob", n => { LastSuccessfulBackupJob = n.GetDoubleValue(); } }, - { "localFileFolderSize", n => { LocalFileFolderSize = n.GetLongValue(); } }, - { "localImageSize", n => { LocalImageSize = n.GetLongValue(); } }, - { "localImageV2Size", n => { LocalImageV2Size = n.GetLongValue(); } }, - { "localTotalSize", n => { LocalTotalSize = n.GetLongValue(); } }, - { "revisionsCurrentSize", n => { RevisionsCurrentSize = n.GetLongValue(); } }, - { "revisionsDeletedSize", n => { RevisionsDeletedSize = n.GetLongValue(); } }, - { "revisionsPreviousSize", n => { RevisionsPreviousSize = n.GetLongValue(); } }, - { "revisionsTotalSize", n => { RevisionsTotalSize = n.GetLongValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteLongValue("cloudFileFolderSize", CloudFileFolderSize); - writer.WriteLongValue("cloudImageSize", CloudImageSize); - writer.WriteLongValue("cloudImageV2Size", CloudImageV2Size); - writer.WriteLongValue("cloudNetworkShareSize", CloudNetworkShareSize); - writer.WriteDoubleValue("lastFailedBackupJob", LastFailedBackupJob); - writer.WriteDoubleValue("lastSuccessfulBackupJob", LastSuccessfulBackupJob); - writer.WriteLongValue("localFileFolderSize", LocalFileFolderSize); - writer.WriteLongValue("localImageSize", LocalImageSize); - writer.WriteLongValue("localImageV2Size", LocalImageV2Size); - writer.WriteLongValue("revisionsCurrentSize", RevisionsCurrentSize); - writer.WriteLongValue("revisionsDeletedSize", RevisionsDeletedSize); - writer.WriteLongValue("revisionsPreviousSize", RevisionsPreviousSize); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_location.cs b/V2/DevicesDetailed/DevicesDetailed_references_location.cs deleted file mode 100644 index 3fb7f01..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_location.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_location : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_location_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_location_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_location_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_location_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DevicesDetailed_references_location() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_location CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_location(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_location_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_location_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_location_fields.cs b/V2/DevicesDetailed/DevicesDetailed_references_location_fields.cs deleted file mode 100644 index 8d44be2..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_location_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_location_fields : 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. - /// - public DevicesDetailed_references_location_fields() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_location_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_location_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_location_userData.cs b/V2/DevicesDetailed/DevicesDetailed_references_location_userData.cs deleted file mode 100644 index 0db02f5..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_location_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_location_userData : 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. - /// - public DevicesDetailed_references_location_userData() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_location_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_location_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_organization.cs b/V2/DevicesDetailed/DevicesDetailed_references_organization.cs deleted file mode 100644 index 68ad757..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_organization.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_organization : 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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_organization_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_organization_fields Fields { get; set; } -#endif - /// Organization identifier - public int? Id { get; set; } - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_organization_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_organization_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_organization_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DevicesDetailed_references_organization() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_organization CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_organization(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_organization_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_organization_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_organization_fields.cs b/V2/DevicesDetailed/DevicesDetailed_references_organization_fields.cs deleted file mode 100644 index 5584ddb..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_organization_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_organization_fields : 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. - /// - public DevicesDetailed_references_organization_fields() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_organization_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_organization_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_organization_nodeApprovalMode.cs b/V2/DevicesDetailed/DevicesDetailed_references_organization_nodeApprovalMode.cs deleted file mode 100644 index b9fa6af..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_organization_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DevicesDetailed_references_organization_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/DevicesDetailed/DevicesDetailed_references_organization_userData.cs b/V2/DevicesDetailed/DevicesDetailed_references_organization_userData.cs deleted file mode 100644 index cef26de..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_organization_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_organization_userData : 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. - /// - public DevicesDetailed_references_organization_userData() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_organization_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_organization_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_policy.cs b/V2/DevicesDetailed/DevicesDetailed_references_policy.cs deleted file mode 100644 index c0397ae..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_policy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_policy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_policy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_policy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_policy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DevicesDetailed_references_policy() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_policy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_policy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_policy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_policy_fields.cs b/V2/DevicesDetailed/DevicesDetailed_references_policy_fields.cs deleted file mode 100644 index 5795617..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_policy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_policy_fields : 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. - /// - public DevicesDetailed_references_policy_fields() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_policy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_policy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_policy_nodeClass.cs b/V2/DevicesDetailed/DevicesDetailed_references_policy_nodeClass.cs deleted file mode 100644 index 04c1656..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_policy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DevicesDetailed_references_policy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DevicesDetailed/DevicesDetailed_references_role.cs b/V2/DevicesDetailed/DevicesDetailed_references_role.cs deleted file mode 100644 index aa4f22d..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_role.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Device Role - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_role : 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; } - /// Chassis Type - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_role_chassisType? ChassisType { get; set; } - /// Date created - public double? Created { get; set; } - /// Is custom node role? - public bool? Custom { get; set; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_role_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_role_fields Fields { get; set; } -#endif - /// Icon -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Icon { get; set; } -#nullable restore -#else - public string Icon { get; set; } -#endif - /// Device Role identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_role_nodeClass? NodeClass { get; set; } - /// Node Role Parent Id - public int? NodeRoleParentId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DevicesDetailed_references_role() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_role CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_role(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "chassisType", n => { ChassisType = n.GetEnumValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "custom", n => { Custom = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_role_fields.CreateFromDiscriminatorValue); } }, - { "icon", n => { Icon = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleParentId", n => { NodeRoleParentId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("chassisType", ChassisType); - writer.WriteDoubleValue("created", Created); - writer.WriteBoolValue("custom", Custom); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("icon", Icon); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleParentId", NodeRoleParentId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_rolePolicy.cs b/V2/DevicesDetailed/DevicesDetailed_references_rolePolicy.cs deleted file mode 100644 index f3aa4dc..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_rolePolicy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_rolePolicy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_rolePolicy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_rolePolicy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_rolePolicy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DevicesDetailed_references_rolePolicy() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_rolePolicy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_rolePolicy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_rolePolicy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_rolePolicy_fields.cs b/V2/DevicesDetailed/DevicesDetailed_references_rolePolicy_fields.cs deleted file mode 100644 index 4b6a98d..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_rolePolicy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_rolePolicy_fields : 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. - /// - public DevicesDetailed_references_rolePolicy_fields() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_rolePolicy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_rolePolicy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_rolePolicy_nodeClass.cs b/V2/DevicesDetailed/DevicesDetailed_references_rolePolicy_nodeClass.cs deleted file mode 100644 index 0900eed..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_rolePolicy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DevicesDetailed_references_rolePolicy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DevicesDetailed/DevicesDetailed_references_role_chassisType.cs b/V2/DevicesDetailed/DevicesDetailed_references_role_chassisType.cs deleted file mode 100644 index a2fb3cf..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_role_chassisType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// Chassis Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DevicesDetailed_references_role_chassisType - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "DESKTOP")] - #pragma warning disable CS1591 - DESKTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "LAPTOP")] - #pragma warning disable CS1591 - LAPTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "MOBILE")] - #pragma warning disable CS1591 - MOBILE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DevicesDetailed/DevicesDetailed_references_role_fields.cs b/V2/DevicesDetailed/DevicesDetailed_references_role_fields.cs deleted file mode 100644 index f0ab986..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_role_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_role_fields : 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. - /// - public DevicesDetailed_references_role_fields() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_role_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_role_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_references_role_nodeClass.cs b/V2/DevicesDetailed/DevicesDetailed_references_role_nodeClass.cs deleted file mode 100644 index e59a0a4..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_role_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DevicesDetailed_references_role_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DevicesDetailed/DevicesDetailed_references_warranty.cs b/V2/DevicesDetailed/DevicesDetailed_references_warranty.cs deleted file mode 100644 index e28a5ce..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_references_warranty.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Warranty Info - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_references_warranty : 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; } - /// Warranty End Date (Seconds) - public double? EndDate { get; set; } - /// Manufacturer Fulfillment Date - public double? ManufacturerFulfillmentDate { get; set; } - /// Warranty Start Date (Seconds) - public double? StartDate { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DevicesDetailed_references_warranty() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_warranty CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_references_warranty(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endDate", n => { EndDate = n.GetDoubleValue(); } }, - { "manufacturerFulfillmentDate", n => { ManufacturerFulfillmentDate = n.GetDoubleValue(); } }, - { "startDate", n => { StartDate = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("endDate", EndDate); - writer.WriteDoubleValue("manufacturerFulfillmentDate", ManufacturerFulfillmentDate); - writer.WriteDoubleValue("startDate", StartDate); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DevicesDetailed/DevicesDetailed_userData.cs b/V2/DevicesDetailed/DevicesDetailed_userData.cs deleted file mode 100644 index f07f2d0..0000000 --- a/V2/DevicesDetailed/DevicesDetailed_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DevicesDetailed -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesDetailed_userData : 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. - /// - public DevicesDetailed_userData() - { - 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::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailed_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Archive/ArchiveRequestBuilder.cs b/V2/DocumentTemplates/Archive/ArchiveRequestBuilder.cs deleted file mode 100644 index 9d3661a..0000000 --- a/V2/DocumentTemplates/Archive/ArchiveRequestBuilder.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Archive -{ - /// - /// Builds and executes requests for operations under \v2\document-templates\archive - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchiveRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ArchiveRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/document-templates/archive", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ArchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/document-templates/archive", rawUrl) - { - } - /// - /// Archives multiple document template by ids - /// - /// The request body - /// 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 PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Archives multiple document template by ids - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromScalarCollection(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.DocumentTemplates.Archive.ArchiveRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.DocumentTemplates.Archive.ArchiveRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchiveRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplates.cs b/V2/DocumentTemplates/DocumentTemplates.cs deleted file mode 100644 index a24e8a7..0000000 --- a/V2/DocumentTemplates/DocumentTemplates.cs +++ /dev/null @@ -1,137 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplates : 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; } - /// List of allowed technician role ids -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AllowedTechnicianRoles { get; set; } -#nullable restore -#else - public List AllowedTechnicianRoles { get; set; } -#endif - /// Indicates if multiple instances of the document template is allowed - public bool? AllowMultiple { get; set; } - /// Indicates if the document template is archived - public bool? Archived { get; set; } - /// Indicates who archived the template -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_archivedBy? ArchivedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_archivedBy ArchivedBy { get; set; } -#endif - /// Indicates the time the template was archived - public double? ArchivedTime { get; set; } - /// Indicates if the document template is available to all technicians - public bool? AvailableToAllTechnicians { get; set; } - /// Creation time - public double? CreateTime { get; set; } - /// Description of the template -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Document template fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// Identifier - public int? Id { get; set; } - /// Indicates if the document template is mandatory - public bool? Mandatory { get; set; } - /// Name of the template (must be unique) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Last updated time - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplates() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "allowMultiple", n => { AllowMultiple = n.GetBoolValue(); } }, - { "allowedTechnicianRoles", n => { AllowedTechnicianRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "archived", n => { Archived = n.GetBoolValue(); } }, - { "archivedBy", n => { ArchivedBy = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_archivedBy.CreateFromDiscriminatorValue); } }, - { "archivedTime", n => { ArchivedTime = n.GetDoubleValue(); } }, - { "availableToAllTechnicians", n => { AvailableToAllTechnicians = n.GetBoolValue(); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "mandatory", n => { Mandatory = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("allowedTechnicianRoles", AllowedTechnicianRoles); - writer.WriteBoolValue("allowMultiple", AllowMultiple); - writer.WriteBoolValue("archived", Archived); - writer.WriteObjectValue("archivedBy", ArchivedBy); - writer.WriteDoubleValue("archivedTime", ArchivedTime); - writer.WriteBoolValue("availableToAllTechnicians", AvailableToAllTechnicians); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("description", Description); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("mandatory", Mandatory); - writer.WriteStringValue("name", Name); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody.cs deleted file mode 100644 index 460ac41..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplatesPostRequestBody : 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; } - /// List of allowed technician role ids -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AllowedTechnicianRoles { get; set; } -#nullable restore -#else - public List AllowedTechnicianRoles { get; set; } -#endif - /// States if multiple instances of the document template is allowed - public bool? AllowMultiple { get; set; } - /// States if the document template is available to all technicians - public bool? AvailableToAllTechnicians { get; set; } - /// Description of the template -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// List of fields and ui elements -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// Indicates if the document template is mandatory - public bool? Mandatory { get; set; } - /// Name of the template (must be unique) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostRequestBody() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "allowMultiple", n => { AllowMultiple = n.GetBoolValue(); } }, - { "allowedTechnicianRoles", n => { AllowedTechnicianRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "availableToAllTechnicians", n => { AvailableToAllTechnicians = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "mandatory", n => { Mandatory = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("allowedTechnicianRoles", AllowedTechnicianRoles); - writer.WriteBoolValue("allowMultiple", AllowMultiple); - writer.WriteBoolValue("availableToAllTechnicians", AvailableToAllTechnicians); - writer.WriteStringValue("description", Description); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteBoolValue("mandatory", Mandatory); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields.cs deleted file mode 100644 index 61c93d9..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// - /// List of fields and ui elements - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentTemplatesPostRequestBody_fields : 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; } - /// Field public API permission - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldApiPermission? FieldApiPermission { get; set; } - /// Field content -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent? FieldContent { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent FieldContent { get; set; } -#endif - /// Default value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldDefaultValue { get; set; } -#nullable restore -#else - public string FieldDefaultValue { get; set; } -#endif - /// Field description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldDescription { get; set; } -#nullable restore -#else - public string FieldDescription { get; set; } -#endif - /// Field label -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldLabel { get; set; } -#nullable restore -#else - public string FieldLabel { get; set; } -#endif - /// Field name (Immutable value) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Field script permission - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldScriptPermission? FieldScriptPermission { get; set; } - /// Field technician permission - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldTechnicianPermission? FieldTechnicianPermission { get; set; } - /// Field type (Immutable value) - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldType? FieldType { get; set; } - /// UI element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementName { get; set; } -#nullable restore -#else - public string UiElementName { get; set; } -#endif - /// UI element type - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_uiElementType? UiElementType { get; set; } - /// UI element value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementValue { get; set; } -#nullable restore -#else - public string UiElementValue { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostRequestBody_fields() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "fieldApiPermission", n => { FieldApiPermission = n.GetEnumValue(); } }, - { "fieldContent", n => { FieldContent = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent.CreateFromDiscriminatorValue); } }, - { "fieldDefaultValue", n => { FieldDefaultValue = n.GetStringValue(); } }, - { "fieldDescription", n => { FieldDescription = n.GetStringValue(); } }, - { "fieldLabel", n => { FieldLabel = n.GetStringValue(); } }, - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "fieldScriptPermission", n => { FieldScriptPermission = n.GetEnumValue(); } }, - { "fieldTechnicianPermission", n => { FieldTechnicianPermission = n.GetEnumValue(); } }, - { "fieldType", n => { FieldType = n.GetEnumValue(); } }, - { "uiElementName", n => { UiElementName = n.GetStringValue(); } }, - { "uiElementType", n => { UiElementType = n.GetEnumValue(); } }, - { "uiElementValue", n => { UiElementValue = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("fieldApiPermission", FieldApiPermission); - writer.WriteObjectValue("fieldContent", FieldContent); - writer.WriteStringValue("fieldDefaultValue", FieldDefaultValue); - writer.WriteStringValue("fieldDescription", FieldDescription); - writer.WriteStringValue("fieldLabel", FieldLabel); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("fieldScriptPermission", FieldScriptPermission); - writer.WriteEnumValue("fieldTechnicianPermission", FieldTechnicianPermission); - writer.WriteEnumValue("fieldType", FieldType); - writer.WriteStringValue("uiElementName", UiElementName); - writer.WriteEnumValue("uiElementType", UiElementType); - writer.WriteStringValue("uiElementValue", UiElementValue); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldApiPermission.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldApiPermission.cs deleted file mode 100644 index 0bd85a3..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldApiPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// Field public API permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DocumentTemplatesPostRequestBody_fields_fieldApiPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent.cs deleted file mode 100644 index 5355ffb..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// - /// Field content - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentTemplatesPostRequestBody_fields_fieldContent : 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; } - /// The advancedSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings? AdvancedSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings AdvancedSettings { get; set; } -#endif - /// Footer text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FooterText { get; set; } -#nullable restore -#else - public string FooterText { get; set; } -#endif - /// Indicates if the field is required - public bool? Required { get; set; } - /// Tooltip text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TooltipText { get; set; } -#nullable restore -#else - public string TooltipText { get; set; } -#endif - /// Used for dropdown options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostRequestBody_fields_fieldContent() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "advancedSettings", n => { AdvancedSettings = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings.CreateFromDiscriminatorValue); } }, - { "footerText", n => { FooterText = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tooltipText", n => { TooltipText = n.GetStringValue(); } }, - { "values", n => { Values = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_values.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("advancedSettings", AdvancedSettings); - writer.WriteStringValue("footerText", FooterText); - writer.WriteBoolValue("required", Required); - writer.WriteStringValue("tooltipText", TooltipText); - writer.WriteCollectionOfObjectValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings.cs deleted file mode 100644 index f327120..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings : 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 complexityRules property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_complexityRules? ComplexityRules { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_complexityRules ComplexityRules { get; set; } -#endif - /// The dateFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_dateFilters? DateFilters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_dateFilters DateFilters { get; set; } -#endif - /// The expandLargeValueOnRender property - public bool? ExpandLargeValueOnRender { get; set; } - /// The fileExtensions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FileExtensions { get; set; } -#nullable restore -#else - public List FileExtensions { get; set; } -#endif - /// The fileMaxSize property - public int? FileMaxSize { get; set; } - /// The identifier property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier? Identifier { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier Identifier { get; set; } -#endif - /// The ipAddressType property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_ipAddressType? IpAddressType { get; set; } - /// The maxCharacters property - public int? MaxCharacters { get; set; } - /// The monetary property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_monetary? Monetary { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_monetary Monetary { get; set; } -#endif - /// The nodeClass property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? NodeClass { get; set; } -#nullable restore -#else - public List NodeClass { get; set; } -#endif - /// The numericRange property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_numericRange? NumericRange { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_numericRange NumericRange { get; set; } -#endif - /// The org property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Org { get; set; } -#nullable restore -#else - public List Org { get; set; } -#endif - /// The templates property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Templates { get; set; } -#nullable restore -#else - public List Templates { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "complexityRules", n => { ComplexityRules = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_complexityRules.CreateFromDiscriminatorValue); } }, - { "dateFilters", n => { DateFilters = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_dateFilters.CreateFromDiscriminatorValue); } }, - { "expandLargeValueOnRender", n => { ExpandLargeValueOnRender = n.GetBoolValue(); } }, - { "fileExtensions", n => { FileExtensions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "fileMaxSize", n => { FileMaxSize = n.GetIntValue(); } }, - { "identifier", n => { Identifier = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier.CreateFromDiscriminatorValue); } }, - { "ipAddressType", n => { IpAddressType = n.GetEnumValue(); } }, - { "maxCharacters", n => { MaxCharacters = n.GetIntValue(); } }, - { "monetary", n => { Monetary = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_monetary.CreateFromDiscriminatorValue); } }, - { "nodeClass", n => { NodeClass = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "numericRange", n => { NumericRange = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_numericRange.CreateFromDiscriminatorValue); } }, - { "org", n => { Org = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "templates", n => { Templates = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("complexityRules", ComplexityRules); - writer.WriteObjectValue("dateFilters", DateFilters); - writer.WriteBoolValue("expandLargeValueOnRender", ExpandLargeValueOnRender); - writer.WriteCollectionOfPrimitiveValues("fileExtensions", FileExtensions); - writer.WriteIntValue("fileMaxSize", FileMaxSize); - writer.WriteObjectValue("identifier", Identifier); - writer.WriteEnumValue("ipAddressType", IpAddressType); - writer.WriteIntValue("maxCharacters", MaxCharacters); - writer.WriteObjectValue("monetary", Monetary); - writer.WriteCollectionOfEnumValues("nodeClass", NodeClass); - writer.WriteObjectValue("numericRange", NumericRange); - writer.WriteCollectionOfPrimitiveValues("org", Org); - writer.WriteCollectionOfPrimitiveValues("templates", Templates); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_complexityRules.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_complexityRules.cs deleted file mode 100644 index 77803cc..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_complexityRules.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_complexityRules : 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 greaterOrEqualThanSixCharacters property - public bool? GreaterOrEqualThanSixCharacters { get; set; } - /// The mustContainOneInteger property - public bool? MustContainOneInteger { get; set; } - /// The mustContainOneLowercaseLetter property - public bool? MustContainOneLowercaseLetter { get; set; } - /// The mustContainOneUppercaseLetter property - public bool? MustContainOneUppercaseLetter { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_complexityRules() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_complexityRules CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_complexityRules(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "greaterOrEqualThanSixCharacters", n => { GreaterOrEqualThanSixCharacters = n.GetBoolValue(); } }, - { "mustContainOneInteger", n => { MustContainOneInteger = n.GetBoolValue(); } }, - { "mustContainOneLowercaseLetter", n => { MustContainOneLowercaseLetter = n.GetBoolValue(); } }, - { "mustContainOneUppercaseLetter", n => { MustContainOneUppercaseLetter = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("greaterOrEqualThanSixCharacters", GreaterOrEqualThanSixCharacters); - writer.WriteBoolValue("mustContainOneInteger", MustContainOneInteger); - writer.WriteBoolValue("mustContainOneLowercaseLetter", MustContainOneLowercaseLetter); - writer.WriteBoolValue("mustContainOneUppercaseLetter", MustContainOneUppercaseLetter); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_dateFilters.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_dateFilters.cs deleted file mode 100644 index fb10941..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_dateFilters.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_dateFilters : 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 selected property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Selected { get; set; } -#nullable restore -#else - public List Selected { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_dateFilters_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_dateFilters() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_dateFilters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_dateFilters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "selected", n => { Selected = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("selected", Selected); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_dateFilters_type.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_dateFilters_type.cs deleted file mode 100644 index 07673fc..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_dateFilters_type.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_dateFilters_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "INCLUDE")] - #pragma warning disable CS1591 - INCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "EXCLUDE")] - #pragma warning disable CS1591 - EXCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "PAST_DATES_ONLY")] - #pragma warning disable CS1591 - PAST_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "FUTURE_DATES_ONLY")] - #pragma warning disable CS1591 - FUTURE_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "RANGE")] - #pragma warning disable CS1591 - RANGE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier.cs deleted file mode 100644 index 47823bb..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier : 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 assignTo property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier_assignTo? AssignTo { get; set; } - /// The automaticGenerationEnabled property - public bool? AutomaticGenerationEnabled { get; set; } - /// The nextSequenceNumber property - public long? NextSequenceNumber { get; set; } - /// The prefix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Prefix { get; set; } -#nullable restore -#else - public string Prefix { get; set; } -#endif - /// The scope property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier_scope? Scope { get; set; } - /// The suffix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Suffix { get; set; } -#nullable restore -#else - public string Suffix { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignTo", n => { AssignTo = n.GetEnumValue(); } }, - { "automaticGenerationEnabled", n => { AutomaticGenerationEnabled = n.GetBoolValue(); } }, - { "nextSequenceNumber", n => { NextSequenceNumber = n.GetLongValue(); } }, - { "prefix", n => { Prefix = n.GetStringValue(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - { "suffix", n => { Suffix = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignTo", AssignTo); - writer.WriteBoolValue("automaticGenerationEnabled", AutomaticGenerationEnabled); - writer.WriteLongValue("nextSequenceNumber", NextSequenceNumber); - writer.WriteStringValue("prefix", Prefix); - writer.WriteEnumValue("scope", Scope); - writer.WriteStringValue("suffix", Suffix); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier_assignTo.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier_assignTo.cs deleted file mode 100644 index a8fcf54..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier_assignTo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier_assignTo - #pragma warning restore CS1591 - { - [EnumMember(Value = "NEW_ASSETS_ONLY")] - #pragma warning disable CS1591 - NEW_ASSETS_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "NEW_AND_EXISTING_ASSETS")] - #pragma warning disable CS1591 - NEW_AND_EXISTING_ASSETS, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier_scope.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier_scope.cs deleted file mode 100644 index 8ece73c..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier_scope.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier_scope - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "GLOBAL")] - #pragma warning disable CS1591 - GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier_type.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier_type.cs deleted file mode 100644 index 9dfd5ef..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier_type.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_identifier_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - [EnumMember(Value = "SEQUENCE")] - #pragma warning disable CS1591 - SEQUENCE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_ipAddressType.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_ipAddressType.cs deleted file mode 100644 index cebde01..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_ipAddressType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_ipAddressType - #pragma warning restore CS1591 - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV4")] - #pragma warning disable CS1591 - IPV4, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV6")] - #pragma warning disable CS1591 - IPV6, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_monetary.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_monetary.cs deleted file mode 100644 index cea8519..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_monetary.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_monetary : 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 currency property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_monetary_currency? Currency { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_monetary() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_monetary CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_monetary(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "currency", n => { Currency = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("currency", Currency); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_monetary_currency.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_monetary_currency.cs deleted file mode 100644 index 76cbedb..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_monetary_currency.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_monetary_currency - #pragma warning restore CS1591 - { - [EnumMember(Value = "USD")] - #pragma warning disable CS1591 - USD, - #pragma warning restore CS1591 - [EnumMember(Value = "EUR")] - #pragma warning disable CS1591 - EUR, - #pragma warning restore CS1591 - [EnumMember(Value = "CAD")] - #pragma warning disable CS1591 - CAD, - #pragma warning restore CS1591 - [EnumMember(Value = "GBP")] - #pragma warning disable CS1591 - GBP, - #pragma warning restore CS1591 - [EnumMember(Value = "AUD")] - #pragma warning disable CS1591 - AUD, - #pragma warning restore CS1591 - [EnumMember(Value = "JPY")] - #pragma warning disable CS1591 - JPY, - #pragma warning restore CS1591 - [EnumMember(Value = "SEK")] - #pragma warning disable CS1591 - SEK, - #pragma warning restore CS1591 - [EnumMember(Value = "NOK")] - #pragma warning disable CS1591 - NOK, - #pragma warning restore CS1591 - [EnumMember(Value = "DKK")] - #pragma warning disable CS1591 - DKK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHF")] - #pragma warning disable CS1591 - CHF, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_nodeClass.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_nodeClass.cs deleted file mode 100644 index ae63cec..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_nodeClass.cs +++ /dev/null @@ -1,144 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_nodeClass - #pragma warning restore CS1591 - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_numericRange.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_numericRange.cs deleted file mode 100644 index 515e079..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_numericRange.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_numericRange : 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 max property - public double? Max { get; set; } - /// The min property - public double? Min { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_numericRange() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_numericRange CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_advancedSettings_numericRange(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "max", n => { Max = n.GetDoubleValue(); } }, - { "min", n => { Min = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("max", Max); - writer.WriteDoubleValue("min", Min); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_values.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_values.cs deleted file mode 100644 index ba416b7..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldContent_values.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// - /// Used for dropdown options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentTemplatesPostRequestBody_fields_fieldContent_values : 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; } - /// Dropdown option name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostRequestBody_fields_fieldContent_values() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_values CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody_fields_fieldContent_values(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldScriptPermission.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldScriptPermission.cs deleted file mode 100644 index 6a84961..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldScriptPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// Field script permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DocumentTemplatesPostRequestBody_fields_fieldScriptPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldTechnicianPermission.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldTechnicianPermission.cs deleted file mode 100644 index 1f3ed16..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldTechnicianPermission.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// Field technician permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DocumentTemplatesPostRequestBody_fields_fieldTechnicianPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "EDITABLE")] - #pragma warning disable CS1591 - EDITABLE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldType.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldType.cs deleted file mode 100644 index 3ce3121..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_fieldType.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// Field type (Immutable value) - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DocumentTemplatesPostRequestBody_fields_fieldType - { - [EnumMember(Value = "DROPDOWN")] - #pragma warning disable CS1591 - DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "MULTI_SELECT")] - #pragma warning disable CS1591 - MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKBOX")] - #pragma warning disable CS1591 - CHECKBOX, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT")] - #pragma warning disable CS1591 - TEXT, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_MULTILINE")] - #pragma warning disable CS1591 - TEXT_MULTILINE, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_ENCRYPTED")] - #pragma warning disable CS1591 - TEXT_ENCRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NUMERIC")] - #pragma warning disable CS1591 - NUMERIC, - #pragma warning restore CS1591 - [EnumMember(Value = "DECIMAL")] - #pragma warning disable CS1591 - DECIMAL, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE")] - #pragma warning disable CS1591 - DATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE_TIME")] - #pragma warning disable CS1591 - DATE_TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "TIME")] - #pragma warning disable CS1591 - TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_DROPDOWN")] - #pragma warning disable CS1591 - NODE_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MULTI_SELECT")] - #pragma warning disable CS1591 - NODE_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_LOCATION_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_LOCATION_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "EMAIL")] - #pragma warning disable CS1591 - EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "PHONE")] - #pragma warning disable CS1591 - PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "IP_ADDRESS")] - #pragma warning disable CS1591 - IP_ADDRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "WYSIWYG")] - #pragma warning disable CS1591 - WYSIWYG, - #pragma warning restore CS1591 - [EnumMember(Value = "URL")] - #pragma warning disable CS1591 - URL, - #pragma warning restore CS1591 - [EnumMember(Value = "MONETARY")] - #pragma warning disable CS1591 - MONETARY, - #pragma warning restore CS1591 - [EnumMember(Value = "IDENTIFIER")] - #pragma warning disable CS1591 - IDENTIFIER, - #pragma warning restore CS1591 - [EnumMember(Value = "TOTP")] - #pragma warning disable CS1591 - TOTP, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_uiElementType.cs b/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_uiElementType.cs deleted file mode 100644 index 46dd2e0..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostRequestBody_fields_uiElementType.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// UI element type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DocumentTemplatesPostRequestBody_fields_uiElementType - { - [EnumMember(Value = "TITLE")] - #pragma warning disable CS1591 - TITLE, - #pragma warning restore CS1591 - [EnumMember(Value = "DESCRIPTION")] - #pragma warning disable CS1591 - DESCRIPTION, - #pragma warning restore CS1591 - [EnumMember(Value = "SEPARATOR")] - #pragma warning disable CS1591 - SEPARATOR, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse.cs deleted file mode 100644 index e839d97..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse.cs +++ /dev/null @@ -1,137 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplatesPostResponse : 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; } - /// List of allowed technician role ids -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AllowedTechnicianRoles { get; set; } -#nullable restore -#else - public List AllowedTechnicianRoles { get; set; } -#endif - /// Indicates if multiple instances of the document template is allowed - public bool? AllowMultiple { get; set; } - /// Indicates if the document template is archived - public bool? Archived { get; set; } - /// Indicates who archived the template -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_archivedBy? ArchivedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_archivedBy ArchivedBy { get; set; } -#endif - /// Indicates the time the template was archived - public double? ArchivedTime { get; set; } - /// Indicates if the document template is available to all technicians - public bool? AvailableToAllTechnicians { get; set; } - /// Creation time - public double? CreateTime { get; set; } - /// Description of the template -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Document template fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// Identifier - public int? Id { get; set; } - /// Indicates if the document template is mandatory - public bool? Mandatory { get; set; } - /// Name of the template (must be unique) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Last updated time - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostResponse() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "allowMultiple", n => { AllowMultiple = n.GetBoolValue(); } }, - { "allowedTechnicianRoles", n => { AllowedTechnicianRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "archived", n => { Archived = n.GetBoolValue(); } }, - { "archivedBy", n => { ArchivedBy = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_archivedBy.CreateFromDiscriminatorValue); } }, - { "archivedTime", n => { ArchivedTime = n.GetDoubleValue(); } }, - { "availableToAllTechnicians", n => { AvailableToAllTechnicians = n.GetBoolValue(); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "mandatory", n => { Mandatory = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("allowedTechnicianRoles", AllowedTechnicianRoles); - writer.WriteBoolValue("allowMultiple", AllowMultiple); - writer.WriteBoolValue("archived", Archived); - writer.WriteObjectValue("archivedBy", ArchivedBy); - writer.WriteDoubleValue("archivedTime", ArchivedTime); - writer.WriteBoolValue("availableToAllTechnicians", AvailableToAllTechnicians); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("description", Description); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("mandatory", Mandatory); - writer.WriteStringValue("name", Name); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_archivedBy.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_archivedBy.cs deleted file mode 100644 index 5a536f9..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_archivedBy.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// - /// Indicates who archived the template - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentTemplatesPostResponse_archivedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The displayName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostResponse_archivedBy() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_archivedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_archivedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteIntValue("id", Id); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields.cs deleted file mode 100644 index c6f6707..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields.cs +++ /dev/null @@ -1,162 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// - /// Document template fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentTemplatesPostResponse_fields : 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; } - /// Creation time - public double? CreatedTime { get; set; } - /// Field public API permission - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldApiPermission? FieldApiPermission { get; set; } - /// Field content -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent? FieldContent { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent FieldContent { get; set; } -#endif - /// Default value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldDefaultValue { get; set; } -#nullable restore -#else - public string FieldDefaultValue { get; set; } -#endif - /// Field description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldDescription { get; set; } -#nullable restore -#else - public string FieldDescription { get; set; } -#endif - /// Field identifier - public int? FieldId { get; set; } - /// Field or UI element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldLabel { get; set; } -#nullable restore -#else - public string FieldLabel { get; set; } -#endif - /// Field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Field script permission - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldScriptPermission? FieldScriptPermission { get; set; } - /// Field technician permission - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldTechnicianPermission? FieldTechnicianPermission { get; set; } - /// Field type - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldType? FieldType { get; set; } - /// UI element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementName { get; set; } -#nullable restore -#else - public string UiElementName { get; set; } -#endif - /// UI element type - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_uiElementType? UiElementType { get; set; } - /// UI element identifier - public Guid? UiElementUid { get; set; } - /// UI element value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementValue { get; set; } -#nullable restore -#else - public string UiElementValue { get; set; } -#endif - /// Last updated time - public double? UpdatedTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostResponse_fields() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createdTime", n => { CreatedTime = n.GetDoubleValue(); } }, - { "fieldApiPermission", n => { FieldApiPermission = n.GetEnumValue(); } }, - { "fieldContent", n => { FieldContent = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent.CreateFromDiscriminatorValue); } }, - { "fieldDefaultValue", n => { FieldDefaultValue = n.GetStringValue(); } }, - { "fieldDescription", n => { FieldDescription = n.GetStringValue(); } }, - { "fieldId", n => { FieldId = n.GetIntValue(); } }, - { "fieldLabel", n => { FieldLabel = n.GetStringValue(); } }, - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "fieldScriptPermission", n => { FieldScriptPermission = n.GetEnumValue(); } }, - { "fieldTechnicianPermission", n => { FieldTechnicianPermission = n.GetEnumValue(); } }, - { "fieldType", n => { FieldType = n.GetEnumValue(); } }, - { "uiElementName", n => { UiElementName = n.GetStringValue(); } }, - { "uiElementType", n => { UiElementType = n.GetEnumValue(); } }, - { "uiElementUid", n => { UiElementUid = n.GetGuidValue(); } }, - { "uiElementValue", n => { UiElementValue = n.GetStringValue(); } }, - { "updatedTime", n => { UpdatedTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("createdTime", CreatedTime); - writer.WriteEnumValue("fieldApiPermission", FieldApiPermission); - writer.WriteObjectValue("fieldContent", FieldContent); - writer.WriteStringValue("fieldDefaultValue", FieldDefaultValue); - writer.WriteStringValue("fieldDescription", FieldDescription); - writer.WriteIntValue("fieldId", FieldId); - writer.WriteStringValue("fieldLabel", FieldLabel); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("fieldScriptPermission", FieldScriptPermission); - writer.WriteEnumValue("fieldTechnicianPermission", FieldTechnicianPermission); - writer.WriteEnumValue("fieldType", FieldType); - writer.WriteStringValue("uiElementName", UiElementName); - writer.WriteEnumValue("uiElementType", UiElementType); - writer.WriteGuidValue("uiElementUid", UiElementUid); - writer.WriteStringValue("uiElementValue", UiElementValue); - writer.WriteDoubleValue("updatedTime", UpdatedTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldApiPermission.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldApiPermission.cs deleted file mode 100644 index 375bd7e..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldApiPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// Field public API permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DocumentTemplatesPostResponse_fields_fieldApiPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent.cs deleted file mode 100644 index 7387dcb..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// - /// Field content - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentTemplatesPostResponse_fields_fieldContent : 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; } - /// The advancedSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings? AdvancedSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings AdvancedSettings { get; set; } -#endif - /// Footer text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FooterText { get; set; } -#nullable restore -#else - public string FooterText { get; set; } -#endif - /// Indicates if the field is required - public bool? Required { get; set; } - /// Tooltip text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TooltipText { get; set; } -#nullable restore -#else - public string TooltipText { get; set; } -#endif - /// Used for dropdown options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostResponse_fields_fieldContent() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "advancedSettings", n => { AdvancedSettings = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings.CreateFromDiscriminatorValue); } }, - { "footerText", n => { FooterText = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tooltipText", n => { TooltipText = n.GetStringValue(); } }, - { "values", n => { Values = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_values.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("advancedSettings", AdvancedSettings); - writer.WriteStringValue("footerText", FooterText); - writer.WriteBoolValue("required", Required); - writer.WriteStringValue("tooltipText", TooltipText); - writer.WriteCollectionOfObjectValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings.cs deleted file mode 100644 index e048573..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings : 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 complexityRules property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_complexityRules? ComplexityRules { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_complexityRules ComplexityRules { get; set; } -#endif - /// The dateFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_dateFilters? DateFilters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_dateFilters DateFilters { get; set; } -#endif - /// The expandLargeValueOnRender property - public bool? ExpandLargeValueOnRender { get; set; } - /// The fileExtensions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FileExtensions { get; set; } -#nullable restore -#else - public List FileExtensions { get; set; } -#endif - /// The fileMaxSize property - public int? FileMaxSize { get; set; } - /// The identifier property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier? Identifier { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier Identifier { get; set; } -#endif - /// The ipAddressType property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_ipAddressType? IpAddressType { get; set; } - /// The maxCharacters property - public int? MaxCharacters { get; set; } - /// The monetary property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_monetary? Monetary { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_monetary Monetary { get; set; } -#endif - /// The nodeClass property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? NodeClass { get; set; } -#nullable restore -#else - public List NodeClass { get; set; } -#endif - /// The numericRange property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_numericRange? NumericRange { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_numericRange NumericRange { get; set; } -#endif - /// The org property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Org { get; set; } -#nullable restore -#else - public List Org { get; set; } -#endif - /// The templates property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Templates { get; set; } -#nullable restore -#else - public List Templates { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "complexityRules", n => { ComplexityRules = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_complexityRules.CreateFromDiscriminatorValue); } }, - { "dateFilters", n => { DateFilters = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_dateFilters.CreateFromDiscriminatorValue); } }, - { "expandLargeValueOnRender", n => { ExpandLargeValueOnRender = n.GetBoolValue(); } }, - { "fileExtensions", n => { FileExtensions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "fileMaxSize", n => { FileMaxSize = n.GetIntValue(); } }, - { "identifier", n => { Identifier = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier.CreateFromDiscriminatorValue); } }, - { "ipAddressType", n => { IpAddressType = n.GetEnumValue(); } }, - { "maxCharacters", n => { MaxCharacters = n.GetIntValue(); } }, - { "monetary", n => { Monetary = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_monetary.CreateFromDiscriminatorValue); } }, - { "nodeClass", n => { NodeClass = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "numericRange", n => { NumericRange = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_numericRange.CreateFromDiscriminatorValue); } }, - { "org", n => { Org = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "templates", n => { Templates = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("complexityRules", ComplexityRules); - writer.WriteObjectValue("dateFilters", DateFilters); - writer.WriteBoolValue("expandLargeValueOnRender", ExpandLargeValueOnRender); - writer.WriteCollectionOfPrimitiveValues("fileExtensions", FileExtensions); - writer.WriteIntValue("fileMaxSize", FileMaxSize); - writer.WriteObjectValue("identifier", Identifier); - writer.WriteEnumValue("ipAddressType", IpAddressType); - writer.WriteIntValue("maxCharacters", MaxCharacters); - writer.WriteObjectValue("monetary", Monetary); - writer.WriteCollectionOfEnumValues("nodeClass", NodeClass); - writer.WriteObjectValue("numericRange", NumericRange); - writer.WriteCollectionOfPrimitiveValues("org", Org); - writer.WriteCollectionOfPrimitiveValues("templates", Templates); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_complexityRules.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_complexityRules.cs deleted file mode 100644 index f1bf8b2..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_complexityRules.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_complexityRules : 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 greaterOrEqualThanSixCharacters property - public bool? GreaterOrEqualThanSixCharacters { get; set; } - /// The mustContainOneInteger property - public bool? MustContainOneInteger { get; set; } - /// The mustContainOneLowercaseLetter property - public bool? MustContainOneLowercaseLetter { get; set; } - /// The mustContainOneUppercaseLetter property - public bool? MustContainOneUppercaseLetter { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_complexityRules() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_complexityRules CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_complexityRules(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "greaterOrEqualThanSixCharacters", n => { GreaterOrEqualThanSixCharacters = n.GetBoolValue(); } }, - { "mustContainOneInteger", n => { MustContainOneInteger = n.GetBoolValue(); } }, - { "mustContainOneLowercaseLetter", n => { MustContainOneLowercaseLetter = n.GetBoolValue(); } }, - { "mustContainOneUppercaseLetter", n => { MustContainOneUppercaseLetter = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("greaterOrEqualThanSixCharacters", GreaterOrEqualThanSixCharacters); - writer.WriteBoolValue("mustContainOneInteger", MustContainOneInteger); - writer.WriteBoolValue("mustContainOneLowercaseLetter", MustContainOneLowercaseLetter); - writer.WriteBoolValue("mustContainOneUppercaseLetter", MustContainOneUppercaseLetter); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_dateFilters.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_dateFilters.cs deleted file mode 100644 index 510e51d..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_dateFilters.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_dateFilters : 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 selected property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Selected { get; set; } -#nullable restore -#else - public List Selected { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_dateFilters_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_dateFilters() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_dateFilters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_dateFilters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "selected", n => { Selected = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("selected", Selected); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_dateFilters_type.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_dateFilters_type.cs deleted file mode 100644 index f794e80..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_dateFilters_type.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_dateFilters_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "INCLUDE")] - #pragma warning disable CS1591 - INCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "EXCLUDE")] - #pragma warning disable CS1591 - EXCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "PAST_DATES_ONLY")] - #pragma warning disable CS1591 - PAST_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "FUTURE_DATES_ONLY")] - #pragma warning disable CS1591 - FUTURE_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "RANGE")] - #pragma warning disable CS1591 - RANGE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier.cs deleted file mode 100644 index bbcccaf..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier : 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 assignTo property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier_assignTo? AssignTo { get; set; } - /// The automaticGenerationEnabled property - public bool? AutomaticGenerationEnabled { get; set; } - /// The nextSequenceNumber property - public long? NextSequenceNumber { get; set; } - /// The prefix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Prefix { get; set; } -#nullable restore -#else - public string Prefix { get; set; } -#endif - /// The scope property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier_scope? Scope { get; set; } - /// The suffix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Suffix { get; set; } -#nullable restore -#else - public string Suffix { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignTo", n => { AssignTo = n.GetEnumValue(); } }, - { "automaticGenerationEnabled", n => { AutomaticGenerationEnabled = n.GetBoolValue(); } }, - { "nextSequenceNumber", n => { NextSequenceNumber = n.GetLongValue(); } }, - { "prefix", n => { Prefix = n.GetStringValue(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - { "suffix", n => { Suffix = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignTo", AssignTo); - writer.WriteBoolValue("automaticGenerationEnabled", AutomaticGenerationEnabled); - writer.WriteLongValue("nextSequenceNumber", NextSequenceNumber); - writer.WriteStringValue("prefix", Prefix); - writer.WriteEnumValue("scope", Scope); - writer.WriteStringValue("suffix", Suffix); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier_assignTo.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier_assignTo.cs deleted file mode 100644 index cdd72ad..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier_assignTo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier_assignTo - #pragma warning restore CS1591 - { - [EnumMember(Value = "NEW_ASSETS_ONLY")] - #pragma warning disable CS1591 - NEW_ASSETS_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "NEW_AND_EXISTING_ASSETS")] - #pragma warning disable CS1591 - NEW_AND_EXISTING_ASSETS, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier_scope.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier_scope.cs deleted file mode 100644 index 23c9ccd..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier_scope.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier_scope - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "GLOBAL")] - #pragma warning disable CS1591 - GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier_type.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier_type.cs deleted file mode 100644 index 80aeb8d..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier_type.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_identifier_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - [EnumMember(Value = "SEQUENCE")] - #pragma warning disable CS1591 - SEQUENCE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_ipAddressType.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_ipAddressType.cs deleted file mode 100644 index e8b7998..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_ipAddressType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_ipAddressType - #pragma warning restore CS1591 - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV4")] - #pragma warning disable CS1591 - IPV4, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV6")] - #pragma warning disable CS1591 - IPV6, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_monetary.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_monetary.cs deleted file mode 100644 index 8d916a1..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_monetary.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_monetary : 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 currency property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_monetary_currency? Currency { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_monetary() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_monetary CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_monetary(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "currency", n => { Currency = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("currency", Currency); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_monetary_currency.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_monetary_currency.cs deleted file mode 100644 index 5bf632d..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_monetary_currency.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_monetary_currency - #pragma warning restore CS1591 - { - [EnumMember(Value = "USD")] - #pragma warning disable CS1591 - USD, - #pragma warning restore CS1591 - [EnumMember(Value = "EUR")] - #pragma warning disable CS1591 - EUR, - #pragma warning restore CS1591 - [EnumMember(Value = "CAD")] - #pragma warning disable CS1591 - CAD, - #pragma warning restore CS1591 - [EnumMember(Value = "GBP")] - #pragma warning disable CS1591 - GBP, - #pragma warning restore CS1591 - [EnumMember(Value = "AUD")] - #pragma warning disable CS1591 - AUD, - #pragma warning restore CS1591 - [EnumMember(Value = "JPY")] - #pragma warning disable CS1591 - JPY, - #pragma warning restore CS1591 - [EnumMember(Value = "SEK")] - #pragma warning disable CS1591 - SEK, - #pragma warning restore CS1591 - [EnumMember(Value = "NOK")] - #pragma warning disable CS1591 - NOK, - #pragma warning restore CS1591 - [EnumMember(Value = "DKK")] - #pragma warning disable CS1591 - DKK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHF")] - #pragma warning disable CS1591 - CHF, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_nodeClass.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_nodeClass.cs deleted file mode 100644 index 06aa383..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_nodeClass.cs +++ /dev/null @@ -1,144 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_nodeClass - #pragma warning restore CS1591 - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_numericRange.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_numericRange.cs deleted file mode 100644 index b3f0102..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_numericRange.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_numericRange : 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 max property - public double? Max { get; set; } - /// The min property - public double? Min { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_numericRange() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_numericRange CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_advancedSettings_numericRange(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "max", n => { Max = n.GetDoubleValue(); } }, - { "min", n => { Min = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("max", Max); - writer.WriteDoubleValue("min", Min); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_values.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_values.cs deleted file mode 100644 index 2def321..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldContent_values.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// - /// Used for dropdown options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentTemplatesPostResponse_fields_fieldContent_values : IAdditionalDataHolder, IParsable - { - /// Indicates if a dropdown option is active - public bool? Active { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Identifier - public Guid? Id { get; set; } - /// Dropdown option name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplatesPostResponse_fields_fieldContent_values() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_values CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse_fields_fieldContent_values(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldScriptPermission.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldScriptPermission.cs deleted file mode 100644 index 860235c..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldScriptPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// Field script permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DocumentTemplatesPostResponse_fields_fieldScriptPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldTechnicianPermission.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldTechnicianPermission.cs deleted file mode 100644 index 4cc9174..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldTechnicianPermission.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// Field technician permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DocumentTemplatesPostResponse_fields_fieldTechnicianPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "EDITABLE")] - #pragma warning disable CS1591 - EDITABLE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldType.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldType.cs deleted file mode 100644 index 136f273..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_fieldType.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// Field type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DocumentTemplatesPostResponse_fields_fieldType - { - [EnumMember(Value = "DROPDOWN")] - #pragma warning disable CS1591 - DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "MULTI_SELECT")] - #pragma warning disable CS1591 - MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKBOX")] - #pragma warning disable CS1591 - CHECKBOX, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT")] - #pragma warning disable CS1591 - TEXT, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_MULTILINE")] - #pragma warning disable CS1591 - TEXT_MULTILINE, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_ENCRYPTED")] - #pragma warning disable CS1591 - TEXT_ENCRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NUMERIC")] - #pragma warning disable CS1591 - NUMERIC, - #pragma warning restore CS1591 - [EnumMember(Value = "DECIMAL")] - #pragma warning disable CS1591 - DECIMAL, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE")] - #pragma warning disable CS1591 - DATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE_TIME")] - #pragma warning disable CS1591 - DATE_TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "TIME")] - #pragma warning disable CS1591 - TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_DROPDOWN")] - #pragma warning disable CS1591 - NODE_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MULTI_SELECT")] - #pragma warning disable CS1591 - NODE_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_LOCATION_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_LOCATION_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "EMAIL")] - #pragma warning disable CS1591 - EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "PHONE")] - #pragma warning disable CS1591 - PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "IP_ADDRESS")] - #pragma warning disable CS1591 - IP_ADDRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "WYSIWYG")] - #pragma warning disable CS1591 - WYSIWYG, - #pragma warning restore CS1591 - [EnumMember(Value = "URL")] - #pragma warning disable CS1591 - URL, - #pragma warning restore CS1591 - [EnumMember(Value = "MONETARY")] - #pragma warning disable CS1591 - MONETARY, - #pragma warning restore CS1591 - [EnumMember(Value = "IDENTIFIER")] - #pragma warning disable CS1591 - IDENTIFIER, - #pragma warning restore CS1591 - [EnumMember(Value = "TOTP")] - #pragma warning disable CS1591 - TOTP, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_uiElementType.cs b/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_uiElementType.cs deleted file mode 100644 index ea449fd..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesPostResponse_fields_uiElementType.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// UI element type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DocumentTemplatesPostResponse_fields_uiElementType - { - [EnumMember(Value = "TITLE")] - #pragma warning disable CS1591 - TITLE, - #pragma warning restore CS1591 - [EnumMember(Value = "DESCRIPTION")] - #pragma warning disable CS1591 - DESCRIPTION, - #pragma warning restore CS1591 - [EnumMember(Value = "SEPARATOR")] - #pragma warning disable CS1591 - SEPARATOR, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplatesRequestBuilder.cs b/V2/DocumentTemplates/DocumentTemplatesRequestBuilder.cs deleted file mode 100644 index 37aaa28..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesRequestBuilder.cs +++ /dev/null @@ -1,220 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.DocumentTemplates.Archive; -using NinjaOne.Client.V2.DocumentTemplates.Item; -using NinjaOne.Client.V2.DocumentTemplates.Restore; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// - /// Builds and executes requests for operations under \v2\document-templates - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentTemplatesRequestBuilder : BaseRequestBuilder - { - /// The archive property - public global::NinjaOne.Client.V2.DocumentTemplates.Archive.ArchiveRequestBuilder Archive - { - get => new global::NinjaOne.Client.V2.DocumentTemplates.Archive.ArchiveRequestBuilder(PathParameters, RequestAdapter); - } - /// The restore property - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestoreRequestBuilder Restore - { - get => new global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestoreRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the NinjaOne.Client.v2.documentTemplates.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("documentTemplateId", position); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.documentTemplates.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("documentTemplateId", position); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DocumentTemplatesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/document-templates{?includeTechnicianRoles*,templateName*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DocumentTemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/document-templates{?includeTechnicianRoles*,templateName*}", rawUrl) - { - } - /// - /// List document templates with fields - /// - /// A List<global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Create document template - /// - /// A - /// The request body - /// 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 PostAsDocumentTemplatesPostResponseAsync(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsDocumentTemplatesPostResponseAsync(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create document template - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsDocumentTemplatesPostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// List document templates with fields - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Create document template - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// List document templates with fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentTemplatesRequestBuilderGetQueryParameters - { - /// Includes allowed technician roles. - [QueryParameter("includeTechnicianRoles")] - public bool? IncludeTechnicianRoles { get; set; } -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("templateName")] - public string? TemplateName { get; set; } -#nullable restore -#else - [QueryParameter("templateName")] - public string TemplateName { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentTemplatesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentTemplatesRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplatesResponse.cs b/V2/DocumentTemplates/DocumentTemplatesResponse.cs deleted file mode 100644 index 3aa3b97..0000000 --- a/V2/DocumentTemplates/DocumentTemplatesResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [Obsolete("This class is obsolete. Use DocumentTemplatesPostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplatesResponse : global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesPostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplates_archivedBy.cs b/V2/DocumentTemplates/DocumentTemplates_archivedBy.cs deleted file mode 100644 index 3c24eea..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_archivedBy.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// - /// Indicates who archived the template - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentTemplates_archivedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The displayName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplates_archivedBy() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_archivedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_archivedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteIntValue("id", Id); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplates_fields.cs b/V2/DocumentTemplates/DocumentTemplates_fields.cs deleted file mode 100644 index f081648..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields.cs +++ /dev/null @@ -1,162 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// - /// Document template fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentTemplates_fields : 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; } - /// Creation time - public double? CreatedTime { get; set; } - /// Field public API permission - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldApiPermission? FieldApiPermission { get; set; } - /// Field content -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent? FieldContent { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent FieldContent { get; set; } -#endif - /// Default value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldDefaultValue { get; set; } -#nullable restore -#else - public string FieldDefaultValue { get; set; } -#endif - /// Field description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldDescription { get; set; } -#nullable restore -#else - public string FieldDescription { get; set; } -#endif - /// Field identifier - public int? FieldId { get; set; } - /// Field or UI element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldLabel { get; set; } -#nullable restore -#else - public string FieldLabel { get; set; } -#endif - /// Field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Field script permission - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldScriptPermission? FieldScriptPermission { get; set; } - /// Field technician permission - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldTechnicianPermission? FieldTechnicianPermission { get; set; } - /// Field type - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldType? FieldType { get; set; } - /// UI element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementName { get; set; } -#nullable restore -#else - public string UiElementName { get; set; } -#endif - /// UI element type - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_uiElementType? UiElementType { get; set; } - /// UI element identifier - public Guid? UiElementUid { get; set; } - /// UI element value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementValue { get; set; } -#nullable restore -#else - public string UiElementValue { get; set; } -#endif - /// Last updated time - public double? UpdatedTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplates_fields() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createdTime", n => { CreatedTime = n.GetDoubleValue(); } }, - { "fieldApiPermission", n => { FieldApiPermission = n.GetEnumValue(); } }, - { "fieldContent", n => { FieldContent = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent.CreateFromDiscriminatorValue); } }, - { "fieldDefaultValue", n => { FieldDefaultValue = n.GetStringValue(); } }, - { "fieldDescription", n => { FieldDescription = n.GetStringValue(); } }, - { "fieldId", n => { FieldId = n.GetIntValue(); } }, - { "fieldLabel", n => { FieldLabel = n.GetStringValue(); } }, - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "fieldScriptPermission", n => { FieldScriptPermission = n.GetEnumValue(); } }, - { "fieldTechnicianPermission", n => { FieldTechnicianPermission = n.GetEnumValue(); } }, - { "fieldType", n => { FieldType = n.GetEnumValue(); } }, - { "uiElementName", n => { UiElementName = n.GetStringValue(); } }, - { "uiElementType", n => { UiElementType = n.GetEnumValue(); } }, - { "uiElementUid", n => { UiElementUid = n.GetGuidValue(); } }, - { "uiElementValue", n => { UiElementValue = n.GetStringValue(); } }, - { "updatedTime", n => { UpdatedTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("createdTime", CreatedTime); - writer.WriteEnumValue("fieldApiPermission", FieldApiPermission); - writer.WriteObjectValue("fieldContent", FieldContent); - writer.WriteStringValue("fieldDefaultValue", FieldDefaultValue); - writer.WriteStringValue("fieldDescription", FieldDescription); - writer.WriteIntValue("fieldId", FieldId); - writer.WriteStringValue("fieldLabel", FieldLabel); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("fieldScriptPermission", FieldScriptPermission); - writer.WriteEnumValue("fieldTechnicianPermission", FieldTechnicianPermission); - writer.WriteEnumValue("fieldType", FieldType); - writer.WriteStringValue("uiElementName", UiElementName); - writer.WriteEnumValue("uiElementType", UiElementType); - writer.WriteGuidValue("uiElementUid", UiElementUid); - writer.WriteStringValue("uiElementValue", UiElementValue); - writer.WriteDoubleValue("updatedTime", UpdatedTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldApiPermission.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldApiPermission.cs deleted file mode 100644 index d9267b8..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldApiPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// Field public API permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DocumentTemplates_fields_fieldApiPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent.cs deleted file mode 100644 index f337564..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// - /// Field content - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentTemplates_fields_fieldContent : 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; } - /// The advancedSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings? AdvancedSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings AdvancedSettings { get; set; } -#endif - /// Footer text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FooterText { get; set; } -#nullable restore -#else - public string FooterText { get; set; } -#endif - /// Indicates if the field is required - public bool? Required { get; set; } - /// Tooltip text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TooltipText { get; set; } -#nullable restore -#else - public string TooltipText { get; set; } -#endif - /// Used for dropdown options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplates_fields_fieldContent() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "advancedSettings", n => { AdvancedSettings = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings.CreateFromDiscriminatorValue); } }, - { "footerText", n => { FooterText = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tooltipText", n => { TooltipText = n.GetStringValue(); } }, - { "values", n => { Values = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_values.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("advancedSettings", AdvancedSettings); - writer.WriteStringValue("footerText", FooterText); - writer.WriteBoolValue("required", Required); - writer.WriteStringValue("tooltipText", TooltipText); - writer.WriteCollectionOfObjectValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings.cs deleted file mode 100644 index 524f406..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplates_fields_fieldContent_advancedSettings : 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 complexityRules property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_complexityRules? ComplexityRules { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_complexityRules ComplexityRules { get; set; } -#endif - /// The dateFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_dateFilters? DateFilters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_dateFilters DateFilters { get; set; } -#endif - /// The expandLargeValueOnRender property - public bool? ExpandLargeValueOnRender { get; set; } - /// The fileExtensions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FileExtensions { get; set; } -#nullable restore -#else - public List FileExtensions { get; set; } -#endif - /// The fileMaxSize property - public int? FileMaxSize { get; set; } - /// The identifier property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_identifier? Identifier { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_identifier Identifier { get; set; } -#endif - /// The ipAddressType property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_ipAddressType? IpAddressType { get; set; } - /// The maxCharacters property - public int? MaxCharacters { get; set; } - /// The monetary property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_monetary? Monetary { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_monetary Monetary { get; set; } -#endif - /// The nodeClass property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? NodeClass { get; set; } -#nullable restore -#else - public List NodeClass { get; set; } -#endif - /// The numericRange property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_numericRange? NumericRange { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_numericRange NumericRange { get; set; } -#endif - /// The org property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Org { get; set; } -#nullable restore -#else - public List Org { get; set; } -#endif - /// The templates property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Templates { get; set; } -#nullable restore -#else - public List Templates { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplates_fields_fieldContent_advancedSettings() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "complexityRules", n => { ComplexityRules = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_complexityRules.CreateFromDiscriminatorValue); } }, - { "dateFilters", n => { DateFilters = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_dateFilters.CreateFromDiscriminatorValue); } }, - { "expandLargeValueOnRender", n => { ExpandLargeValueOnRender = n.GetBoolValue(); } }, - { "fileExtensions", n => { FileExtensions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "fileMaxSize", n => { FileMaxSize = n.GetIntValue(); } }, - { "identifier", n => { Identifier = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_identifier.CreateFromDiscriminatorValue); } }, - { "ipAddressType", n => { IpAddressType = n.GetEnumValue(); } }, - { "maxCharacters", n => { MaxCharacters = n.GetIntValue(); } }, - { "monetary", n => { Monetary = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_monetary.CreateFromDiscriminatorValue); } }, - { "nodeClass", n => { NodeClass = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "numericRange", n => { NumericRange = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_numericRange.CreateFromDiscriminatorValue); } }, - { "org", n => { Org = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "templates", n => { Templates = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("complexityRules", ComplexityRules); - writer.WriteObjectValue("dateFilters", DateFilters); - writer.WriteBoolValue("expandLargeValueOnRender", ExpandLargeValueOnRender); - writer.WriteCollectionOfPrimitiveValues("fileExtensions", FileExtensions); - writer.WriteIntValue("fileMaxSize", FileMaxSize); - writer.WriteObjectValue("identifier", Identifier); - writer.WriteEnumValue("ipAddressType", IpAddressType); - writer.WriteIntValue("maxCharacters", MaxCharacters); - writer.WriteObjectValue("monetary", Monetary); - writer.WriteCollectionOfEnumValues("nodeClass", NodeClass); - writer.WriteObjectValue("numericRange", NumericRange); - writer.WriteCollectionOfPrimitiveValues("org", Org); - writer.WriteCollectionOfPrimitiveValues("templates", Templates); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_complexityRules.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_complexityRules.cs deleted file mode 100644 index 18f338b..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_complexityRules.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplates_fields_fieldContent_advancedSettings_complexityRules : 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 greaterOrEqualThanSixCharacters property - public bool? GreaterOrEqualThanSixCharacters { get; set; } - /// The mustContainOneInteger property - public bool? MustContainOneInteger { get; set; } - /// The mustContainOneLowercaseLetter property - public bool? MustContainOneLowercaseLetter { get; set; } - /// The mustContainOneUppercaseLetter property - public bool? MustContainOneUppercaseLetter { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplates_fields_fieldContent_advancedSettings_complexityRules() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_complexityRules CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_complexityRules(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "greaterOrEqualThanSixCharacters", n => { GreaterOrEqualThanSixCharacters = n.GetBoolValue(); } }, - { "mustContainOneInteger", n => { MustContainOneInteger = n.GetBoolValue(); } }, - { "mustContainOneLowercaseLetter", n => { MustContainOneLowercaseLetter = n.GetBoolValue(); } }, - { "mustContainOneUppercaseLetter", n => { MustContainOneUppercaseLetter = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("greaterOrEqualThanSixCharacters", GreaterOrEqualThanSixCharacters); - writer.WriteBoolValue("mustContainOneInteger", MustContainOneInteger); - writer.WriteBoolValue("mustContainOneLowercaseLetter", MustContainOneLowercaseLetter); - writer.WriteBoolValue("mustContainOneUppercaseLetter", MustContainOneUppercaseLetter); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_dateFilters.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_dateFilters.cs deleted file mode 100644 index da06f87..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_dateFilters.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplates_fields_fieldContent_advancedSettings_dateFilters : 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 selected property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Selected { get; set; } -#nullable restore -#else - public List Selected { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_dateFilters_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplates_fields_fieldContent_advancedSettings_dateFilters() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_dateFilters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_dateFilters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "selected", n => { Selected = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("selected", Selected); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_dateFilters_type.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_dateFilters_type.cs deleted file mode 100644 index f6b0052..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_dateFilters_type.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplates_fields_fieldContent_advancedSettings_dateFilters_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "INCLUDE")] - #pragma warning disable CS1591 - INCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "EXCLUDE")] - #pragma warning disable CS1591 - EXCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "PAST_DATES_ONLY")] - #pragma warning disable CS1591 - PAST_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "FUTURE_DATES_ONLY")] - #pragma warning disable CS1591 - FUTURE_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "RANGE")] - #pragma warning disable CS1591 - RANGE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_identifier.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_identifier.cs deleted file mode 100644 index c85cede..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_identifier.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplates_fields_fieldContent_advancedSettings_identifier : 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 assignTo property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_identifier_assignTo? AssignTo { get; set; } - /// The automaticGenerationEnabled property - public bool? AutomaticGenerationEnabled { get; set; } - /// The nextSequenceNumber property - public long? NextSequenceNumber { get; set; } - /// The prefix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Prefix { get; set; } -#nullable restore -#else - public string Prefix { get; set; } -#endif - /// The scope property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_identifier_scope? Scope { get; set; } - /// The suffix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Suffix { get; set; } -#nullable restore -#else - public string Suffix { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_identifier_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplates_fields_fieldContent_advancedSettings_identifier() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_identifier CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_identifier(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignTo", n => { AssignTo = n.GetEnumValue(); } }, - { "automaticGenerationEnabled", n => { AutomaticGenerationEnabled = n.GetBoolValue(); } }, - { "nextSequenceNumber", n => { NextSequenceNumber = n.GetLongValue(); } }, - { "prefix", n => { Prefix = n.GetStringValue(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - { "suffix", n => { Suffix = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignTo", AssignTo); - writer.WriteBoolValue("automaticGenerationEnabled", AutomaticGenerationEnabled); - writer.WriteLongValue("nextSequenceNumber", NextSequenceNumber); - writer.WriteStringValue("prefix", Prefix); - writer.WriteEnumValue("scope", Scope); - writer.WriteStringValue("suffix", Suffix); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_identifier_assignTo.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_identifier_assignTo.cs deleted file mode 100644 index 16de7c6..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_identifier_assignTo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplates_fields_fieldContent_advancedSettings_identifier_assignTo - #pragma warning restore CS1591 - { - [EnumMember(Value = "NEW_ASSETS_ONLY")] - #pragma warning disable CS1591 - NEW_ASSETS_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "NEW_AND_EXISTING_ASSETS")] - #pragma warning disable CS1591 - NEW_AND_EXISTING_ASSETS, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_identifier_scope.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_identifier_scope.cs deleted file mode 100644 index 1f0975d..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_identifier_scope.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplates_fields_fieldContent_advancedSettings_identifier_scope - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "GLOBAL")] - #pragma warning disable CS1591 - GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_identifier_type.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_identifier_type.cs deleted file mode 100644 index be6d5bd..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_identifier_type.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplates_fields_fieldContent_advancedSettings_identifier_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - [EnumMember(Value = "SEQUENCE")] - #pragma warning disable CS1591 - SEQUENCE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_ipAddressType.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_ipAddressType.cs deleted file mode 100644 index b271d9b..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_ipAddressType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplates_fields_fieldContent_advancedSettings_ipAddressType - #pragma warning restore CS1591 - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV4")] - #pragma warning disable CS1591 - IPV4, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV6")] - #pragma warning disable CS1591 - IPV6, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_monetary.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_monetary.cs deleted file mode 100644 index 0648efe..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_monetary.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplates_fields_fieldContent_advancedSettings_monetary : 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 currency property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_monetary_currency? Currency { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplates_fields_fieldContent_advancedSettings_monetary() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_monetary CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_monetary(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "currency", n => { Currency = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("currency", Currency); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_monetary_currency.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_monetary_currency.cs deleted file mode 100644 index 621edf6..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_monetary_currency.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplates_fields_fieldContent_advancedSettings_monetary_currency - #pragma warning restore CS1591 - { - [EnumMember(Value = "USD")] - #pragma warning disable CS1591 - USD, - #pragma warning restore CS1591 - [EnumMember(Value = "EUR")] - #pragma warning disable CS1591 - EUR, - #pragma warning restore CS1591 - [EnumMember(Value = "CAD")] - #pragma warning disable CS1591 - CAD, - #pragma warning restore CS1591 - [EnumMember(Value = "GBP")] - #pragma warning disable CS1591 - GBP, - #pragma warning restore CS1591 - [EnumMember(Value = "AUD")] - #pragma warning disable CS1591 - AUD, - #pragma warning restore CS1591 - [EnumMember(Value = "JPY")] - #pragma warning disable CS1591 - JPY, - #pragma warning restore CS1591 - [EnumMember(Value = "SEK")] - #pragma warning disable CS1591 - SEK, - #pragma warning restore CS1591 - [EnumMember(Value = "NOK")] - #pragma warning disable CS1591 - NOK, - #pragma warning restore CS1591 - [EnumMember(Value = "DKK")] - #pragma warning disable CS1591 - DKK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHF")] - #pragma warning disable CS1591 - CHF, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_nodeClass.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_nodeClass.cs deleted file mode 100644 index 724d5eb..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_nodeClass.cs +++ /dev/null @@ -1,144 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum DocumentTemplates_fields_fieldContent_advancedSettings_nodeClass - #pragma warning restore CS1591 - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_numericRange.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_numericRange.cs deleted file mode 100644 index d1b5d3c..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_advancedSettings_numericRange.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentTemplates_fields_fieldContent_advancedSettings_numericRange : 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 max property - public double? Max { get; set; } - /// The min property - public double? Min { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplates_fields_fieldContent_advancedSettings_numericRange() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_numericRange CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_advancedSettings_numericRange(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "max", n => { Max = n.GetDoubleValue(); } }, - { "min", n => { Min = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("max", Max); - writer.WriteDoubleValue("min", Min); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_values.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_values.cs deleted file mode 100644 index f1273ff..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldContent_values.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// - /// Used for dropdown options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentTemplates_fields_fieldContent_values : IAdditionalDataHolder, IParsable - { - /// Indicates if a dropdown option is active - public bool? Active { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Identifier - public Guid? Id { get; set; } - /// Dropdown option name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DocumentTemplates_fields_fieldContent_values() - { - 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::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_values CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplates_fields_fieldContent_values(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldScriptPermission.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldScriptPermission.cs deleted file mode 100644 index eab4bba..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldScriptPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// Field script permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DocumentTemplates_fields_fieldScriptPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldTechnicianPermission.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldTechnicianPermission.cs deleted file mode 100644 index 60a09b7..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldTechnicianPermission.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// Field technician permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DocumentTemplates_fields_fieldTechnicianPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "EDITABLE")] - #pragma warning disable CS1591 - EDITABLE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_fieldType.cs b/V2/DocumentTemplates/DocumentTemplates_fields_fieldType.cs deleted file mode 100644 index f670ff7..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_fieldType.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// Field type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DocumentTemplates_fields_fieldType - { - [EnumMember(Value = "DROPDOWN")] - #pragma warning disable CS1591 - DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "MULTI_SELECT")] - #pragma warning disable CS1591 - MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKBOX")] - #pragma warning disable CS1591 - CHECKBOX, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT")] - #pragma warning disable CS1591 - TEXT, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_MULTILINE")] - #pragma warning disable CS1591 - TEXT_MULTILINE, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_ENCRYPTED")] - #pragma warning disable CS1591 - TEXT_ENCRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NUMERIC")] - #pragma warning disable CS1591 - NUMERIC, - #pragma warning restore CS1591 - [EnumMember(Value = "DECIMAL")] - #pragma warning disable CS1591 - DECIMAL, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE")] - #pragma warning disable CS1591 - DATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE_TIME")] - #pragma warning disable CS1591 - DATE_TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "TIME")] - #pragma warning disable CS1591 - TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_DROPDOWN")] - #pragma warning disable CS1591 - NODE_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MULTI_SELECT")] - #pragma warning disable CS1591 - NODE_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_LOCATION_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_LOCATION_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "EMAIL")] - #pragma warning disable CS1591 - EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "PHONE")] - #pragma warning disable CS1591 - PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "IP_ADDRESS")] - #pragma warning disable CS1591 - IP_ADDRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "WYSIWYG")] - #pragma warning disable CS1591 - WYSIWYG, - #pragma warning restore CS1591 - [EnumMember(Value = "URL")] - #pragma warning disable CS1591 - URL, - #pragma warning restore CS1591 - [EnumMember(Value = "MONETARY")] - #pragma warning disable CS1591 - MONETARY, - #pragma warning restore CS1591 - [EnumMember(Value = "IDENTIFIER")] - #pragma warning disable CS1591 - IDENTIFIER, - #pragma warning restore CS1591 - [EnumMember(Value = "TOTP")] - #pragma warning disable CS1591 - TOTP, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/DocumentTemplates_fields_uiElementType.cs b/V2/DocumentTemplates/DocumentTemplates_fields_uiElementType.cs deleted file mode 100644 index 15a34d0..0000000 --- a/V2/DocumentTemplates/DocumentTemplates_fields_uiElementType.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates -{ - /// UI element type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DocumentTemplates_fields_uiElementType - { - [EnumMember(Value = "TITLE")] - #pragma warning disable CS1591 - TITLE, - #pragma warning restore CS1591 - [EnumMember(Value = "DESCRIPTION")] - #pragma warning disable CS1591 - DESCRIPTION, - #pragma warning restore CS1591 - [EnumMember(Value = "SEPARATOR")] - #pragma warning disable CS1591 - SEPARATOR, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/Archive/ArchiveRequestBuilder.cs b/V2/DocumentTemplates/Item/Archive/ArchiveRequestBuilder.cs deleted file mode 100644 index 4f3b4f0..0000000 --- a/V2/DocumentTemplates/Item/Archive/ArchiveRequestBuilder.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Archive -{ - /// - /// Builds and executes requests for operations under \v2\document-templates\{documentTemplateId}\archive - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchiveRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ArchiveRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/document-templates/{documentTemplateId}/archive", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ArchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/document-templates/{documentTemplateId}/archive", rawUrl) - { - } - /// - /// Archives a document template by id - /// - /// 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 PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToPostRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Archives a document template by id - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Archive.ArchiveRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.Archive.ArchiveRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchiveRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse.cs deleted file mode 100644 index 4b4f4d1..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse.cs +++ /dev/null @@ -1,137 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestorePostResponse : 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; } - /// List of allowed technician role ids -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AllowedTechnicianRoles { get; set; } -#nullable restore -#else - public List AllowedTechnicianRoles { get; set; } -#endif - /// Indicates if multiple instances of the document template is allowed - public bool? AllowMultiple { get; set; } - /// Indicates if the document template is archived - public bool? Archived { get; set; } - /// Indicates who archived the template -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_archivedBy? ArchivedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_archivedBy ArchivedBy { get; set; } -#endif - /// Indicates the time the template was archived - public double? ArchivedTime { get; set; } - /// Indicates if the document template is available to all technicians - public bool? AvailableToAllTechnicians { get; set; } - /// Creation time - public double? CreateTime { get; set; } - /// Description of the template -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Document template fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// Identifier - public int? Id { get; set; } - /// Indicates if the document template is mandatory - public bool? Mandatory { get; set; } - /// Name of the template (must be unique) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Last updated time - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "allowMultiple", n => { AllowMultiple = n.GetBoolValue(); } }, - { "allowedTechnicianRoles", n => { AllowedTechnicianRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "archived", n => { Archived = n.GetBoolValue(); } }, - { "archivedBy", n => { ArchivedBy = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_archivedBy.CreateFromDiscriminatorValue); } }, - { "archivedTime", n => { ArchivedTime = n.GetDoubleValue(); } }, - { "availableToAllTechnicians", n => { AvailableToAllTechnicians = n.GetBoolValue(); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "mandatory", n => { Mandatory = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("allowedTechnicianRoles", AllowedTechnicianRoles); - writer.WriteBoolValue("allowMultiple", AllowMultiple); - writer.WriteBoolValue("archived", Archived); - writer.WriteObjectValue("archivedBy", ArchivedBy); - writer.WriteDoubleValue("archivedTime", ArchivedTime); - writer.WriteBoolValue("availableToAllTechnicians", AvailableToAllTechnicians); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("description", Description); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("mandatory", Mandatory); - writer.WriteStringValue("name", Name); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_archivedBy.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_archivedBy.cs deleted file mode 100644 index bf3027d..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_archivedBy.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - /// - /// Indicates who archived the template - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestorePostResponse_archivedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The displayName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_archivedBy() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_archivedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_archivedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteIntValue("id", Id); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields.cs deleted file mode 100644 index 656a6d8..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields.cs +++ /dev/null @@ -1,162 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - /// - /// Document template fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestorePostResponse_fields : 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; } - /// Creation time - public double? CreatedTime { get; set; } - /// Field public API permission - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldApiPermission? FieldApiPermission { get; set; } - /// Field content -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent? FieldContent { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent FieldContent { get; set; } -#endif - /// Default value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldDefaultValue { get; set; } -#nullable restore -#else - public string FieldDefaultValue { get; set; } -#endif - /// Field description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldDescription { get; set; } -#nullable restore -#else - public string FieldDescription { get; set; } -#endif - /// Field identifier - public int? FieldId { get; set; } - /// Field or UI element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldLabel { get; set; } -#nullable restore -#else - public string FieldLabel { get; set; } -#endif - /// Field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Field script permission - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldScriptPermission? FieldScriptPermission { get; set; } - /// Field technician permission - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldTechnicianPermission? FieldTechnicianPermission { get; set; } - /// Field type - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldType? FieldType { get; set; } - /// UI element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementName { get; set; } -#nullable restore -#else - public string UiElementName { get; set; } -#endif - /// UI element type - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_uiElementType? UiElementType { get; set; } - /// UI element identifier - public Guid? UiElementUid { get; set; } - /// UI element value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementValue { get; set; } -#nullable restore -#else - public string UiElementValue { get; set; } -#endif - /// Last updated time - public double? UpdatedTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createdTime", n => { CreatedTime = n.GetDoubleValue(); } }, - { "fieldApiPermission", n => { FieldApiPermission = n.GetEnumValue(); } }, - { "fieldContent", n => { FieldContent = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent.CreateFromDiscriminatorValue); } }, - { "fieldDefaultValue", n => { FieldDefaultValue = n.GetStringValue(); } }, - { "fieldDescription", n => { FieldDescription = n.GetStringValue(); } }, - { "fieldId", n => { FieldId = n.GetIntValue(); } }, - { "fieldLabel", n => { FieldLabel = n.GetStringValue(); } }, - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "fieldScriptPermission", n => { FieldScriptPermission = n.GetEnumValue(); } }, - { "fieldTechnicianPermission", n => { FieldTechnicianPermission = n.GetEnumValue(); } }, - { "fieldType", n => { FieldType = n.GetEnumValue(); } }, - { "uiElementName", n => { UiElementName = n.GetStringValue(); } }, - { "uiElementType", n => { UiElementType = n.GetEnumValue(); } }, - { "uiElementUid", n => { UiElementUid = n.GetGuidValue(); } }, - { "uiElementValue", n => { UiElementValue = n.GetStringValue(); } }, - { "updatedTime", n => { UpdatedTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("createdTime", CreatedTime); - writer.WriteEnumValue("fieldApiPermission", FieldApiPermission); - writer.WriteObjectValue("fieldContent", FieldContent); - writer.WriteStringValue("fieldDefaultValue", FieldDefaultValue); - writer.WriteStringValue("fieldDescription", FieldDescription); - writer.WriteIntValue("fieldId", FieldId); - writer.WriteStringValue("fieldLabel", FieldLabel); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("fieldScriptPermission", FieldScriptPermission); - writer.WriteEnumValue("fieldTechnicianPermission", FieldTechnicianPermission); - writer.WriteEnumValue("fieldType", FieldType); - writer.WriteStringValue("uiElementName", UiElementName); - writer.WriteEnumValue("uiElementType", UiElementType); - writer.WriteGuidValue("uiElementUid", UiElementUid); - writer.WriteStringValue("uiElementValue", UiElementValue); - writer.WriteDoubleValue("updatedTime", UpdatedTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldApiPermission.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldApiPermission.cs deleted file mode 100644 index 73954ea..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldApiPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - /// Field public API permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RestorePostResponse_fields_fieldApiPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent.cs deleted file mode 100644 index a93b1cd..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - /// - /// Field content - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestorePostResponse_fields_fieldContent : 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; } - /// The advancedSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings? AdvancedSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings AdvancedSettings { get; set; } -#endif - /// Footer text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FooterText { get; set; } -#nullable restore -#else - public string FooterText { get; set; } -#endif - /// Indicates if the field is required - public bool? Required { get; set; } - /// Tooltip text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TooltipText { get; set; } -#nullable restore -#else - public string TooltipText { get; set; } -#endif - /// Used for dropdown options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields_fieldContent() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "advancedSettings", n => { AdvancedSettings = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings.CreateFromDiscriminatorValue); } }, - { "footerText", n => { FooterText = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tooltipText", n => { TooltipText = n.GetStringValue(); } }, - { "values", n => { Values = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_values.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("advancedSettings", AdvancedSettings); - writer.WriteStringValue("footerText", FooterText); - writer.WriteBoolValue("required", Required); - writer.WriteStringValue("tooltipText", TooltipText); - writer.WriteCollectionOfObjectValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings.cs deleted file mode 100644 index a67cd26..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestorePostResponse_fields_fieldContent_advancedSettings : 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 complexityRules property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules? ComplexityRules { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules ComplexityRules { get; set; } -#endif - /// The dateFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters? DateFilters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters DateFilters { get; set; } -#endif - /// The expandLargeValueOnRender property - public bool? ExpandLargeValueOnRender { get; set; } - /// The fileExtensions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FileExtensions { get; set; } -#nullable restore -#else - public List FileExtensions { get; set; } -#endif - /// The fileMaxSize property - public int? FileMaxSize { get; set; } - /// The identifier property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_identifier? Identifier { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_identifier Identifier { get; set; } -#endif - /// The ipAddressType property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_ipAddressType? IpAddressType { get; set; } - /// The maxCharacters property - public int? MaxCharacters { get; set; } - /// The monetary property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_monetary? Monetary { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_monetary Monetary { get; set; } -#endif - /// The nodeClass property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? NodeClass { get; set; } -#nullable restore -#else - public List NodeClass { get; set; } -#endif - /// The numericRange property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_numericRange? NumericRange { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_numericRange NumericRange { get; set; } -#endif - /// The org property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Org { get; set; } -#nullable restore -#else - public List Org { get; set; } -#endif - /// The templates property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Templates { get; set; } -#nullable restore -#else - public List Templates { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields_fieldContent_advancedSettings() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "complexityRules", n => { ComplexityRules = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules.CreateFromDiscriminatorValue); } }, - { "dateFilters", n => { DateFilters = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters.CreateFromDiscriminatorValue); } }, - { "expandLargeValueOnRender", n => { ExpandLargeValueOnRender = n.GetBoolValue(); } }, - { "fileExtensions", n => { FileExtensions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "fileMaxSize", n => { FileMaxSize = n.GetIntValue(); } }, - { "identifier", n => { Identifier = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_identifier.CreateFromDiscriminatorValue); } }, - { "ipAddressType", n => { IpAddressType = n.GetEnumValue(); } }, - { "maxCharacters", n => { MaxCharacters = n.GetIntValue(); } }, - { "monetary", n => { Monetary = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_monetary.CreateFromDiscriminatorValue); } }, - { "nodeClass", n => { NodeClass = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "numericRange", n => { NumericRange = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_numericRange.CreateFromDiscriminatorValue); } }, - { "org", n => { Org = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "templates", n => { Templates = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("complexityRules", ComplexityRules); - writer.WriteObjectValue("dateFilters", DateFilters); - writer.WriteBoolValue("expandLargeValueOnRender", ExpandLargeValueOnRender); - writer.WriteCollectionOfPrimitiveValues("fileExtensions", FileExtensions); - writer.WriteIntValue("fileMaxSize", FileMaxSize); - writer.WriteObjectValue("identifier", Identifier); - writer.WriteEnumValue("ipAddressType", IpAddressType); - writer.WriteIntValue("maxCharacters", MaxCharacters); - writer.WriteObjectValue("monetary", Monetary); - writer.WriteCollectionOfEnumValues("nodeClass", NodeClass); - writer.WriteObjectValue("numericRange", NumericRange); - writer.WriteCollectionOfPrimitiveValues("org", Org); - writer.WriteCollectionOfPrimitiveValues("templates", Templates); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules.cs deleted file mode 100644 index b32ef5d..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules : 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 greaterOrEqualThanSixCharacters property - public bool? GreaterOrEqualThanSixCharacters { get; set; } - /// The mustContainOneInteger property - public bool? MustContainOneInteger { get; set; } - /// The mustContainOneLowercaseLetter property - public bool? MustContainOneLowercaseLetter { get; set; } - /// The mustContainOneUppercaseLetter property - public bool? MustContainOneUppercaseLetter { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "greaterOrEqualThanSixCharacters", n => { GreaterOrEqualThanSixCharacters = n.GetBoolValue(); } }, - { "mustContainOneInteger", n => { MustContainOneInteger = n.GetBoolValue(); } }, - { "mustContainOneLowercaseLetter", n => { MustContainOneLowercaseLetter = n.GetBoolValue(); } }, - { "mustContainOneUppercaseLetter", n => { MustContainOneUppercaseLetter = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("greaterOrEqualThanSixCharacters", GreaterOrEqualThanSixCharacters); - writer.WriteBoolValue("mustContainOneInteger", MustContainOneInteger); - writer.WriteBoolValue("mustContainOneLowercaseLetter", MustContainOneLowercaseLetter); - writer.WriteBoolValue("mustContainOneUppercaseLetter", MustContainOneUppercaseLetter); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters.cs deleted file mode 100644 index ef4615f..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters : 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 selected property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Selected { get; set; } -#nullable restore -#else - public List Selected { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "selected", n => { Selected = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("selected", Selected); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters_type.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters_type.cs deleted file mode 100644 index 9798105..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters_type.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "INCLUDE")] - #pragma warning disable CS1591 - INCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "EXCLUDE")] - #pragma warning disable CS1591 - EXCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "PAST_DATES_ONLY")] - #pragma warning disable CS1591 - PAST_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "FUTURE_DATES_ONLY")] - #pragma warning disable CS1591 - FUTURE_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "RANGE")] - #pragma warning disable CS1591 - RANGE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier.cs deleted file mode 100644 index 33530a4..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestorePostResponse_fields_fieldContent_advancedSettings_identifier : 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 assignTo property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_identifier_assignTo? AssignTo { get; set; } - /// The automaticGenerationEnabled property - public bool? AutomaticGenerationEnabled { get; set; } - /// The nextSequenceNumber property - public long? NextSequenceNumber { get; set; } - /// The prefix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Prefix { get; set; } -#nullable restore -#else - public string Prefix { get; set; } -#endif - /// The scope property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_identifier_scope? Scope { get; set; } - /// The suffix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Suffix { get; set; } -#nullable restore -#else - public string Suffix { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_identifier_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields_fieldContent_advancedSettings_identifier() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_identifier CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_identifier(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignTo", n => { AssignTo = n.GetEnumValue(); } }, - { "automaticGenerationEnabled", n => { AutomaticGenerationEnabled = n.GetBoolValue(); } }, - { "nextSequenceNumber", n => { NextSequenceNumber = n.GetLongValue(); } }, - { "prefix", n => { Prefix = n.GetStringValue(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - { "suffix", n => { Suffix = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignTo", AssignTo); - writer.WriteBoolValue("automaticGenerationEnabled", AutomaticGenerationEnabled); - writer.WriteLongValue("nextSequenceNumber", NextSequenceNumber); - writer.WriteStringValue("prefix", Prefix); - writer.WriteEnumValue("scope", Scope); - writer.WriteStringValue("suffix", Suffix); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_assignTo.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_assignTo.cs deleted file mode 100644 index eb72274..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_assignTo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum RestorePostResponse_fields_fieldContent_advancedSettings_identifier_assignTo - #pragma warning restore CS1591 - { - [EnumMember(Value = "NEW_ASSETS_ONLY")] - #pragma warning disable CS1591 - NEW_ASSETS_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "NEW_AND_EXISTING_ASSETS")] - #pragma warning disable CS1591 - NEW_AND_EXISTING_ASSETS, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_scope.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_scope.cs deleted file mode 100644 index bf93302..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_scope.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum RestorePostResponse_fields_fieldContent_advancedSettings_identifier_scope - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "GLOBAL")] - #pragma warning disable CS1591 - GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_type.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_type.cs deleted file mode 100644 index fd03780..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_type.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum RestorePostResponse_fields_fieldContent_advancedSettings_identifier_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - [EnumMember(Value = "SEQUENCE")] - #pragma warning disable CS1591 - SEQUENCE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_ipAddressType.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_ipAddressType.cs deleted file mode 100644 index 9c3a379..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_ipAddressType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum RestorePostResponse_fields_fieldContent_advancedSettings_ipAddressType - #pragma warning restore CS1591 - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV4")] - #pragma warning disable CS1591 - IPV4, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV6")] - #pragma warning disable CS1591 - IPV6, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_monetary.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_monetary.cs deleted file mode 100644 index 15ff018..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_monetary.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestorePostResponse_fields_fieldContent_advancedSettings_monetary : 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 currency property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_monetary_currency? Currency { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields_fieldContent_advancedSettings_monetary() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_monetary CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_monetary(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "currency", n => { Currency = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("currency", Currency); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_monetary_currency.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_monetary_currency.cs deleted file mode 100644 index 0feb4b5..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_monetary_currency.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum RestorePostResponse_fields_fieldContent_advancedSettings_monetary_currency - #pragma warning restore CS1591 - { - [EnumMember(Value = "USD")] - #pragma warning disable CS1591 - USD, - #pragma warning restore CS1591 - [EnumMember(Value = "EUR")] - #pragma warning disable CS1591 - EUR, - #pragma warning restore CS1591 - [EnumMember(Value = "CAD")] - #pragma warning disable CS1591 - CAD, - #pragma warning restore CS1591 - [EnumMember(Value = "GBP")] - #pragma warning disable CS1591 - GBP, - #pragma warning restore CS1591 - [EnumMember(Value = "AUD")] - #pragma warning disable CS1591 - AUD, - #pragma warning restore CS1591 - [EnumMember(Value = "JPY")] - #pragma warning disable CS1591 - JPY, - #pragma warning restore CS1591 - [EnumMember(Value = "SEK")] - #pragma warning disable CS1591 - SEK, - #pragma warning restore CS1591 - [EnumMember(Value = "NOK")] - #pragma warning disable CS1591 - NOK, - #pragma warning restore CS1591 - [EnumMember(Value = "DKK")] - #pragma warning disable CS1591 - DKK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHF")] - #pragma warning disable CS1591 - CHF, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_nodeClass.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_nodeClass.cs deleted file mode 100644 index ce107b8..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_nodeClass.cs +++ /dev/null @@ -1,144 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum RestorePostResponse_fields_fieldContent_advancedSettings_nodeClass - #pragma warning restore CS1591 - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_numericRange.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_numericRange.cs deleted file mode 100644 index 675bd91..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_numericRange.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestorePostResponse_fields_fieldContent_advancedSettings_numericRange : 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 max property - public double? Max { get; set; } - /// The min property - public double? Min { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields_fieldContent_advancedSettings_numericRange() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_numericRange CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_numericRange(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "max", n => { Max = n.GetDoubleValue(); } }, - { "min", n => { Min = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("max", Max); - writer.WriteDoubleValue("min", Min); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_values.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_values.cs deleted file mode 100644 index b6639b9..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldContent_values.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - /// - /// Used for dropdown options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestorePostResponse_fields_fieldContent_values : IAdditionalDataHolder, IParsable - { - /// Indicates if a dropdown option is active - public bool? Active { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Identifier - public Guid? Id { get; set; } - /// Dropdown option name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields_fieldContent_values() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_values CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse_fields_fieldContent_values(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldScriptPermission.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldScriptPermission.cs deleted file mode 100644 index 99b36ec..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldScriptPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - /// Field script permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RestorePostResponse_fields_fieldScriptPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldTechnicianPermission.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldTechnicianPermission.cs deleted file mode 100644 index e4e033a..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldTechnicianPermission.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - /// Field technician permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RestorePostResponse_fields_fieldTechnicianPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "EDITABLE")] - #pragma warning disable CS1591 - EDITABLE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldType.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldType.cs deleted file mode 100644 index 716a09a..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_fieldType.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - /// Field type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RestorePostResponse_fields_fieldType - { - [EnumMember(Value = "DROPDOWN")] - #pragma warning disable CS1591 - DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "MULTI_SELECT")] - #pragma warning disable CS1591 - MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKBOX")] - #pragma warning disable CS1591 - CHECKBOX, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT")] - #pragma warning disable CS1591 - TEXT, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_MULTILINE")] - #pragma warning disable CS1591 - TEXT_MULTILINE, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_ENCRYPTED")] - #pragma warning disable CS1591 - TEXT_ENCRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NUMERIC")] - #pragma warning disable CS1591 - NUMERIC, - #pragma warning restore CS1591 - [EnumMember(Value = "DECIMAL")] - #pragma warning disable CS1591 - DECIMAL, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE")] - #pragma warning disable CS1591 - DATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE_TIME")] - #pragma warning disable CS1591 - DATE_TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "TIME")] - #pragma warning disable CS1591 - TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_DROPDOWN")] - #pragma warning disable CS1591 - NODE_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MULTI_SELECT")] - #pragma warning disable CS1591 - NODE_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_LOCATION_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_LOCATION_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "EMAIL")] - #pragma warning disable CS1591 - EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "PHONE")] - #pragma warning disable CS1591 - PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "IP_ADDRESS")] - #pragma warning disable CS1591 - IP_ADDRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "WYSIWYG")] - #pragma warning disable CS1591 - WYSIWYG, - #pragma warning restore CS1591 - [EnumMember(Value = "URL")] - #pragma warning disable CS1591 - URL, - #pragma warning restore CS1591 - [EnumMember(Value = "MONETARY")] - #pragma warning disable CS1591 - MONETARY, - #pragma warning restore CS1591 - [EnumMember(Value = "IDENTIFIER")] - #pragma warning disable CS1591 - IDENTIFIER, - #pragma warning restore CS1591 - [EnumMember(Value = "TOTP")] - #pragma warning disable CS1591 - TOTP, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_uiElementType.cs b/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_uiElementType.cs deleted file mode 100644 index 816a132..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestorePostResponse_fields_uiElementType.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - /// UI element type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RestorePostResponse_fields_uiElementType - { - [EnumMember(Value = "TITLE")] - #pragma warning disable CS1591 - TITLE, - #pragma warning restore CS1591 - [EnumMember(Value = "DESCRIPTION")] - #pragma warning disable CS1591 - DESCRIPTION, - #pragma warning restore CS1591 - [EnumMember(Value = "SEPARATOR")] - #pragma warning disable CS1591 - SEPARATOR, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/Restore/RestoreRequestBuilder.cs b/V2/DocumentTemplates/Item/Restore/RestoreRequestBuilder.cs deleted file mode 100644 index f28a184..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestoreRequestBuilder.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - /// - /// Builds and executes requests for operations under \v2\document-templates\{documentTemplateId}\restore - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestoreRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/document-templates/{documentTemplateId}/restore", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/document-templates/{documentTemplateId}/restore", rawUrl) - { - } - /// - /// Restores a document template by id - /// - /// 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 PostAsRestorePostResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsRestorePostResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Restores a document template by id - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsRestorePostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestoreResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Restores a document template by id - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestoreRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestoreRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestoreRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/Restore/RestoreResponse.cs b/V2/DocumentTemplates/Item/Restore/RestoreResponse.cs deleted file mode 100644 index bf91ba6..0000000 --- a/V2/DocumentTemplates/Item/Restore/RestoreResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item.Restore -{ - [Obsolete("This class is obsolete. Use RestorePostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestoreResponse : global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestorePostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestoreResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestoreResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse.cs deleted file mode 100644 index bcddd81..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse.cs +++ /dev/null @@ -1,137 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplateGetResponse : 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; } - /// List of allowed technician role ids -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AllowedTechnicianRoles { get; set; } -#nullable restore -#else - public List AllowedTechnicianRoles { get; set; } -#endif - /// Indicates if multiple instances of the document template is allowed - public bool? AllowMultiple { get; set; } - /// Indicates if the document template is archived - public bool? Archived { get; set; } - /// Indicates who archived the template -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_archivedBy? ArchivedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_archivedBy ArchivedBy { get; set; } -#endif - /// Indicates the time the template was archived - public double? ArchivedTime { get; set; } - /// Indicates if the document template is available to all technicians - public bool? AvailableToAllTechnicians { get; set; } - /// Creation time - public double? CreateTime { get; set; } - /// Description of the template -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Document template fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// Identifier - public int? Id { get; set; } - /// Indicates if the document template is mandatory - public bool? Mandatory { get; set; } - /// Name of the template (must be unique) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Last updated time - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplateGetResponse() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "allowMultiple", n => { AllowMultiple = n.GetBoolValue(); } }, - { "allowedTechnicianRoles", n => { AllowedTechnicianRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "archived", n => { Archived = n.GetBoolValue(); } }, - { "archivedBy", n => { ArchivedBy = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_archivedBy.CreateFromDiscriminatorValue); } }, - { "archivedTime", n => { ArchivedTime = n.GetDoubleValue(); } }, - { "availableToAllTechnicians", n => { AvailableToAllTechnicians = n.GetBoolValue(); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "mandatory", n => { Mandatory = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("allowedTechnicianRoles", AllowedTechnicianRoles); - writer.WriteBoolValue("allowMultiple", AllowMultiple); - writer.WriteBoolValue("archived", Archived); - writer.WriteObjectValue("archivedBy", ArchivedBy); - writer.WriteDoubleValue("archivedTime", ArchivedTime); - writer.WriteBoolValue("availableToAllTechnicians", AvailableToAllTechnicians); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("description", Description); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("mandatory", Mandatory); - writer.WriteStringValue("name", Name); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_archivedBy.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_archivedBy.cs deleted file mode 100644 index 3accaaa..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_archivedBy.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// - /// Indicates who archived the template - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithDocumentTemplateGetResponse_archivedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The displayName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplateGetResponse_archivedBy() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_archivedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_archivedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteIntValue("id", Id); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields.cs deleted file mode 100644 index 2f45ca6..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields.cs +++ /dev/null @@ -1,162 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// - /// Document template fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithDocumentTemplateGetResponse_fields : 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; } - /// Creation time - public double? CreatedTime { get; set; } - /// Field public API permission - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldApiPermission? FieldApiPermission { get; set; } - /// Field content -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent? FieldContent { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent FieldContent { get; set; } -#endif - /// Default value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldDefaultValue { get; set; } -#nullable restore -#else - public string FieldDefaultValue { get; set; } -#endif - /// Field description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldDescription { get; set; } -#nullable restore -#else - public string FieldDescription { get; set; } -#endif - /// Field identifier - public int? FieldId { get; set; } - /// Field or UI element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldLabel { get; set; } -#nullable restore -#else - public string FieldLabel { get; set; } -#endif - /// Field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Field script permission - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldScriptPermission? FieldScriptPermission { get; set; } - /// Field technician permission - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldTechnicianPermission? FieldTechnicianPermission { get; set; } - /// Field type - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldType? FieldType { get; set; } - /// UI element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementName { get; set; } -#nullable restore -#else - public string UiElementName { get; set; } -#endif - /// UI element type - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_uiElementType? UiElementType { get; set; } - /// UI element identifier - public Guid? UiElementUid { get; set; } - /// UI element value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementValue { get; set; } -#nullable restore -#else - public string UiElementValue { get; set; } -#endif - /// Last updated time - public double? UpdatedTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplateGetResponse_fields() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createdTime", n => { CreatedTime = n.GetDoubleValue(); } }, - { "fieldApiPermission", n => { FieldApiPermission = n.GetEnumValue(); } }, - { "fieldContent", n => { FieldContent = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent.CreateFromDiscriminatorValue); } }, - { "fieldDefaultValue", n => { FieldDefaultValue = n.GetStringValue(); } }, - { "fieldDescription", n => { FieldDescription = n.GetStringValue(); } }, - { "fieldId", n => { FieldId = n.GetIntValue(); } }, - { "fieldLabel", n => { FieldLabel = n.GetStringValue(); } }, - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "fieldScriptPermission", n => { FieldScriptPermission = n.GetEnumValue(); } }, - { "fieldTechnicianPermission", n => { FieldTechnicianPermission = n.GetEnumValue(); } }, - { "fieldType", n => { FieldType = n.GetEnumValue(); } }, - { "uiElementName", n => { UiElementName = n.GetStringValue(); } }, - { "uiElementType", n => { UiElementType = n.GetEnumValue(); } }, - { "uiElementUid", n => { UiElementUid = n.GetGuidValue(); } }, - { "uiElementValue", n => { UiElementValue = n.GetStringValue(); } }, - { "updatedTime", n => { UpdatedTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("createdTime", CreatedTime); - writer.WriteEnumValue("fieldApiPermission", FieldApiPermission); - writer.WriteObjectValue("fieldContent", FieldContent); - writer.WriteStringValue("fieldDefaultValue", FieldDefaultValue); - writer.WriteStringValue("fieldDescription", FieldDescription); - writer.WriteIntValue("fieldId", FieldId); - writer.WriteStringValue("fieldLabel", FieldLabel); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("fieldScriptPermission", FieldScriptPermission); - writer.WriteEnumValue("fieldTechnicianPermission", FieldTechnicianPermission); - writer.WriteEnumValue("fieldType", FieldType); - writer.WriteStringValue("uiElementName", UiElementName); - writer.WriteEnumValue("uiElementType", UiElementType); - writer.WriteGuidValue("uiElementUid", UiElementUid); - writer.WriteStringValue("uiElementValue", UiElementValue); - writer.WriteDoubleValue("updatedTime", UpdatedTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldApiPermission.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldApiPermission.cs deleted file mode 100644 index f9e1f7b..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldApiPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// Field public API permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithDocumentTemplateGetResponse_fields_fieldApiPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent.cs deleted file mode 100644 index 6d4e0f3..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// - /// Field content - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithDocumentTemplateGetResponse_fields_fieldContent : 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; } - /// The advancedSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings? AdvancedSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings AdvancedSettings { get; set; } -#endif - /// Footer text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FooterText { get; set; } -#nullable restore -#else - public string FooterText { get; set; } -#endif - /// Indicates if the field is required - public bool? Required { get; set; } - /// Tooltip text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TooltipText { get; set; } -#nullable restore -#else - public string TooltipText { get; set; } -#endif - /// Used for dropdown options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplateGetResponse_fields_fieldContent() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "advancedSettings", n => { AdvancedSettings = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings.CreateFromDiscriminatorValue); } }, - { "footerText", n => { FooterText = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tooltipText", n => { TooltipText = n.GetStringValue(); } }, - { "values", n => { Values = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_values.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("advancedSettings", AdvancedSettings); - writer.WriteStringValue("footerText", FooterText); - writer.WriteBoolValue("required", Required); - writer.WriteStringValue("tooltipText", TooltipText); - writer.WriteCollectionOfObjectValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings.cs deleted file mode 100644 index 77ae407..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings : 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 complexityRules property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_complexityRules? ComplexityRules { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_complexityRules ComplexityRules { get; set; } -#endif - /// The dateFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_dateFilters? DateFilters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_dateFilters DateFilters { get; set; } -#endif - /// The expandLargeValueOnRender property - public bool? ExpandLargeValueOnRender { get; set; } - /// The fileExtensions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FileExtensions { get; set; } -#nullable restore -#else - public List FileExtensions { get; set; } -#endif - /// The fileMaxSize property - public int? FileMaxSize { get; set; } - /// The identifier property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier? Identifier { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier Identifier { get; set; } -#endif - /// The ipAddressType property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_ipAddressType? IpAddressType { get; set; } - /// The maxCharacters property - public int? MaxCharacters { get; set; } - /// The monetary property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_monetary? Monetary { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_monetary Monetary { get; set; } -#endif - /// The nodeClass property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? NodeClass { get; set; } -#nullable restore -#else - public List NodeClass { get; set; } -#endif - /// The numericRange property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_numericRange? NumericRange { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_numericRange NumericRange { get; set; } -#endif - /// The org property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Org { get; set; } -#nullable restore -#else - public List Org { get; set; } -#endif - /// The templates property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Templates { get; set; } -#nullable restore -#else - public List Templates { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "complexityRules", n => { ComplexityRules = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_complexityRules.CreateFromDiscriminatorValue); } }, - { "dateFilters", n => { DateFilters = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_dateFilters.CreateFromDiscriminatorValue); } }, - { "expandLargeValueOnRender", n => { ExpandLargeValueOnRender = n.GetBoolValue(); } }, - { "fileExtensions", n => { FileExtensions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "fileMaxSize", n => { FileMaxSize = n.GetIntValue(); } }, - { "identifier", n => { Identifier = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier.CreateFromDiscriminatorValue); } }, - { "ipAddressType", n => { IpAddressType = n.GetEnumValue(); } }, - { "maxCharacters", n => { MaxCharacters = n.GetIntValue(); } }, - { "monetary", n => { Monetary = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_monetary.CreateFromDiscriminatorValue); } }, - { "nodeClass", n => { NodeClass = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "numericRange", n => { NumericRange = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_numericRange.CreateFromDiscriminatorValue); } }, - { "org", n => { Org = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "templates", n => { Templates = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("complexityRules", ComplexityRules); - writer.WriteObjectValue("dateFilters", DateFilters); - writer.WriteBoolValue("expandLargeValueOnRender", ExpandLargeValueOnRender); - writer.WriteCollectionOfPrimitiveValues("fileExtensions", FileExtensions); - writer.WriteIntValue("fileMaxSize", FileMaxSize); - writer.WriteObjectValue("identifier", Identifier); - writer.WriteEnumValue("ipAddressType", IpAddressType); - writer.WriteIntValue("maxCharacters", MaxCharacters); - writer.WriteObjectValue("monetary", Monetary); - writer.WriteCollectionOfEnumValues("nodeClass", NodeClass); - writer.WriteObjectValue("numericRange", NumericRange); - writer.WriteCollectionOfPrimitiveValues("org", Org); - writer.WriteCollectionOfPrimitiveValues("templates", Templates); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_complexityRules.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_complexityRules.cs deleted file mode 100644 index ceb38c1..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_complexityRules.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_complexityRules : 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 greaterOrEqualThanSixCharacters property - public bool? GreaterOrEqualThanSixCharacters { get; set; } - /// The mustContainOneInteger property - public bool? MustContainOneInteger { get; set; } - /// The mustContainOneLowercaseLetter property - public bool? MustContainOneLowercaseLetter { get; set; } - /// The mustContainOneUppercaseLetter property - public bool? MustContainOneUppercaseLetter { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_complexityRules() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_complexityRules CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_complexityRules(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "greaterOrEqualThanSixCharacters", n => { GreaterOrEqualThanSixCharacters = n.GetBoolValue(); } }, - { "mustContainOneInteger", n => { MustContainOneInteger = n.GetBoolValue(); } }, - { "mustContainOneLowercaseLetter", n => { MustContainOneLowercaseLetter = n.GetBoolValue(); } }, - { "mustContainOneUppercaseLetter", n => { MustContainOneUppercaseLetter = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("greaterOrEqualThanSixCharacters", GreaterOrEqualThanSixCharacters); - writer.WriteBoolValue("mustContainOneInteger", MustContainOneInteger); - writer.WriteBoolValue("mustContainOneLowercaseLetter", MustContainOneLowercaseLetter); - writer.WriteBoolValue("mustContainOneUppercaseLetter", MustContainOneUppercaseLetter); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_dateFilters.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_dateFilters.cs deleted file mode 100644 index 25b62ca..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_dateFilters.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_dateFilters : 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 selected property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Selected { get; set; } -#nullable restore -#else - public List Selected { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_dateFilters_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_dateFilters() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_dateFilters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_dateFilters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "selected", n => { Selected = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("selected", Selected); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_dateFilters_type.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_dateFilters_type.cs deleted file mode 100644 index aa44837..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_dateFilters_type.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_dateFilters_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "INCLUDE")] - #pragma warning disable CS1591 - INCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "EXCLUDE")] - #pragma warning disable CS1591 - EXCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "PAST_DATES_ONLY")] - #pragma warning disable CS1591 - PAST_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "FUTURE_DATES_ONLY")] - #pragma warning disable CS1591 - FUTURE_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "RANGE")] - #pragma warning disable CS1591 - RANGE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier.cs deleted file mode 100644 index 08963c6..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier : 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 assignTo property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier_assignTo? AssignTo { get; set; } - /// The automaticGenerationEnabled property - public bool? AutomaticGenerationEnabled { get; set; } - /// The nextSequenceNumber property - public long? NextSequenceNumber { get; set; } - /// The prefix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Prefix { get; set; } -#nullable restore -#else - public string Prefix { get; set; } -#endif - /// The scope property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier_scope? Scope { get; set; } - /// The suffix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Suffix { get; set; } -#nullable restore -#else - public string Suffix { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignTo", n => { AssignTo = n.GetEnumValue(); } }, - { "automaticGenerationEnabled", n => { AutomaticGenerationEnabled = n.GetBoolValue(); } }, - { "nextSequenceNumber", n => { NextSequenceNumber = n.GetLongValue(); } }, - { "prefix", n => { Prefix = n.GetStringValue(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - { "suffix", n => { Suffix = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignTo", AssignTo); - writer.WriteBoolValue("automaticGenerationEnabled", AutomaticGenerationEnabled); - writer.WriteLongValue("nextSequenceNumber", NextSequenceNumber); - writer.WriteStringValue("prefix", Prefix); - writer.WriteEnumValue("scope", Scope); - writer.WriteStringValue("suffix", Suffix); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier_assignTo.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier_assignTo.cs deleted file mode 100644 index 4a364b0..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier_assignTo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier_assignTo - #pragma warning restore CS1591 - { - [EnumMember(Value = "NEW_ASSETS_ONLY")] - #pragma warning disable CS1591 - NEW_ASSETS_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "NEW_AND_EXISTING_ASSETS")] - #pragma warning disable CS1591 - NEW_AND_EXISTING_ASSETS, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier_scope.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier_scope.cs deleted file mode 100644 index 1540948..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier_scope.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier_scope - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "GLOBAL")] - #pragma warning disable CS1591 - GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier_type.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier_type.cs deleted file mode 100644 index 6797651..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier_type.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_identifier_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - [EnumMember(Value = "SEQUENCE")] - #pragma warning disable CS1591 - SEQUENCE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_ipAddressType.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_ipAddressType.cs deleted file mode 100644 index a163fa6..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_ipAddressType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_ipAddressType - #pragma warning restore CS1591 - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV4")] - #pragma warning disable CS1591 - IPV4, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV6")] - #pragma warning disable CS1591 - IPV6, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_monetary.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_monetary.cs deleted file mode 100644 index a52ed14..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_monetary.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_monetary : 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 currency property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_monetary_currency? Currency { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_monetary() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_monetary CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_monetary(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "currency", n => { Currency = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("currency", Currency); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_monetary_currency.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_monetary_currency.cs deleted file mode 100644 index e9cac89..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_monetary_currency.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_monetary_currency - #pragma warning restore CS1591 - { - [EnumMember(Value = "USD")] - #pragma warning disable CS1591 - USD, - #pragma warning restore CS1591 - [EnumMember(Value = "EUR")] - #pragma warning disable CS1591 - EUR, - #pragma warning restore CS1591 - [EnumMember(Value = "CAD")] - #pragma warning disable CS1591 - CAD, - #pragma warning restore CS1591 - [EnumMember(Value = "GBP")] - #pragma warning disable CS1591 - GBP, - #pragma warning restore CS1591 - [EnumMember(Value = "AUD")] - #pragma warning disable CS1591 - AUD, - #pragma warning restore CS1591 - [EnumMember(Value = "JPY")] - #pragma warning disable CS1591 - JPY, - #pragma warning restore CS1591 - [EnumMember(Value = "SEK")] - #pragma warning disable CS1591 - SEK, - #pragma warning restore CS1591 - [EnumMember(Value = "NOK")] - #pragma warning disable CS1591 - NOK, - #pragma warning restore CS1591 - [EnumMember(Value = "DKK")] - #pragma warning disable CS1591 - DKK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHF")] - #pragma warning disable CS1591 - CHF, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_nodeClass.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_nodeClass.cs deleted file mode 100644 index a229778..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_nodeClass.cs +++ /dev/null @@ -1,144 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_nodeClass - #pragma warning restore CS1591 - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_numericRange.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_numericRange.cs deleted file mode 100644 index 371096a..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_numericRange.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_numericRange : 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 max property - public double? Max { get; set; } - /// The min property - public double? Min { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_numericRange() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_numericRange CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_advancedSettings_numericRange(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "max", n => { Max = n.GetDoubleValue(); } }, - { "min", n => { Min = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("max", Max); - writer.WriteDoubleValue("min", Min); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_values.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_values.cs deleted file mode 100644 index f780366..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldContent_values.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// - /// Used for dropdown options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithDocumentTemplateGetResponse_fields_fieldContent_values : IAdditionalDataHolder, IParsable - { - /// Indicates if a dropdown option is active - public bool? Active { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Identifier - public Guid? Id { get; set; } - /// Dropdown option name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplateGetResponse_fields_fieldContent_values() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_values CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse_fields_fieldContent_values(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldScriptPermission.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldScriptPermission.cs deleted file mode 100644 index 9af3a7d..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldScriptPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// Field script permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithDocumentTemplateGetResponse_fields_fieldScriptPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldTechnicianPermission.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldTechnicianPermission.cs deleted file mode 100644 index 415c0a6..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldTechnicianPermission.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// Field technician permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithDocumentTemplateGetResponse_fields_fieldTechnicianPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "EDITABLE")] - #pragma warning disable CS1591 - EDITABLE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldType.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldType.cs deleted file mode 100644 index 0584bb2..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_fieldType.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// Field type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithDocumentTemplateGetResponse_fields_fieldType - { - [EnumMember(Value = "DROPDOWN")] - #pragma warning disable CS1591 - DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "MULTI_SELECT")] - #pragma warning disable CS1591 - MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKBOX")] - #pragma warning disable CS1591 - CHECKBOX, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT")] - #pragma warning disable CS1591 - TEXT, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_MULTILINE")] - #pragma warning disable CS1591 - TEXT_MULTILINE, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_ENCRYPTED")] - #pragma warning disable CS1591 - TEXT_ENCRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NUMERIC")] - #pragma warning disable CS1591 - NUMERIC, - #pragma warning restore CS1591 - [EnumMember(Value = "DECIMAL")] - #pragma warning disable CS1591 - DECIMAL, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE")] - #pragma warning disable CS1591 - DATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE_TIME")] - #pragma warning disable CS1591 - DATE_TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "TIME")] - #pragma warning disable CS1591 - TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_DROPDOWN")] - #pragma warning disable CS1591 - NODE_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MULTI_SELECT")] - #pragma warning disable CS1591 - NODE_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_LOCATION_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_LOCATION_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "EMAIL")] - #pragma warning disable CS1591 - EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "PHONE")] - #pragma warning disable CS1591 - PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "IP_ADDRESS")] - #pragma warning disable CS1591 - IP_ADDRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "WYSIWYG")] - #pragma warning disable CS1591 - WYSIWYG, - #pragma warning restore CS1591 - [EnumMember(Value = "URL")] - #pragma warning disable CS1591 - URL, - #pragma warning restore CS1591 - [EnumMember(Value = "MONETARY")] - #pragma warning disable CS1591 - MONETARY, - #pragma warning restore CS1591 - [EnumMember(Value = "IDENTIFIER")] - #pragma warning disable CS1591 - IDENTIFIER, - #pragma warning restore CS1591 - [EnumMember(Value = "TOTP")] - #pragma warning disable CS1591 - TOTP, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_uiElementType.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_uiElementType.cs deleted file mode 100644 index 3b8fff1..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateGetResponse_fields_uiElementType.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// UI element type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithDocumentTemplateGetResponse_fields_uiElementType - { - [EnumMember(Value = "TITLE")] - #pragma warning disable CS1591 - TITLE, - #pragma warning restore CS1591 - [EnumMember(Value = "DESCRIPTION")] - #pragma warning disable CS1591 - DESCRIPTION, - #pragma warning restore CS1591 - [EnumMember(Value = "SEPARATOR")] - #pragma warning disable CS1591 - SEPARATOR, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateItemRequestBuilder.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateItemRequestBuilder.cs deleted file mode 100644 index a0da807..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateItemRequestBuilder.cs +++ /dev/null @@ -1,246 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.DocumentTemplates.Item.Archive; -using NinjaOne.Client.V2.DocumentTemplates.Item.Restore; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// - /// Builds and executes requests for operations under \v2\document-templates\{documentTemplateId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithDocumentTemplateItemRequestBuilder : BaseRequestBuilder - { - /// The archive property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Archive.ArchiveRequestBuilder Archive - { - get => new global::NinjaOne.Client.V2.DocumentTemplates.Item.Archive.ArchiveRequestBuilder(PathParameters, RequestAdapter); - } - /// The restore property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestoreRequestBuilder Restore - { - get => new global::NinjaOne.Client.V2.DocumentTemplates.Item.Restore.RestoreRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithDocumentTemplateItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/document-templates/{documentTemplateId}{?includeTechnicianRoles*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithDocumentTemplateItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/document-templates/{documentTemplateId}{?includeTechnicianRoles*}", rawUrl) - { - } - /// - /// Deletes a document template by id - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get document template - /// - /// 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 GetAsWithDocumentTemplateGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsWithDocumentTemplateGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get document template - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use GetAsWithDocumentTemplateGetResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Updates a document template by id - /// - /// A - /// The request body - /// 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 PutAsWithDocumentTemplatePutResponseAsync(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PutAsWithDocumentTemplatePutResponseAsync(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Updates a document template by id - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PutAsWithDocumentTemplatePutResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PutAsync(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PutAsync(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Deletes a document template by id - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Get document template - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Updates a document template by id - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithDocumentTemplateItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - /// - /// Get document template - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithDocumentTemplateItemRequestBuilderGetQueryParameters - { - /// Includes allowed technician roles. - [QueryParameter("includeTechnicianRoles")] - public bool? IncludeTechnicianRoles { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithDocumentTemplateItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithDocumentTemplateItemRequestBuilderPutRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody.cs deleted file mode 100644 index 833af3e..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplatePutRequestBody : 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; } - /// List of allowed technician role ids -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AllowedTechnicianRoles { get; set; } -#nullable restore -#else - public List AllowedTechnicianRoles { get; set; } -#endif - /// States if the document template is available to all technicians - public bool? AvailableToAllTechnicians { get; set; } - /// Description of the template -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// List of fields and ui elements -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// Indicates if the document template is mandatory - public bool? Mandatory { get; set; } - /// Name of the template (must be unique) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutRequestBody() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "allowedTechnicianRoles", n => { AllowedTechnicianRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "availableToAllTechnicians", n => { AvailableToAllTechnicians = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "mandatory", n => { Mandatory = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("allowedTechnicianRoles", AllowedTechnicianRoles); - writer.WriteBoolValue("availableToAllTechnicians", AvailableToAllTechnicians); - writer.WriteStringValue("description", Description); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteBoolValue("mandatory", Mandatory); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields.cs deleted file mode 100644 index 41af661..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields.cs +++ /dev/null @@ -1,154 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// - /// List of fields and ui elements - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithDocumentTemplatePutRequestBody_fields : 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; } - /// Field public API permission - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldApiPermission? FieldApiPermission { get; set; } - /// Field content -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent? FieldContent { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent FieldContent { get; set; } -#endif - /// Default value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldDefaultValue { get; set; } -#nullable restore -#else - public string FieldDefaultValue { get; set; } -#endif - /// Field description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldDescription { get; set; } -#nullable restore -#else - public string FieldDescription { get; set; } -#endif - /// Field identifier (Used to identify existing fields) - public int? FieldId { get; set; } - /// Field or UI element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldLabel { get; set; } -#nullable restore -#else - public string FieldLabel { get; set; } -#endif - /// Field name (Immutable except for new fields) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Field script permission - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldScriptPermission? FieldScriptPermission { get; set; } - /// Field technician permission - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldTechnicianPermission? FieldTechnicianPermission { get; set; } - /// Field type (Immutable except for new fields) - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldType? FieldType { get; set; } - /// UI element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementName { get; set; } -#nullable restore -#else - public string UiElementName { get; set; } -#endif - /// UI element type - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_uiElementType? UiElementType { get; set; } - /// UI element identifier - public Guid? UiElementUid { get; set; } - /// UI element value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementValue { get; set; } -#nullable restore -#else - public string UiElementValue { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutRequestBody_fields() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "fieldApiPermission", n => { FieldApiPermission = n.GetEnumValue(); } }, - { "fieldContent", n => { FieldContent = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent.CreateFromDiscriminatorValue); } }, - { "fieldDefaultValue", n => { FieldDefaultValue = n.GetStringValue(); } }, - { "fieldDescription", n => { FieldDescription = n.GetStringValue(); } }, - { "fieldId", n => { FieldId = n.GetIntValue(); } }, - { "fieldLabel", n => { FieldLabel = n.GetStringValue(); } }, - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "fieldScriptPermission", n => { FieldScriptPermission = n.GetEnumValue(); } }, - { "fieldTechnicianPermission", n => { FieldTechnicianPermission = n.GetEnumValue(); } }, - { "fieldType", n => { FieldType = n.GetEnumValue(); } }, - { "uiElementName", n => { UiElementName = n.GetStringValue(); } }, - { "uiElementType", n => { UiElementType = n.GetEnumValue(); } }, - { "uiElementUid", n => { UiElementUid = n.GetGuidValue(); } }, - { "uiElementValue", n => { UiElementValue = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("fieldApiPermission", FieldApiPermission); - writer.WriteObjectValue("fieldContent", FieldContent); - writer.WriteStringValue("fieldDefaultValue", FieldDefaultValue); - writer.WriteStringValue("fieldDescription", FieldDescription); - writer.WriteIntValue("fieldId", FieldId); - writer.WriteStringValue("fieldLabel", FieldLabel); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("fieldScriptPermission", FieldScriptPermission); - writer.WriteEnumValue("fieldTechnicianPermission", FieldTechnicianPermission); - writer.WriteEnumValue("fieldType", FieldType); - writer.WriteStringValue("uiElementName", UiElementName); - writer.WriteEnumValue("uiElementType", UiElementType); - writer.WriteGuidValue("uiElementUid", UiElementUid); - writer.WriteStringValue("uiElementValue", UiElementValue); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldApiPermission.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldApiPermission.cs deleted file mode 100644 index 11ff2f8..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldApiPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// Field public API permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithDocumentTemplatePutRequestBody_fields_fieldApiPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent.cs deleted file mode 100644 index 2bf899c..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// - /// Field content - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithDocumentTemplatePutRequestBody_fields_fieldContent : 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; } - /// The advancedSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings? AdvancedSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings AdvancedSettings { get; set; } -#endif - /// Footer text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FooterText { get; set; } -#nullable restore -#else - public string FooterText { get; set; } -#endif - /// Indicates if the field is required - public bool? Required { get; set; } - /// Tooltip text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TooltipText { get; set; } -#nullable restore -#else - public string TooltipText { get; set; } -#endif - /// Used for dropdown options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutRequestBody_fields_fieldContent() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "advancedSettings", n => { AdvancedSettings = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings.CreateFromDiscriminatorValue); } }, - { "footerText", n => { FooterText = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tooltipText", n => { TooltipText = n.GetStringValue(); } }, - { "values", n => { Values = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_values.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("advancedSettings", AdvancedSettings); - writer.WriteStringValue("footerText", FooterText); - writer.WriteBoolValue("required", Required); - writer.WriteStringValue("tooltipText", TooltipText); - writer.WriteCollectionOfObjectValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings.cs deleted file mode 100644 index 29109a1..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings : 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 complexityRules property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_complexityRules? ComplexityRules { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_complexityRules ComplexityRules { get; set; } -#endif - /// The dateFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_dateFilters? DateFilters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_dateFilters DateFilters { get; set; } -#endif - /// The expandLargeValueOnRender property - public bool? ExpandLargeValueOnRender { get; set; } - /// The fileExtensions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FileExtensions { get; set; } -#nullable restore -#else - public List FileExtensions { get; set; } -#endif - /// The fileMaxSize property - public int? FileMaxSize { get; set; } - /// The identifier property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier? Identifier { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier Identifier { get; set; } -#endif - /// The ipAddressType property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_ipAddressType? IpAddressType { get; set; } - /// The maxCharacters property - public int? MaxCharacters { get; set; } - /// The monetary property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_monetary? Monetary { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_monetary Monetary { get; set; } -#endif - /// The nodeClass property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? NodeClass { get; set; } -#nullable restore -#else - public List NodeClass { get; set; } -#endif - /// The numericRange property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_numericRange? NumericRange { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_numericRange NumericRange { get; set; } -#endif - /// The org property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Org { get; set; } -#nullable restore -#else - public List Org { get; set; } -#endif - /// The templates property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Templates { get; set; } -#nullable restore -#else - public List Templates { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "complexityRules", n => { ComplexityRules = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_complexityRules.CreateFromDiscriminatorValue); } }, - { "dateFilters", n => { DateFilters = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_dateFilters.CreateFromDiscriminatorValue); } }, - { "expandLargeValueOnRender", n => { ExpandLargeValueOnRender = n.GetBoolValue(); } }, - { "fileExtensions", n => { FileExtensions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "fileMaxSize", n => { FileMaxSize = n.GetIntValue(); } }, - { "identifier", n => { Identifier = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier.CreateFromDiscriminatorValue); } }, - { "ipAddressType", n => { IpAddressType = n.GetEnumValue(); } }, - { "maxCharacters", n => { MaxCharacters = n.GetIntValue(); } }, - { "monetary", n => { Monetary = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_monetary.CreateFromDiscriminatorValue); } }, - { "nodeClass", n => { NodeClass = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "numericRange", n => { NumericRange = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_numericRange.CreateFromDiscriminatorValue); } }, - { "org", n => { Org = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "templates", n => { Templates = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("complexityRules", ComplexityRules); - writer.WriteObjectValue("dateFilters", DateFilters); - writer.WriteBoolValue("expandLargeValueOnRender", ExpandLargeValueOnRender); - writer.WriteCollectionOfPrimitiveValues("fileExtensions", FileExtensions); - writer.WriteIntValue("fileMaxSize", FileMaxSize); - writer.WriteObjectValue("identifier", Identifier); - writer.WriteEnumValue("ipAddressType", IpAddressType); - writer.WriteIntValue("maxCharacters", MaxCharacters); - writer.WriteObjectValue("monetary", Monetary); - writer.WriteCollectionOfEnumValues("nodeClass", NodeClass); - writer.WriteObjectValue("numericRange", NumericRange); - writer.WriteCollectionOfPrimitiveValues("org", Org); - writer.WriteCollectionOfPrimitiveValues("templates", Templates); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_complexityRules.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_complexityRules.cs deleted file mode 100644 index 4ce3d38..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_complexityRules.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_complexityRules : 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 greaterOrEqualThanSixCharacters property - public bool? GreaterOrEqualThanSixCharacters { get; set; } - /// The mustContainOneInteger property - public bool? MustContainOneInteger { get; set; } - /// The mustContainOneLowercaseLetter property - public bool? MustContainOneLowercaseLetter { get; set; } - /// The mustContainOneUppercaseLetter property - public bool? MustContainOneUppercaseLetter { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_complexityRules() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_complexityRules CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_complexityRules(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "greaterOrEqualThanSixCharacters", n => { GreaterOrEqualThanSixCharacters = n.GetBoolValue(); } }, - { "mustContainOneInteger", n => { MustContainOneInteger = n.GetBoolValue(); } }, - { "mustContainOneLowercaseLetter", n => { MustContainOneLowercaseLetter = n.GetBoolValue(); } }, - { "mustContainOneUppercaseLetter", n => { MustContainOneUppercaseLetter = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("greaterOrEqualThanSixCharacters", GreaterOrEqualThanSixCharacters); - writer.WriteBoolValue("mustContainOneInteger", MustContainOneInteger); - writer.WriteBoolValue("mustContainOneLowercaseLetter", MustContainOneLowercaseLetter); - writer.WriteBoolValue("mustContainOneUppercaseLetter", MustContainOneUppercaseLetter); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_dateFilters.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_dateFilters.cs deleted file mode 100644 index 02c716c..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_dateFilters.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_dateFilters : 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 selected property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Selected { get; set; } -#nullable restore -#else - public List Selected { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_dateFilters_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_dateFilters() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_dateFilters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_dateFilters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "selected", n => { Selected = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("selected", Selected); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_dateFilters_type.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_dateFilters_type.cs deleted file mode 100644 index 9e7ef1c..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_dateFilters_type.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_dateFilters_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "INCLUDE")] - #pragma warning disable CS1591 - INCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "EXCLUDE")] - #pragma warning disable CS1591 - EXCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "PAST_DATES_ONLY")] - #pragma warning disable CS1591 - PAST_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "FUTURE_DATES_ONLY")] - #pragma warning disable CS1591 - FUTURE_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "RANGE")] - #pragma warning disable CS1591 - RANGE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier.cs deleted file mode 100644 index d65663f..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier : 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 assignTo property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier_assignTo? AssignTo { get; set; } - /// The automaticGenerationEnabled property - public bool? AutomaticGenerationEnabled { get; set; } - /// The nextSequenceNumber property - public long? NextSequenceNumber { get; set; } - /// The prefix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Prefix { get; set; } -#nullable restore -#else - public string Prefix { get; set; } -#endif - /// The scope property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier_scope? Scope { get; set; } - /// The suffix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Suffix { get; set; } -#nullable restore -#else - public string Suffix { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignTo", n => { AssignTo = n.GetEnumValue(); } }, - { "automaticGenerationEnabled", n => { AutomaticGenerationEnabled = n.GetBoolValue(); } }, - { "nextSequenceNumber", n => { NextSequenceNumber = n.GetLongValue(); } }, - { "prefix", n => { Prefix = n.GetStringValue(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - { "suffix", n => { Suffix = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignTo", AssignTo); - writer.WriteBoolValue("automaticGenerationEnabled", AutomaticGenerationEnabled); - writer.WriteLongValue("nextSequenceNumber", NextSequenceNumber); - writer.WriteStringValue("prefix", Prefix); - writer.WriteEnumValue("scope", Scope); - writer.WriteStringValue("suffix", Suffix); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier_assignTo.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier_assignTo.cs deleted file mode 100644 index 467514c..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier_assignTo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier_assignTo - #pragma warning restore CS1591 - { - [EnumMember(Value = "NEW_ASSETS_ONLY")] - #pragma warning disable CS1591 - NEW_ASSETS_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "NEW_AND_EXISTING_ASSETS")] - #pragma warning disable CS1591 - NEW_AND_EXISTING_ASSETS, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier_scope.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier_scope.cs deleted file mode 100644 index 4c026bf..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier_scope.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier_scope - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "GLOBAL")] - #pragma warning disable CS1591 - GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier_type.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier_type.cs deleted file mode 100644 index dff68d4..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier_type.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_identifier_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - [EnumMember(Value = "SEQUENCE")] - #pragma warning disable CS1591 - SEQUENCE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_ipAddressType.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_ipAddressType.cs deleted file mode 100644 index 6afeddb..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_ipAddressType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_ipAddressType - #pragma warning restore CS1591 - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV4")] - #pragma warning disable CS1591 - IPV4, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV6")] - #pragma warning disable CS1591 - IPV6, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_monetary.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_monetary.cs deleted file mode 100644 index 5d194a7..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_monetary.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_monetary : 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 currency property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_monetary_currency? Currency { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_monetary() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_monetary CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_monetary(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "currency", n => { Currency = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("currency", Currency); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_monetary_currency.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_monetary_currency.cs deleted file mode 100644 index 4011796..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_monetary_currency.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_monetary_currency - #pragma warning restore CS1591 - { - [EnumMember(Value = "USD")] - #pragma warning disable CS1591 - USD, - #pragma warning restore CS1591 - [EnumMember(Value = "EUR")] - #pragma warning disable CS1591 - EUR, - #pragma warning restore CS1591 - [EnumMember(Value = "CAD")] - #pragma warning disable CS1591 - CAD, - #pragma warning restore CS1591 - [EnumMember(Value = "GBP")] - #pragma warning disable CS1591 - GBP, - #pragma warning restore CS1591 - [EnumMember(Value = "AUD")] - #pragma warning disable CS1591 - AUD, - #pragma warning restore CS1591 - [EnumMember(Value = "JPY")] - #pragma warning disable CS1591 - JPY, - #pragma warning restore CS1591 - [EnumMember(Value = "SEK")] - #pragma warning disable CS1591 - SEK, - #pragma warning restore CS1591 - [EnumMember(Value = "NOK")] - #pragma warning disable CS1591 - NOK, - #pragma warning restore CS1591 - [EnumMember(Value = "DKK")] - #pragma warning disable CS1591 - DKK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHF")] - #pragma warning disable CS1591 - CHF, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_nodeClass.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_nodeClass.cs deleted file mode 100644 index 92e8e7f..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_nodeClass.cs +++ /dev/null @@ -1,144 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_nodeClass - #pragma warning restore CS1591 - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_numericRange.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_numericRange.cs deleted file mode 100644 index 27c3ad5..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_numericRange.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_numericRange : 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 max property - public double? Max { get; set; } - /// The min property - public double? Min { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_numericRange() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_numericRange CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_advancedSettings_numericRange(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "max", n => { Max = n.GetDoubleValue(); } }, - { "min", n => { Min = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("max", Max); - writer.WriteDoubleValue("min", Min); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_values.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_values.cs deleted file mode 100644 index d9a1348..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldContent_values.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// - /// Used for dropdown options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithDocumentTemplatePutRequestBody_fields_fieldContent_values : IAdditionalDataHolder, IParsable - { - /// Indicates if a dropdown option is active - public bool? Active { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Identifier - public Guid? Id { get; set; } - /// Dropdown option name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutRequestBody_fields_fieldContent_values() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_values CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutRequestBody_fields_fieldContent_values(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldScriptPermission.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldScriptPermission.cs deleted file mode 100644 index 5c2287a..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldScriptPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// Field script permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithDocumentTemplatePutRequestBody_fields_fieldScriptPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldTechnicianPermission.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldTechnicianPermission.cs deleted file mode 100644 index e736d85..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldTechnicianPermission.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// Field technician permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithDocumentTemplatePutRequestBody_fields_fieldTechnicianPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "EDITABLE")] - #pragma warning disable CS1591 - EDITABLE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldType.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldType.cs deleted file mode 100644 index 7594a47..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_fieldType.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// Field type (Immutable except for new fields) - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithDocumentTemplatePutRequestBody_fields_fieldType - { - [EnumMember(Value = "DROPDOWN")] - #pragma warning disable CS1591 - DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "MULTI_SELECT")] - #pragma warning disable CS1591 - MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKBOX")] - #pragma warning disable CS1591 - CHECKBOX, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT")] - #pragma warning disable CS1591 - TEXT, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_MULTILINE")] - #pragma warning disable CS1591 - TEXT_MULTILINE, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_ENCRYPTED")] - #pragma warning disable CS1591 - TEXT_ENCRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NUMERIC")] - #pragma warning disable CS1591 - NUMERIC, - #pragma warning restore CS1591 - [EnumMember(Value = "DECIMAL")] - #pragma warning disable CS1591 - DECIMAL, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE")] - #pragma warning disable CS1591 - DATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE_TIME")] - #pragma warning disable CS1591 - DATE_TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "TIME")] - #pragma warning disable CS1591 - TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_DROPDOWN")] - #pragma warning disable CS1591 - NODE_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MULTI_SELECT")] - #pragma warning disable CS1591 - NODE_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_LOCATION_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_LOCATION_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "EMAIL")] - #pragma warning disable CS1591 - EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "PHONE")] - #pragma warning disable CS1591 - PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "IP_ADDRESS")] - #pragma warning disable CS1591 - IP_ADDRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "WYSIWYG")] - #pragma warning disable CS1591 - WYSIWYG, - #pragma warning restore CS1591 - [EnumMember(Value = "URL")] - #pragma warning disable CS1591 - URL, - #pragma warning restore CS1591 - [EnumMember(Value = "MONETARY")] - #pragma warning disable CS1591 - MONETARY, - #pragma warning restore CS1591 - [EnumMember(Value = "IDENTIFIER")] - #pragma warning disable CS1591 - IDENTIFIER, - #pragma warning restore CS1591 - [EnumMember(Value = "TOTP")] - #pragma warning disable CS1591 - TOTP, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_uiElementType.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_uiElementType.cs deleted file mode 100644 index 699a3a4..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutRequestBody_fields_uiElementType.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// UI element type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithDocumentTemplatePutRequestBody_fields_uiElementType - { - [EnumMember(Value = "TITLE")] - #pragma warning disable CS1591 - TITLE, - #pragma warning restore CS1591 - [EnumMember(Value = "DESCRIPTION")] - #pragma warning disable CS1591 - DESCRIPTION, - #pragma warning restore CS1591 - [EnumMember(Value = "SEPARATOR")] - #pragma warning disable CS1591 - SEPARATOR, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse.cs deleted file mode 100644 index a662acd..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse.cs +++ /dev/null @@ -1,137 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplatePutResponse : 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; } - /// List of allowed technician role ids -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AllowedTechnicianRoles { get; set; } -#nullable restore -#else - public List AllowedTechnicianRoles { get; set; } -#endif - /// Indicates if multiple instances of the document template is allowed - public bool? AllowMultiple { get; set; } - /// Indicates if the document template is archived - public bool? Archived { get; set; } - /// Indicates who archived the template -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_archivedBy? ArchivedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_archivedBy ArchivedBy { get; set; } -#endif - /// Indicates the time the template was archived - public double? ArchivedTime { get; set; } - /// Indicates if the document template is available to all technicians - public bool? AvailableToAllTechnicians { get; set; } - /// Creation time - public double? CreateTime { get; set; } - /// Description of the template -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Document template fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// Identifier - public int? Id { get; set; } - /// Indicates if the document template is mandatory - public bool? Mandatory { get; set; } - /// Name of the template (must be unique) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Last updated time - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutResponse() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "allowMultiple", n => { AllowMultiple = n.GetBoolValue(); } }, - { "allowedTechnicianRoles", n => { AllowedTechnicianRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "archived", n => { Archived = n.GetBoolValue(); } }, - { "archivedBy", n => { ArchivedBy = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_archivedBy.CreateFromDiscriminatorValue); } }, - { "archivedTime", n => { ArchivedTime = n.GetDoubleValue(); } }, - { "availableToAllTechnicians", n => { AvailableToAllTechnicians = n.GetBoolValue(); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "mandatory", n => { Mandatory = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("allowedTechnicianRoles", AllowedTechnicianRoles); - writer.WriteBoolValue("allowMultiple", AllowMultiple); - writer.WriteBoolValue("archived", Archived); - writer.WriteObjectValue("archivedBy", ArchivedBy); - writer.WriteDoubleValue("archivedTime", ArchivedTime); - writer.WriteBoolValue("availableToAllTechnicians", AvailableToAllTechnicians); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("description", Description); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("mandatory", Mandatory); - writer.WriteStringValue("name", Name); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_archivedBy.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_archivedBy.cs deleted file mode 100644 index 455269e..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_archivedBy.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// - /// Indicates who archived the template - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithDocumentTemplatePutResponse_archivedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The displayName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutResponse_archivedBy() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_archivedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_archivedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteIntValue("id", Id); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields.cs deleted file mode 100644 index e7501ad..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields.cs +++ /dev/null @@ -1,162 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// - /// Document template fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithDocumentTemplatePutResponse_fields : 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; } - /// Creation time - public double? CreatedTime { get; set; } - /// Field public API permission - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldApiPermission? FieldApiPermission { get; set; } - /// Field content -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent? FieldContent { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent FieldContent { get; set; } -#endif - /// Default value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldDefaultValue { get; set; } -#nullable restore -#else - public string FieldDefaultValue { get; set; } -#endif - /// Field description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldDescription { get; set; } -#nullable restore -#else - public string FieldDescription { get; set; } -#endif - /// Field identifier - public int? FieldId { get; set; } - /// Field or UI element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldLabel { get; set; } -#nullable restore -#else - public string FieldLabel { get; set; } -#endif - /// Field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Field script permission - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldScriptPermission? FieldScriptPermission { get; set; } - /// Field technician permission - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldTechnicianPermission? FieldTechnicianPermission { get; set; } - /// Field type - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldType? FieldType { get; set; } - /// UI element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementName { get; set; } -#nullable restore -#else - public string UiElementName { get; set; } -#endif - /// UI element type - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_uiElementType? UiElementType { get; set; } - /// UI element identifier - public Guid? UiElementUid { get; set; } - /// UI element value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementValue { get; set; } -#nullable restore -#else - public string UiElementValue { get; set; } -#endif - /// Last updated time - public double? UpdatedTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutResponse_fields() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createdTime", n => { CreatedTime = n.GetDoubleValue(); } }, - { "fieldApiPermission", n => { FieldApiPermission = n.GetEnumValue(); } }, - { "fieldContent", n => { FieldContent = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent.CreateFromDiscriminatorValue); } }, - { "fieldDefaultValue", n => { FieldDefaultValue = n.GetStringValue(); } }, - { "fieldDescription", n => { FieldDescription = n.GetStringValue(); } }, - { "fieldId", n => { FieldId = n.GetIntValue(); } }, - { "fieldLabel", n => { FieldLabel = n.GetStringValue(); } }, - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "fieldScriptPermission", n => { FieldScriptPermission = n.GetEnumValue(); } }, - { "fieldTechnicianPermission", n => { FieldTechnicianPermission = n.GetEnumValue(); } }, - { "fieldType", n => { FieldType = n.GetEnumValue(); } }, - { "uiElementName", n => { UiElementName = n.GetStringValue(); } }, - { "uiElementType", n => { UiElementType = n.GetEnumValue(); } }, - { "uiElementUid", n => { UiElementUid = n.GetGuidValue(); } }, - { "uiElementValue", n => { UiElementValue = n.GetStringValue(); } }, - { "updatedTime", n => { UpdatedTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("createdTime", CreatedTime); - writer.WriteEnumValue("fieldApiPermission", FieldApiPermission); - writer.WriteObjectValue("fieldContent", FieldContent); - writer.WriteStringValue("fieldDefaultValue", FieldDefaultValue); - writer.WriteStringValue("fieldDescription", FieldDescription); - writer.WriteIntValue("fieldId", FieldId); - writer.WriteStringValue("fieldLabel", FieldLabel); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("fieldScriptPermission", FieldScriptPermission); - writer.WriteEnumValue("fieldTechnicianPermission", FieldTechnicianPermission); - writer.WriteEnumValue("fieldType", FieldType); - writer.WriteStringValue("uiElementName", UiElementName); - writer.WriteEnumValue("uiElementType", UiElementType); - writer.WriteGuidValue("uiElementUid", UiElementUid); - writer.WriteStringValue("uiElementValue", UiElementValue); - writer.WriteDoubleValue("updatedTime", UpdatedTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldApiPermission.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldApiPermission.cs deleted file mode 100644 index 37897f1..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldApiPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// Field public API permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithDocumentTemplatePutResponse_fields_fieldApiPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent.cs deleted file mode 100644 index 69c4c30..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// - /// Field content - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithDocumentTemplatePutResponse_fields_fieldContent : 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; } - /// The advancedSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings? AdvancedSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings AdvancedSettings { get; set; } -#endif - /// Footer text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FooterText { get; set; } -#nullable restore -#else - public string FooterText { get; set; } -#endif - /// Indicates if the field is required - public bool? Required { get; set; } - /// Tooltip text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TooltipText { get; set; } -#nullable restore -#else - public string TooltipText { get; set; } -#endif - /// Used for dropdown options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutResponse_fields_fieldContent() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "advancedSettings", n => { AdvancedSettings = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings.CreateFromDiscriminatorValue); } }, - { "footerText", n => { FooterText = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tooltipText", n => { TooltipText = n.GetStringValue(); } }, - { "values", n => { Values = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_values.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("advancedSettings", AdvancedSettings); - writer.WriteStringValue("footerText", FooterText); - writer.WriteBoolValue("required", Required); - writer.WriteStringValue("tooltipText", TooltipText); - writer.WriteCollectionOfObjectValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings.cs deleted file mode 100644 index 343d48d..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings : 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 complexityRules property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_complexityRules? ComplexityRules { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_complexityRules ComplexityRules { get; set; } -#endif - /// The dateFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_dateFilters? DateFilters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_dateFilters DateFilters { get; set; } -#endif - /// The expandLargeValueOnRender property - public bool? ExpandLargeValueOnRender { get; set; } - /// The fileExtensions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FileExtensions { get; set; } -#nullable restore -#else - public List FileExtensions { get; set; } -#endif - /// The fileMaxSize property - public int? FileMaxSize { get; set; } - /// The identifier property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier? Identifier { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier Identifier { get; set; } -#endif - /// The ipAddressType property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_ipAddressType? IpAddressType { get; set; } - /// The maxCharacters property - public int? MaxCharacters { get; set; } - /// The monetary property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_monetary? Monetary { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_monetary Monetary { get; set; } -#endif - /// The nodeClass property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? NodeClass { get; set; } -#nullable restore -#else - public List NodeClass { get; set; } -#endif - /// The numericRange property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_numericRange? NumericRange { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_numericRange NumericRange { get; set; } -#endif - /// The org property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Org { get; set; } -#nullable restore -#else - public List Org { get; set; } -#endif - /// The templates property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Templates { get; set; } -#nullable restore -#else - public List Templates { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "complexityRules", n => { ComplexityRules = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_complexityRules.CreateFromDiscriminatorValue); } }, - { "dateFilters", n => { DateFilters = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_dateFilters.CreateFromDiscriminatorValue); } }, - { "expandLargeValueOnRender", n => { ExpandLargeValueOnRender = n.GetBoolValue(); } }, - { "fileExtensions", n => { FileExtensions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "fileMaxSize", n => { FileMaxSize = n.GetIntValue(); } }, - { "identifier", n => { Identifier = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier.CreateFromDiscriminatorValue); } }, - { "ipAddressType", n => { IpAddressType = n.GetEnumValue(); } }, - { "maxCharacters", n => { MaxCharacters = n.GetIntValue(); } }, - { "monetary", n => { Monetary = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_monetary.CreateFromDiscriminatorValue); } }, - { "nodeClass", n => { NodeClass = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "numericRange", n => { NumericRange = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_numericRange.CreateFromDiscriminatorValue); } }, - { "org", n => { Org = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "templates", n => { Templates = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("complexityRules", ComplexityRules); - writer.WriteObjectValue("dateFilters", DateFilters); - writer.WriteBoolValue("expandLargeValueOnRender", ExpandLargeValueOnRender); - writer.WriteCollectionOfPrimitiveValues("fileExtensions", FileExtensions); - writer.WriteIntValue("fileMaxSize", FileMaxSize); - writer.WriteObjectValue("identifier", Identifier); - writer.WriteEnumValue("ipAddressType", IpAddressType); - writer.WriteIntValue("maxCharacters", MaxCharacters); - writer.WriteObjectValue("monetary", Monetary); - writer.WriteCollectionOfEnumValues("nodeClass", NodeClass); - writer.WriteObjectValue("numericRange", NumericRange); - writer.WriteCollectionOfPrimitiveValues("org", Org); - writer.WriteCollectionOfPrimitiveValues("templates", Templates); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_complexityRules.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_complexityRules.cs deleted file mode 100644 index ff4f1b5..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_complexityRules.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_complexityRules : 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 greaterOrEqualThanSixCharacters property - public bool? GreaterOrEqualThanSixCharacters { get; set; } - /// The mustContainOneInteger property - public bool? MustContainOneInteger { get; set; } - /// The mustContainOneLowercaseLetter property - public bool? MustContainOneLowercaseLetter { get; set; } - /// The mustContainOneUppercaseLetter property - public bool? MustContainOneUppercaseLetter { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_complexityRules() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_complexityRules CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_complexityRules(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "greaterOrEqualThanSixCharacters", n => { GreaterOrEqualThanSixCharacters = n.GetBoolValue(); } }, - { "mustContainOneInteger", n => { MustContainOneInteger = n.GetBoolValue(); } }, - { "mustContainOneLowercaseLetter", n => { MustContainOneLowercaseLetter = n.GetBoolValue(); } }, - { "mustContainOneUppercaseLetter", n => { MustContainOneUppercaseLetter = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("greaterOrEqualThanSixCharacters", GreaterOrEqualThanSixCharacters); - writer.WriteBoolValue("mustContainOneInteger", MustContainOneInteger); - writer.WriteBoolValue("mustContainOneLowercaseLetter", MustContainOneLowercaseLetter); - writer.WriteBoolValue("mustContainOneUppercaseLetter", MustContainOneUppercaseLetter); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_dateFilters.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_dateFilters.cs deleted file mode 100644 index 6db425a..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_dateFilters.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_dateFilters : 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 selected property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Selected { get; set; } -#nullable restore -#else - public List Selected { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_dateFilters_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_dateFilters() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_dateFilters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_dateFilters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "selected", n => { Selected = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("selected", Selected); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_dateFilters_type.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_dateFilters_type.cs deleted file mode 100644 index bd11e68..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_dateFilters_type.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_dateFilters_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "INCLUDE")] - #pragma warning disable CS1591 - INCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "EXCLUDE")] - #pragma warning disable CS1591 - EXCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "PAST_DATES_ONLY")] - #pragma warning disable CS1591 - PAST_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "FUTURE_DATES_ONLY")] - #pragma warning disable CS1591 - FUTURE_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "RANGE")] - #pragma warning disable CS1591 - RANGE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier.cs deleted file mode 100644 index c58e7ed..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier : 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 assignTo property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier_assignTo? AssignTo { get; set; } - /// The automaticGenerationEnabled property - public bool? AutomaticGenerationEnabled { get; set; } - /// The nextSequenceNumber property - public long? NextSequenceNumber { get; set; } - /// The prefix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Prefix { get; set; } -#nullable restore -#else - public string Prefix { get; set; } -#endif - /// The scope property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier_scope? Scope { get; set; } - /// The suffix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Suffix { get; set; } -#nullable restore -#else - public string Suffix { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignTo", n => { AssignTo = n.GetEnumValue(); } }, - { "automaticGenerationEnabled", n => { AutomaticGenerationEnabled = n.GetBoolValue(); } }, - { "nextSequenceNumber", n => { NextSequenceNumber = n.GetLongValue(); } }, - { "prefix", n => { Prefix = n.GetStringValue(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - { "suffix", n => { Suffix = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignTo", AssignTo); - writer.WriteBoolValue("automaticGenerationEnabled", AutomaticGenerationEnabled); - writer.WriteLongValue("nextSequenceNumber", NextSequenceNumber); - writer.WriteStringValue("prefix", Prefix); - writer.WriteEnumValue("scope", Scope); - writer.WriteStringValue("suffix", Suffix); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier_assignTo.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier_assignTo.cs deleted file mode 100644 index 6b0940b..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier_assignTo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier_assignTo - #pragma warning restore CS1591 - { - [EnumMember(Value = "NEW_ASSETS_ONLY")] - #pragma warning disable CS1591 - NEW_ASSETS_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "NEW_AND_EXISTING_ASSETS")] - #pragma warning disable CS1591 - NEW_AND_EXISTING_ASSETS, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier_scope.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier_scope.cs deleted file mode 100644 index d579330..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier_scope.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier_scope - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "GLOBAL")] - #pragma warning disable CS1591 - GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier_type.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier_type.cs deleted file mode 100644 index 7fc4eff..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier_type.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_identifier_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - [EnumMember(Value = "SEQUENCE")] - #pragma warning disable CS1591 - SEQUENCE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_ipAddressType.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_ipAddressType.cs deleted file mode 100644 index eb875bf..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_ipAddressType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_ipAddressType - #pragma warning restore CS1591 - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV4")] - #pragma warning disable CS1591 - IPV4, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV6")] - #pragma warning disable CS1591 - IPV6, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_monetary.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_monetary.cs deleted file mode 100644 index 57ba5e6..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_monetary.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_monetary : 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 currency property - public global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_monetary_currency? Currency { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_monetary() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_monetary CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_monetary(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "currency", n => { Currency = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("currency", Currency); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_monetary_currency.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_monetary_currency.cs deleted file mode 100644 index a80c1cb..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_monetary_currency.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_monetary_currency - #pragma warning restore CS1591 - { - [EnumMember(Value = "USD")] - #pragma warning disable CS1591 - USD, - #pragma warning restore CS1591 - [EnumMember(Value = "EUR")] - #pragma warning disable CS1591 - EUR, - #pragma warning restore CS1591 - [EnumMember(Value = "CAD")] - #pragma warning disable CS1591 - CAD, - #pragma warning restore CS1591 - [EnumMember(Value = "GBP")] - #pragma warning disable CS1591 - GBP, - #pragma warning restore CS1591 - [EnumMember(Value = "AUD")] - #pragma warning disable CS1591 - AUD, - #pragma warning restore CS1591 - [EnumMember(Value = "JPY")] - #pragma warning disable CS1591 - JPY, - #pragma warning restore CS1591 - [EnumMember(Value = "SEK")] - #pragma warning disable CS1591 - SEK, - #pragma warning restore CS1591 - [EnumMember(Value = "NOK")] - #pragma warning disable CS1591 - NOK, - #pragma warning restore CS1591 - [EnumMember(Value = "DKK")] - #pragma warning disable CS1591 - DKK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHF")] - #pragma warning disable CS1591 - CHF, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_nodeClass.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_nodeClass.cs deleted file mode 100644 index e7e075b..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_nodeClass.cs +++ /dev/null @@ -1,144 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_nodeClass - #pragma warning restore CS1591 - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_numericRange.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_numericRange.cs deleted file mode 100644 index d33b3cd..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_numericRange.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_numericRange : 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 max property - public double? Max { get; set; } - /// The min property - public double? Min { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_numericRange() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_numericRange CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_advancedSettings_numericRange(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "max", n => { Max = n.GetDoubleValue(); } }, - { "min", n => { Min = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("max", Max); - writer.WriteDoubleValue("min", Min); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_values.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_values.cs deleted file mode 100644 index 0c7b930..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldContent_values.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// - /// Used for dropdown options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithDocumentTemplatePutResponse_fields_fieldContent_values : IAdditionalDataHolder, IParsable - { - /// Indicates if a dropdown option is active - public bool? Active { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Identifier - public Guid? Id { get; set; } - /// Dropdown option name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithDocumentTemplatePutResponse_fields_fieldContent_values() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_values CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplatePutResponse_fields_fieldContent_values(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldScriptPermission.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldScriptPermission.cs deleted file mode 100644 index 393d72d..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldScriptPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// Field script permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithDocumentTemplatePutResponse_fields_fieldScriptPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldTechnicianPermission.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldTechnicianPermission.cs deleted file mode 100644 index 2ce69f2..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldTechnicianPermission.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// Field technician permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithDocumentTemplatePutResponse_fields_fieldTechnicianPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "EDITABLE")] - #pragma warning disable CS1591 - EDITABLE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldType.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldType.cs deleted file mode 100644 index 5ec2051..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_fieldType.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// Field type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithDocumentTemplatePutResponse_fields_fieldType - { - [EnumMember(Value = "DROPDOWN")] - #pragma warning disable CS1591 - DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "MULTI_SELECT")] - #pragma warning disable CS1591 - MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKBOX")] - #pragma warning disable CS1591 - CHECKBOX, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT")] - #pragma warning disable CS1591 - TEXT, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_MULTILINE")] - #pragma warning disable CS1591 - TEXT_MULTILINE, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_ENCRYPTED")] - #pragma warning disable CS1591 - TEXT_ENCRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NUMERIC")] - #pragma warning disable CS1591 - NUMERIC, - #pragma warning restore CS1591 - [EnumMember(Value = "DECIMAL")] - #pragma warning disable CS1591 - DECIMAL, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE")] - #pragma warning disable CS1591 - DATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE_TIME")] - #pragma warning disable CS1591 - DATE_TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "TIME")] - #pragma warning disable CS1591 - TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_DROPDOWN")] - #pragma warning disable CS1591 - NODE_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MULTI_SELECT")] - #pragma warning disable CS1591 - NODE_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_LOCATION_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_LOCATION_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "EMAIL")] - #pragma warning disable CS1591 - EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "PHONE")] - #pragma warning disable CS1591 - PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "IP_ADDRESS")] - #pragma warning disable CS1591 - IP_ADDRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "WYSIWYG")] - #pragma warning disable CS1591 - WYSIWYG, - #pragma warning restore CS1591 - [EnumMember(Value = "URL")] - #pragma warning disable CS1591 - URL, - #pragma warning restore CS1591 - [EnumMember(Value = "MONETARY")] - #pragma warning disable CS1591 - MONETARY, - #pragma warning restore CS1591 - [EnumMember(Value = "IDENTIFIER")] - #pragma warning disable CS1591 - IDENTIFIER, - #pragma warning restore CS1591 - [EnumMember(Value = "TOTP")] - #pragma warning disable CS1591 - TOTP, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_uiElementType.cs b/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_uiElementType.cs deleted file mode 100644 index 063ac60..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplatePutResponse_fields_uiElementType.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - /// UI element type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithDocumentTemplatePutResponse_fields_uiElementType - { - [EnumMember(Value = "TITLE")] - #pragma warning disable CS1591 - TITLE, - #pragma warning restore CS1591 - [EnumMember(Value = "DESCRIPTION")] - #pragma warning disable CS1591 - DESCRIPTION, - #pragma warning restore CS1591 - [EnumMember(Value = "SEPARATOR")] - #pragma warning disable CS1591 - SEPARATOR, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Item/WithDocumentTemplateResponse.cs b/V2/DocumentTemplates/Item/WithDocumentTemplateResponse.cs deleted file mode 100644 index 8eeaa72..0000000 --- a/V2/DocumentTemplates/Item/WithDocumentTemplateResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Item -{ - [Obsolete("This class is obsolete. Use WithDocumentTemplateGetResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithDocumentTemplateResponse : global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateGetResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Item.WithDocumentTemplateResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse.cs b/V2/DocumentTemplates/Restore/RestorePostResponse.cs deleted file mode 100644 index b90fb30..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse.cs +++ /dev/null @@ -1,137 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestorePostResponse : 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; } - /// List of allowed technician role ids -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AllowedTechnicianRoles { get; set; } -#nullable restore -#else - public List AllowedTechnicianRoles { get; set; } -#endif - /// Indicates if multiple instances of the document template is allowed - public bool? AllowMultiple { get; set; } - /// Indicates if the document template is archived - public bool? Archived { get; set; } - /// Indicates who archived the template -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_archivedBy? ArchivedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_archivedBy ArchivedBy { get; set; } -#endif - /// Indicates the time the template was archived - public double? ArchivedTime { get; set; } - /// Indicates if the document template is available to all technicians - public bool? AvailableToAllTechnicians { get; set; } - /// Creation time - public double? CreateTime { get; set; } - /// Description of the template -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Document template fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// Identifier - public int? Id { get; set; } - /// Indicates if the document template is mandatory - public bool? Mandatory { get; set; } - /// Name of the template (must be unique) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Last updated time - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "allowMultiple", n => { AllowMultiple = n.GetBoolValue(); } }, - { "allowedTechnicianRoles", n => { AllowedTechnicianRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "archived", n => { Archived = n.GetBoolValue(); } }, - { "archivedBy", n => { ArchivedBy = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_archivedBy.CreateFromDiscriminatorValue); } }, - { "archivedTime", n => { ArchivedTime = n.GetDoubleValue(); } }, - { "availableToAllTechnicians", n => { AvailableToAllTechnicians = n.GetBoolValue(); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "mandatory", n => { Mandatory = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("allowedTechnicianRoles", AllowedTechnicianRoles); - writer.WriteBoolValue("allowMultiple", AllowMultiple); - writer.WriteBoolValue("archived", Archived); - writer.WriteObjectValue("archivedBy", ArchivedBy); - writer.WriteDoubleValue("archivedTime", ArchivedTime); - writer.WriteBoolValue("availableToAllTechnicians", AvailableToAllTechnicians); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("description", Description); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("mandatory", Mandatory); - writer.WriteStringValue("name", Name); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_archivedBy.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_archivedBy.cs deleted file mode 100644 index b0b6414..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_archivedBy.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - /// - /// Indicates who archived the template - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestorePostResponse_archivedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The displayName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_archivedBy() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_archivedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_archivedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteIntValue("id", Id); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields.cs deleted file mode 100644 index 74ebb64..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields.cs +++ /dev/null @@ -1,162 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - /// - /// Document template fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestorePostResponse_fields : 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; } - /// Creation time - public double? CreatedTime { get; set; } - /// Field public API permission - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldApiPermission? FieldApiPermission { get; set; } - /// Field content -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent? FieldContent { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent FieldContent { get; set; } -#endif - /// Default value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldDefaultValue { get; set; } -#nullable restore -#else - public string FieldDefaultValue { get; set; } -#endif - /// Field description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldDescription { get; set; } -#nullable restore -#else - public string FieldDescription { get; set; } -#endif - /// Field identifier - public int? FieldId { get; set; } - /// Field or UI element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldLabel { get; set; } -#nullable restore -#else - public string FieldLabel { get; set; } -#endif - /// Field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Field script permission - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldScriptPermission? FieldScriptPermission { get; set; } - /// Field technician permission - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldTechnicianPermission? FieldTechnicianPermission { get; set; } - /// Field type - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldType? FieldType { get; set; } - /// UI element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementName { get; set; } -#nullable restore -#else - public string UiElementName { get; set; } -#endif - /// UI element type - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_uiElementType? UiElementType { get; set; } - /// UI element identifier - public Guid? UiElementUid { get; set; } - /// UI element value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementValue { get; set; } -#nullable restore -#else - public string UiElementValue { get; set; } -#endif - /// Last updated time - public double? UpdatedTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createdTime", n => { CreatedTime = n.GetDoubleValue(); } }, - { "fieldApiPermission", n => { FieldApiPermission = n.GetEnumValue(); } }, - { "fieldContent", n => { FieldContent = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent.CreateFromDiscriminatorValue); } }, - { "fieldDefaultValue", n => { FieldDefaultValue = n.GetStringValue(); } }, - { "fieldDescription", n => { FieldDescription = n.GetStringValue(); } }, - { "fieldId", n => { FieldId = n.GetIntValue(); } }, - { "fieldLabel", n => { FieldLabel = n.GetStringValue(); } }, - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "fieldScriptPermission", n => { FieldScriptPermission = n.GetEnumValue(); } }, - { "fieldTechnicianPermission", n => { FieldTechnicianPermission = n.GetEnumValue(); } }, - { "fieldType", n => { FieldType = n.GetEnumValue(); } }, - { "uiElementName", n => { UiElementName = n.GetStringValue(); } }, - { "uiElementType", n => { UiElementType = n.GetEnumValue(); } }, - { "uiElementUid", n => { UiElementUid = n.GetGuidValue(); } }, - { "uiElementValue", n => { UiElementValue = n.GetStringValue(); } }, - { "updatedTime", n => { UpdatedTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("createdTime", CreatedTime); - writer.WriteEnumValue("fieldApiPermission", FieldApiPermission); - writer.WriteObjectValue("fieldContent", FieldContent); - writer.WriteStringValue("fieldDefaultValue", FieldDefaultValue); - writer.WriteStringValue("fieldDescription", FieldDescription); - writer.WriteIntValue("fieldId", FieldId); - writer.WriteStringValue("fieldLabel", FieldLabel); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("fieldScriptPermission", FieldScriptPermission); - writer.WriteEnumValue("fieldTechnicianPermission", FieldTechnicianPermission); - writer.WriteEnumValue("fieldType", FieldType); - writer.WriteStringValue("uiElementName", UiElementName); - writer.WriteEnumValue("uiElementType", UiElementType); - writer.WriteGuidValue("uiElementUid", UiElementUid); - writer.WriteStringValue("uiElementValue", UiElementValue); - writer.WriteDoubleValue("updatedTime", UpdatedTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldApiPermission.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldApiPermission.cs deleted file mode 100644 index 86c39bf..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldApiPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - /// Field public API permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RestorePostResponse_fields_fieldApiPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent.cs deleted file mode 100644 index 07203b8..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - /// - /// Field content - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestorePostResponse_fields_fieldContent : 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; } - /// The advancedSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings? AdvancedSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings AdvancedSettings { get; set; } -#endif - /// Footer text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FooterText { get; set; } -#nullable restore -#else - public string FooterText { get; set; } -#endif - /// Indicates if the field is required - public bool? Required { get; set; } - /// Tooltip text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TooltipText { get; set; } -#nullable restore -#else - public string TooltipText { get; set; } -#endif - /// Used for dropdown options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields_fieldContent() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "advancedSettings", n => { AdvancedSettings = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings.CreateFromDiscriminatorValue); } }, - { "footerText", n => { FooterText = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tooltipText", n => { TooltipText = n.GetStringValue(); } }, - { "values", n => { Values = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_values.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("advancedSettings", AdvancedSettings); - writer.WriteStringValue("footerText", FooterText); - writer.WriteBoolValue("required", Required); - writer.WriteStringValue("tooltipText", TooltipText); - writer.WriteCollectionOfObjectValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings.cs deleted file mode 100644 index 1f4f6e4..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestorePostResponse_fields_fieldContent_advancedSettings : 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 complexityRules property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules? ComplexityRules { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules ComplexityRules { get; set; } -#endif - /// The dateFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters? DateFilters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters DateFilters { get; set; } -#endif - /// The expandLargeValueOnRender property - public bool? ExpandLargeValueOnRender { get; set; } - /// The fileExtensions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FileExtensions { get; set; } -#nullable restore -#else - public List FileExtensions { get; set; } -#endif - /// The fileMaxSize property - public int? FileMaxSize { get; set; } - /// The identifier property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_identifier? Identifier { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_identifier Identifier { get; set; } -#endif - /// The ipAddressType property - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_ipAddressType? IpAddressType { get; set; } - /// The maxCharacters property - public int? MaxCharacters { get; set; } - /// The monetary property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_monetary? Monetary { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_monetary Monetary { get; set; } -#endif - /// The nodeClass property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? NodeClass { get; set; } -#nullable restore -#else - public List NodeClass { get; set; } -#endif - /// The numericRange property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_numericRange? NumericRange { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_numericRange NumericRange { get; set; } -#endif - /// The org property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Org { get; set; } -#nullable restore -#else - public List Org { get; set; } -#endif - /// The templates property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Templates { get; set; } -#nullable restore -#else - public List Templates { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields_fieldContent_advancedSettings() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "complexityRules", n => { ComplexityRules = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules.CreateFromDiscriminatorValue); } }, - { "dateFilters", n => { DateFilters = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters.CreateFromDiscriminatorValue); } }, - { "expandLargeValueOnRender", n => { ExpandLargeValueOnRender = n.GetBoolValue(); } }, - { "fileExtensions", n => { FileExtensions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "fileMaxSize", n => { FileMaxSize = n.GetIntValue(); } }, - { "identifier", n => { Identifier = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_identifier.CreateFromDiscriminatorValue); } }, - { "ipAddressType", n => { IpAddressType = n.GetEnumValue(); } }, - { "maxCharacters", n => { MaxCharacters = n.GetIntValue(); } }, - { "monetary", n => { Monetary = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_monetary.CreateFromDiscriminatorValue); } }, - { "nodeClass", n => { NodeClass = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "numericRange", n => { NumericRange = n.GetObjectValue(global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_numericRange.CreateFromDiscriminatorValue); } }, - { "org", n => { Org = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "templates", n => { Templates = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("complexityRules", ComplexityRules); - writer.WriteObjectValue("dateFilters", DateFilters); - writer.WriteBoolValue("expandLargeValueOnRender", ExpandLargeValueOnRender); - writer.WriteCollectionOfPrimitiveValues("fileExtensions", FileExtensions); - writer.WriteIntValue("fileMaxSize", FileMaxSize); - writer.WriteObjectValue("identifier", Identifier); - writer.WriteEnumValue("ipAddressType", IpAddressType); - writer.WriteIntValue("maxCharacters", MaxCharacters); - writer.WriteObjectValue("monetary", Monetary); - writer.WriteCollectionOfEnumValues("nodeClass", NodeClass); - writer.WriteObjectValue("numericRange", NumericRange); - writer.WriteCollectionOfPrimitiveValues("org", Org); - writer.WriteCollectionOfPrimitiveValues("templates", Templates); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules.cs deleted file mode 100644 index 506d941..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules : 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 greaterOrEqualThanSixCharacters property - public bool? GreaterOrEqualThanSixCharacters { get; set; } - /// The mustContainOneInteger property - public bool? MustContainOneInteger { get; set; } - /// The mustContainOneLowercaseLetter property - public bool? MustContainOneLowercaseLetter { get; set; } - /// The mustContainOneUppercaseLetter property - public bool? MustContainOneUppercaseLetter { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_complexityRules(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "greaterOrEqualThanSixCharacters", n => { GreaterOrEqualThanSixCharacters = n.GetBoolValue(); } }, - { "mustContainOneInteger", n => { MustContainOneInteger = n.GetBoolValue(); } }, - { "mustContainOneLowercaseLetter", n => { MustContainOneLowercaseLetter = n.GetBoolValue(); } }, - { "mustContainOneUppercaseLetter", n => { MustContainOneUppercaseLetter = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("greaterOrEqualThanSixCharacters", GreaterOrEqualThanSixCharacters); - writer.WriteBoolValue("mustContainOneInteger", MustContainOneInteger); - writer.WriteBoolValue("mustContainOneLowercaseLetter", MustContainOneLowercaseLetter); - writer.WriteBoolValue("mustContainOneUppercaseLetter", MustContainOneUppercaseLetter); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters.cs deleted file mode 100644 index 0819991..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters : 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 selected property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Selected { get; set; } -#nullable restore -#else - public List Selected { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "selected", n => { Selected = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("selected", Selected); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters_type.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters_type.cs deleted file mode 100644 index e272f25..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters_type.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum RestorePostResponse_fields_fieldContent_advancedSettings_dateFilters_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "INCLUDE")] - #pragma warning disable CS1591 - INCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "EXCLUDE")] - #pragma warning disable CS1591 - EXCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "PAST_DATES_ONLY")] - #pragma warning disable CS1591 - PAST_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "FUTURE_DATES_ONLY")] - #pragma warning disable CS1591 - FUTURE_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "RANGE")] - #pragma warning disable CS1591 - RANGE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier.cs deleted file mode 100644 index 78fa28a..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestorePostResponse_fields_fieldContent_advancedSettings_identifier : 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 assignTo property - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_identifier_assignTo? AssignTo { get; set; } - /// The automaticGenerationEnabled property - public bool? AutomaticGenerationEnabled { get; set; } - /// The nextSequenceNumber property - public long? NextSequenceNumber { get; set; } - /// The prefix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Prefix { get; set; } -#nullable restore -#else - public string Prefix { get; set; } -#endif - /// The scope property - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_identifier_scope? Scope { get; set; } - /// The suffix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Suffix { get; set; } -#nullable restore -#else - public string Suffix { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_identifier_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields_fieldContent_advancedSettings_identifier() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_identifier CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_identifier(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignTo", n => { AssignTo = n.GetEnumValue(); } }, - { "automaticGenerationEnabled", n => { AutomaticGenerationEnabled = n.GetBoolValue(); } }, - { "nextSequenceNumber", n => { NextSequenceNumber = n.GetLongValue(); } }, - { "prefix", n => { Prefix = n.GetStringValue(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - { "suffix", n => { Suffix = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignTo", AssignTo); - writer.WriteBoolValue("automaticGenerationEnabled", AutomaticGenerationEnabled); - writer.WriteLongValue("nextSequenceNumber", NextSequenceNumber); - writer.WriteStringValue("prefix", Prefix); - writer.WriteEnumValue("scope", Scope); - writer.WriteStringValue("suffix", Suffix); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_assignTo.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_assignTo.cs deleted file mode 100644 index a6ff20e..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_assignTo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum RestorePostResponse_fields_fieldContent_advancedSettings_identifier_assignTo - #pragma warning restore CS1591 - { - [EnumMember(Value = "NEW_ASSETS_ONLY")] - #pragma warning disable CS1591 - NEW_ASSETS_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "NEW_AND_EXISTING_ASSETS")] - #pragma warning disable CS1591 - NEW_AND_EXISTING_ASSETS, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_scope.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_scope.cs deleted file mode 100644 index 4c6b89c..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_scope.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum RestorePostResponse_fields_fieldContent_advancedSettings_identifier_scope - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "GLOBAL")] - #pragma warning disable CS1591 - GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_type.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_type.cs deleted file mode 100644 index 9565aee..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_identifier_type.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum RestorePostResponse_fields_fieldContent_advancedSettings_identifier_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - [EnumMember(Value = "SEQUENCE")] - #pragma warning disable CS1591 - SEQUENCE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_ipAddressType.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_ipAddressType.cs deleted file mode 100644 index e57da32..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_ipAddressType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum RestorePostResponse_fields_fieldContent_advancedSettings_ipAddressType - #pragma warning restore CS1591 - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV4")] - #pragma warning disable CS1591 - IPV4, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV6")] - #pragma warning disable CS1591 - IPV6, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_monetary.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_monetary.cs deleted file mode 100644 index ef10eb7..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_monetary.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestorePostResponse_fields_fieldContent_advancedSettings_monetary : 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 currency property - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_monetary_currency? Currency { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields_fieldContent_advancedSettings_monetary() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_monetary CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_monetary(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "currency", n => { Currency = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("currency", Currency); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_monetary_currency.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_monetary_currency.cs deleted file mode 100644 index ad8263f..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_monetary_currency.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum RestorePostResponse_fields_fieldContent_advancedSettings_monetary_currency - #pragma warning restore CS1591 - { - [EnumMember(Value = "USD")] - #pragma warning disable CS1591 - USD, - #pragma warning restore CS1591 - [EnumMember(Value = "EUR")] - #pragma warning disable CS1591 - EUR, - #pragma warning restore CS1591 - [EnumMember(Value = "CAD")] - #pragma warning disable CS1591 - CAD, - #pragma warning restore CS1591 - [EnumMember(Value = "GBP")] - #pragma warning disable CS1591 - GBP, - #pragma warning restore CS1591 - [EnumMember(Value = "AUD")] - #pragma warning disable CS1591 - AUD, - #pragma warning restore CS1591 - [EnumMember(Value = "JPY")] - #pragma warning disable CS1591 - JPY, - #pragma warning restore CS1591 - [EnumMember(Value = "SEK")] - #pragma warning disable CS1591 - SEK, - #pragma warning restore CS1591 - [EnumMember(Value = "NOK")] - #pragma warning disable CS1591 - NOK, - #pragma warning restore CS1591 - [EnumMember(Value = "DKK")] - #pragma warning disable CS1591 - DKK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHF")] - #pragma warning disable CS1591 - CHF, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_nodeClass.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_nodeClass.cs deleted file mode 100644 index 666536f..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_nodeClass.cs +++ /dev/null @@ -1,144 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum RestorePostResponse_fields_fieldContent_advancedSettings_nodeClass - #pragma warning restore CS1591 - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_numericRange.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_numericRange.cs deleted file mode 100644 index eee166c..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_advancedSettings_numericRange.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestorePostResponse_fields_fieldContent_advancedSettings_numericRange : 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 max property - public double? Max { get; set; } - /// The min property - public double? Min { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields_fieldContent_advancedSettings_numericRange() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_numericRange CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_advancedSettings_numericRange(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "max", n => { Max = n.GetDoubleValue(); } }, - { "min", n => { Min = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("max", Max); - writer.WriteDoubleValue("min", Min); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_values.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_values.cs deleted file mode 100644 index 78c8e87..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldContent_values.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - /// - /// Used for dropdown options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestorePostResponse_fields_fieldContent_values : IAdditionalDataHolder, IParsable - { - /// Indicates if a dropdown option is active - public bool? Active { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Identifier - public Guid? Id { get; set; } - /// Dropdown option name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields_fieldContent_values() - { - 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::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_values CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse_fields_fieldContent_values(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldScriptPermission.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldScriptPermission.cs deleted file mode 100644 index 8215824..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldScriptPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - /// Field script permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RestorePostResponse_fields_fieldScriptPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldTechnicianPermission.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldTechnicianPermission.cs deleted file mode 100644 index e60ee9c..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldTechnicianPermission.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - /// Field technician permission - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RestorePostResponse_fields_fieldTechnicianPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "EDITABLE")] - #pragma warning disable CS1591 - EDITABLE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldType.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldType.cs deleted file mode 100644 index 01cfa72..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_fieldType.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - /// Field type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RestorePostResponse_fields_fieldType - { - [EnumMember(Value = "DROPDOWN")] - #pragma warning disable CS1591 - DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "MULTI_SELECT")] - #pragma warning disable CS1591 - MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKBOX")] - #pragma warning disable CS1591 - CHECKBOX, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT")] - #pragma warning disable CS1591 - TEXT, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_MULTILINE")] - #pragma warning disable CS1591 - TEXT_MULTILINE, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_ENCRYPTED")] - #pragma warning disable CS1591 - TEXT_ENCRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NUMERIC")] - #pragma warning disable CS1591 - NUMERIC, - #pragma warning restore CS1591 - [EnumMember(Value = "DECIMAL")] - #pragma warning disable CS1591 - DECIMAL, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE")] - #pragma warning disable CS1591 - DATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE_TIME")] - #pragma warning disable CS1591 - DATE_TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "TIME")] - #pragma warning disable CS1591 - TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_DROPDOWN")] - #pragma warning disable CS1591 - NODE_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MULTI_SELECT")] - #pragma warning disable CS1591 - NODE_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_LOCATION_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_LOCATION_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "EMAIL")] - #pragma warning disable CS1591 - EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "PHONE")] - #pragma warning disable CS1591 - PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "IP_ADDRESS")] - #pragma warning disable CS1591 - IP_ADDRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "WYSIWYG")] - #pragma warning disable CS1591 - WYSIWYG, - #pragma warning restore CS1591 - [EnumMember(Value = "URL")] - #pragma warning disable CS1591 - URL, - #pragma warning restore CS1591 - [EnumMember(Value = "MONETARY")] - #pragma warning disable CS1591 - MONETARY, - #pragma warning restore CS1591 - [EnumMember(Value = "IDENTIFIER")] - #pragma warning disable CS1591 - IDENTIFIER, - #pragma warning restore CS1591 - [EnumMember(Value = "TOTP")] - #pragma warning disable CS1591 - TOTP, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_uiElementType.cs b/V2/DocumentTemplates/Restore/RestorePostResponse_fields_uiElementType.cs deleted file mode 100644 index d892f24..0000000 --- a/V2/DocumentTemplates/Restore/RestorePostResponse_fields_uiElementType.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - /// UI element type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RestorePostResponse_fields_uiElementType - { - [EnumMember(Value = "TITLE")] - #pragma warning disable CS1591 - TITLE, - #pragma warning restore CS1591 - [EnumMember(Value = "DESCRIPTION")] - #pragma warning disable CS1591 - DESCRIPTION, - #pragma warning restore CS1591 - [EnumMember(Value = "SEPARATOR")] - #pragma warning disable CS1591 - SEPARATOR, - #pragma warning restore CS1591 - } -} diff --git a/V2/DocumentTemplates/Restore/RestoreRequestBuilder.cs b/V2/DocumentTemplates/Restore/RestoreRequestBuilder.cs deleted file mode 100644 index 03ddf8c..0000000 --- a/V2/DocumentTemplates/Restore/RestoreRequestBuilder.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - /// - /// Builds and executes requests for operations under \v2\document-templates\restore - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestoreRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/document-templates/restore", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/document-templates/restore", rawUrl) - { - } - /// - /// Restores a document template by id - /// - /// A - /// The request body - /// 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 PostAsRestorePostResponseAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsRestorePostResponseAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Restores a document template by id - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsRestorePostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - 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) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestoreResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Restores a document template by id - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromScalarCollection(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestoreRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestoreRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestoreRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/DocumentTemplates/Restore/RestoreResponse.cs b/V2/DocumentTemplates/Restore/RestoreResponse.cs deleted file mode 100644 index 41bcf0a..0000000 --- a/V2/DocumentTemplates/Restore/RestoreResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.DocumentTemplates.Restore -{ - [Obsolete("This class is obsolete. Use RestorePostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestoreResponse : global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestorePostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestoreResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.DocumentTemplates.Restore.RestoreResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Group/GroupRequestBuilder.cs b/V2/Group/GroupRequestBuilder.cs deleted file mode 100644 index 4771700..0000000 --- a/V2/Group/GroupRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Group.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Group -{ - /// - /// Builds and executes requests for operations under \v2\group - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class GroupRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.group.item collection - /// Group identifier - /// A - public global::NinjaOne.Client.V2.Group.Item.GroupItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new global::NinjaOne.Client.V2.Group.Item.GroupItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.group.item collection - /// Group identifier - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Group.Item.GroupItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("id", position); - return new global::NinjaOne.Client.V2.Group.Item.GroupItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public GroupRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/group", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public GroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/group", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Group/Item/DeviceIds/DeviceIdsRequestBuilder.cs b/V2/Group/Item/DeviceIds/DeviceIdsRequestBuilder.cs deleted file mode 100644 index fff1f14..0000000 --- a/V2/Group/Item/DeviceIds/DeviceIdsRequestBuilder.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Group.Item.DeviceIds -{ - /// - /// Builds and executes requests for operations under \v2\group\{id}\device-ids - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceIdsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DeviceIdsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/group/{id}/device-ids", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DeviceIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/group/{id}/device-ids", rawUrl) - { - } - /// - /// Returns list of device identifiers that match group criteria - /// - /// 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) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of device identifiers that match group criteria - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Group.Item.DeviceIds.DeviceIdsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Group.Item.DeviceIds.DeviceIdsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceIdsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Group/Item/GroupItemRequestBuilder.cs b/V2/Group/Item/GroupItemRequestBuilder.cs deleted file mode 100644 index 06ea33c..0000000 --- a/V2/Group/Item/GroupItemRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Group.Item.DeviceIds; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Group.Item -{ - /// - /// Builds and executes requests for operations under \v2\group\{id} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class GroupItemRequestBuilder : BaseRequestBuilder - { - /// The deviceIds property - public global::NinjaOne.Client.V2.Group.Item.DeviceIds.DeviceIdsRequestBuilder DeviceIds - { - get => new global::NinjaOne.Client.V2.Group.Item.DeviceIds.DeviceIdsRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public GroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/group/{id}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public GroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/group/{id}", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Groups/Groups.cs b/V2/Groups/Groups.cs deleted file mode 100644 index 8209f84..0000000 --- a/V2/Groups/Groups.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Groups -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Groups : 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; } - /// Timestamp of group creation - public double? Created { get; set; } - /// Group description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Estimated/Last known device count. Can be `null` if group membership has not been evaluated recently - public int? DeviceCount { get; set; } - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Groups.Groups_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Groups.Groups_fields Fields { get; set; } -#endif - /// Group identifier - public int? Id { get; set; } - /// Last evaluation time of group membership for nodes (search) - public double? LastEvaluated { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Group Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Group is shared with all users? - public bool? Shared { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Timestamp last update - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Groups() - { - 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::NinjaOne.Client.V2.Groups.Groups CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Groups.Groups(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "created", n => { Created = n.GetDoubleValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "deviceCount", n => { DeviceCount = n.GetIntValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Groups.Groups_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastEvaluated", n => { LastEvaluated = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "shared", n => { Shared = n.GetBoolValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("created", Created); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("deviceCount", DeviceCount); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteDoubleValue("lastEvaluated", LastEvaluated); - writer.WriteStringValue("name", Name); - writer.WriteBoolValue("shared", Shared); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Groups/GroupsRequestBuilder.cs b/V2/Groups/GroupsRequestBuilder.cs deleted file mode 100644 index 90fdd74..0000000 --- a/V2/Groups/GroupsRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Groups -{ - /// - /// Builds and executes requests for operations under \v2\groups - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class GroupsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/groups", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/groups", rawUrl) - { - } - /// - /// Returns list of groups - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Groups.Groups.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of groups - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Groups.GroupsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Groups.GroupsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class GroupsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Groups/Groups_fields.cs b/V2/Groups/Groups_fields.cs deleted file mode 100644 index a6ea481..0000000 --- a/V2/Groups/Groups_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Groups -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Groups_fields : 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. - /// - public Groups_fields() - { - 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::NinjaOne.Client.V2.Groups.Groups_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Groups.Groups_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Itam/ItamRequestBuilder.cs b/V2/Itam/ItamRequestBuilder.cs deleted file mode 100644 index 0213803..0000000 --- a/V2/Itam/ItamRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Itam.UnmanagedDevice; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Itam -{ - /// - /// Builds and executes requests for operations under \v2\itam - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ItamRequestBuilder : BaseRequestBuilder - { - /// The unmanagedDevice property - public global::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDeviceRequestBuilder UnmanagedDevice - { - get => new global::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDeviceRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ItamRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/itam", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ItamRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/itam", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Itam/UnmanagedDevice/Item/WithNodeItemRequestBuilder.cs b/V2/Itam/UnmanagedDevice/Item/WithNodeItemRequestBuilder.cs deleted file mode 100644 index 706b498..0000000 --- a/V2/Itam/UnmanagedDevice/Item/WithNodeItemRequestBuilder.cs +++ /dev/null @@ -1,138 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Itam.UnmanagedDevice.Item -{ - /// - /// Builds and executes requests for operations under \v2\itam\unmanaged-device\{nodeId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithNodeItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithNodeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/itam/unmanaged-device/{nodeId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithNodeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/itam/unmanaged-device/{nodeId}", rawUrl) - { - } - /// - /// Delete an Unmanaged Device with the provided id - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Update an Unmanaged Device with the provided details - /// - /// The request body - /// 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 PutAsync(global::NinjaOne.Client.V2.Itam.UnmanagedDevice.Item.WithNodePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PutAsync(global::NinjaOne.Client.V2.Itam.UnmanagedDevice.Item.WithNodePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete an Unmanaged Device with the provided id - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Update an Unmanaged Device with the provided details - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(global::NinjaOne.Client.V2.Itam.UnmanagedDevice.Item.WithNodePutRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(global::NinjaOne.Client.V2.Itam.UnmanagedDevice.Item.WithNodePutRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Itam.UnmanagedDevice.Item.WithNodeItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Itam.UnmanagedDevice.Item.WithNodeItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithNodeItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithNodeItemRequestBuilderPutRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Itam/UnmanagedDevice/Item/WithNodePutRequestBody.cs b/V2/Itam/UnmanagedDevice/Item/WithNodePutRequestBody.cs deleted file mode 100644 index 9a3c10e..0000000 --- a/V2/Itam/UnmanagedDevice/Item/WithNodePutRequestBody.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Itam.UnmanagedDevice.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithNodePutRequestBody : 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 UUID of the user this device is assigned to - public Guid? AssignedUserUid { get; set; } - /// The id of the location the device belongs to - public int? LocationId { get; set; } - /// The display name of the device to be updated -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The id of the organization the device belongs to - public int? OrgId { get; set; } - /// The serial number of the device -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SerialNumber { get; set; } -#nullable restore -#else - public string SerialNumber { get; set; } -#endif - /// The warranty end date for the device, in unix epoch seconds - public double? WarrantyEndDate { get; set; } - /// The warranty start date for the device, in unix epoch seconds - public double? WarrantyStartDate { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithNodePutRequestBody() - { - 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::NinjaOne.Client.V2.Itam.UnmanagedDevice.Item.WithNodePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Itam.UnmanagedDevice.Item.WithNodePutRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignedUserUid", n => { AssignedUserUid = n.GetGuidValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "orgId", n => { OrgId = n.GetIntValue(); } }, - { "serialNumber", n => { SerialNumber = n.GetStringValue(); } }, - { "warrantyEndDate", n => { WarrantyEndDate = n.GetDoubleValue(); } }, - { "warrantyStartDate", n => { WarrantyStartDate = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteGuidValue("assignedUserUid", AssignedUserUid); - writer.WriteIntValue("locationId", LocationId); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("orgId", OrgId); - writer.WriteStringValue("serialNumber", SerialNumber); - writer.WriteDoubleValue("warrantyEndDate", WarrantyEndDate); - writer.WriteDoubleValue("warrantyStartDate", WarrantyStartDate); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Itam/UnmanagedDevice/UnmanagedDevicePostRequestBody.cs b/V2/Itam/UnmanagedDevice/UnmanagedDevicePostRequestBody.cs deleted file mode 100644 index ccf7973..0000000 --- a/V2/Itam/UnmanagedDevice/UnmanagedDevicePostRequestBody.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Itam.UnmanagedDevice -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UnmanagedDevicePostRequestBody : 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 UUID of the user this device is assigned to - public Guid? AssignedUserUid { get; set; } - /// The id of the location the device belongs to - public int? LocationId { get; set; } - /// The display name of the device to be created -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The id of the organization the device belongs to - public int? OrgId { get; set; } - /// The id of the role to use for this device. Must be a sub-role of Unmanaged Device - public int? RoleId { get; set; } - /// The SerialNumber to use for the new device -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SerialNumber { get; set; } -#nullable restore -#else - public string SerialNumber { get; set; } -#endif - /// The warranty end date for the device, in unix epoch seconds - public double? WarrantyEndDate { get; set; } - /// The warranty start date for the device, in unix epoch seconds - public double? WarrantyStartDate { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public UnmanagedDevicePostRequestBody() - { - 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::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDevicePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDevicePostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignedUserUid", n => { AssignedUserUid = n.GetGuidValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "orgId", n => { OrgId = n.GetIntValue(); } }, - { "roleId", n => { RoleId = n.GetIntValue(); } }, - { "serialNumber", n => { SerialNumber = n.GetStringValue(); } }, - { "warrantyEndDate", n => { WarrantyEndDate = n.GetDoubleValue(); } }, - { "warrantyStartDate", n => { WarrantyStartDate = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteGuidValue("assignedUserUid", AssignedUserUid); - writer.WriteIntValue("locationId", LocationId); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("orgId", OrgId); - writer.WriteIntValue("roleId", RoleId); - writer.WriteStringValue("serialNumber", SerialNumber); - writer.WriteDoubleValue("warrantyEndDate", WarrantyEndDate); - writer.WriteDoubleValue("warrantyStartDate", WarrantyStartDate); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Itam/UnmanagedDevice/UnmanagedDevicePostResponse.cs b/V2/Itam/UnmanagedDevice/UnmanagedDevicePostResponse.cs deleted file mode 100644 index de19eb8..0000000 --- a/V2/Itam/UnmanagedDevice/UnmanagedDevicePostResponse.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Itam.UnmanagedDevice -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UnmanagedDevicePostResponse : 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 nodeId property - public int? NodeId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public UnmanagedDevicePostResponse() - { - 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::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDevicePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDevicePostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "nodeId", n => { NodeId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("nodeId", NodeId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Itam/UnmanagedDevice/UnmanagedDeviceRequestBuilder.cs b/V2/Itam/UnmanagedDevice/UnmanagedDeviceRequestBuilder.cs deleted file mode 100644 index 72c9d8d..0000000 --- a/V2/Itam/UnmanagedDevice/UnmanagedDeviceRequestBuilder.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Itam.UnmanagedDevice.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Itam.UnmanagedDevice -{ - /// - /// Builds and executes requests for operations under \v2\itam\unmanaged-device - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class UnmanagedDeviceRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.itam.unmanagedDevice.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Itam.UnmanagedDevice.Item.WithNodeItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("nodeId", position); - return new global::NinjaOne.Client.V2.Itam.UnmanagedDevice.Item.WithNodeItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.itam.unmanagedDevice.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Itam.UnmanagedDevice.Item.WithNodeItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("nodeId", position); - return new global::NinjaOne.Client.V2.Itam.UnmanagedDevice.Item.WithNodeItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public UnmanagedDeviceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/itam/unmanaged-device", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public UnmanagedDeviceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/itam/unmanaged-device", rawUrl) - { - } - /// - /// Create an Unmanaged Device with the provided details - /// - /// A - /// The request body - /// 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 PostAsUnmanagedDevicePostResponseAsync(global::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDevicePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsUnmanagedDevicePostResponseAsync(global::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDevicePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDevicePostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create an Unmanaged Device with the provided details - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsUnmanagedDevicePostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDevicePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDevicePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDeviceResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create an Unmanaged Device with the provided details - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDevicePostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDevicePostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDeviceRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDeviceRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class UnmanagedDeviceRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Itam/UnmanagedDevice/UnmanagedDeviceResponse.cs b/V2/Itam/UnmanagedDevice/UnmanagedDeviceResponse.cs deleted file mode 100644 index fc5dc50..0000000 --- a/V2/Itam/UnmanagedDevice/UnmanagedDeviceResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Itam.UnmanagedDevice -{ - [Obsolete("This class is obsolete. Use UnmanagedDevicePostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UnmanagedDeviceResponse : global::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDevicePostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDeviceResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Itam.UnmanagedDevice.UnmanagedDeviceResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs.cs b/V2/Jobs/Jobs.cs deleted file mode 100644 index e4c1f78..0000000 --- a/V2/Jobs/Jobs.cs +++ /dev/null @@ -1,162 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Jobs : 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; } - /// Job start timestamp - public double? CreateTime { get; set; } - /// Job data -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_data? DataEscaped { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_data DataEscaped { get; set; } -#endif - /// Device information. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device? Device { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device Device { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// Job result - public global::NinjaOne.Client.V2.Jobs.Jobs_jobResult? JobResult { get; set; } - /// Job Status - public global::NinjaOne.Client.V2.Jobs.Jobs_jobStatus? JobStatus { get; set; } - /// Job Type - public global::NinjaOne.Client.V2.Jobs.Jobs_jobType? JobType { get; set; } - /// The primary error message. - public override string Message { get => MessageEscaped ?? string.Empty; } - /// Job message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif - /// Related PSA ticket ID -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_psaTicketId? PsaTicketId { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_psaTicketId PsaTicketId { get; set; } -#endif - /// Source configuration/policy element reference - public Guid? SourceConfigUid { get; set; } - /// Source configuration/policy element name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SourceName { get; set; } -#nullable restore -#else - public string SourceName { get; set; } -#endif - /// Job origin - public global::NinjaOne.Client.V2.Jobs.Jobs_sourceType? SourceType { get; set; } - /// Job subject -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subject { get; set; } -#nullable restore -#else - public string Subject { get; set; } -#endif - /// PSA ticket template - public int? TicketTemplateId { get; set; } - /// Task/Job UID (activity series UID) - public Guid? Uid { get; set; } - /// Job last updated - public double? UpdateTime { get; set; } - /// User identifier - public int? UserId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Jobs() - { - 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::NinjaOne.Client.V2.Jobs.Jobs CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "data", n => { DataEscaped = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_data.CreateFromDiscriminatorValue); } }, - { "device", n => { Device = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device.CreateFromDiscriminatorValue); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "jobResult", n => { JobResult = n.GetEnumValue(); } }, - { "jobStatus", n => { JobStatus = n.GetEnumValue(); } }, - { "jobType", n => { JobType = n.GetEnumValue(); } }, - { "message", n => { MessageEscaped = n.GetStringValue(); } }, - { "psaTicketId", n => { PsaTicketId = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_psaTicketId.CreateFromDiscriminatorValue); } }, - { "sourceConfigUid", n => { SourceConfigUid = n.GetGuidValue(); } }, - { "sourceName", n => { SourceName = n.GetStringValue(); } }, - { "sourceType", n => { SourceType = n.GetEnumValue(); } }, - { "subject", n => { Subject = n.GetStringValue(); } }, - { "ticketTemplateId", n => { TicketTemplateId = n.GetIntValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "userId", n => { UserId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteObjectValue("data", DataEscaped); - writer.WriteObjectValue("device", Device); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteEnumValue("jobResult", JobResult); - writer.WriteEnumValue("jobStatus", JobStatus); - writer.WriteEnumValue("jobType", JobType); - writer.WriteStringValue("message", MessageEscaped); - writer.WriteObjectValue("psaTicketId", PsaTicketId); - writer.WriteGuidValue("sourceConfigUid", SourceConfigUid); - writer.WriteStringValue("sourceName", SourceName); - writer.WriteEnumValue("sourceType", SourceType); - writer.WriteStringValue("subject", Subject); - writer.WriteIntValue("ticketTemplateId", TicketTemplateId); - writer.WriteGuidValue("uid", Uid); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteIntValue("userId", UserId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/JobsRequestBuilder.cs b/V2/Jobs/JobsRequestBuilder.cs deleted file mode 100644 index 5c35678..0000000 --- a/V2/Jobs/JobsRequestBuilder.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Builds and executes requests for operations under \v2\jobs - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class JobsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public JobsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/jobs{?df*,jobType*,lang*,tz*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public JobsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/jobs{?df*,jobType*,lang*,tz*}", rawUrl) - { - } - /// - /// Returns list of running jobs - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Jobs.Jobs.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of running jobs - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Jobs.JobsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Jobs.JobsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of running jobs - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class JobsRequestBuilderGetQueryParameters - { - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Job Type filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("jobType")] - public string? JobType { get; set; } -#nullable restore -#else - [QueryParameter("jobType")] - public string JobType { get; set; } -#endif - /// Language tag -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("lang")] - public string? Lang { get; set; } -#nullable restore -#else - [QueryParameter("lang")] - public string Lang { get; set; } -#endif - /// Time Zone -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("tz")] - public string? Tz { get; set; } -#nullable restore -#else - [QueryParameter("tz")] - public string Tz { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class JobsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_data.cs b/V2/Jobs/Jobs_data.cs deleted file mode 100644 index 8093f37..0000000 --- a/V2/Jobs/Jobs_data.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Job data - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_data : 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. - /// - public Jobs_data() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_data CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_data(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device.cs b/V2/Jobs/Jobs_device.cs deleted file mode 100644 index 7a81db3..0000000 --- a/V2/Jobs/Jobs_device.cs +++ /dev/null @@ -1,206 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Device information. - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device : 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; } - /// Approval Status - public global::NinjaOne.Client.V2.Jobs.Jobs_device_approvalStatus? ApprovalStatus { get; set; } - /// Node (Device) Owner UUID - public Guid? AssignedOwnerUid { get; set; } - /// Created - public double? Created { get; set; } - /// Display Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// DNS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DnsName { get; set; } -#nullable restore -#else - public string DnsName { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_fields Fields { get; set; } -#endif - /// Node (Device) identifier - public int? Id { get; set; } - /// Last Contact - public double? LastContact { get; set; } - /// Last data submission timestamp - public double? LastUpdate { get; set; } - /// Location identifier - public int? LocationId { get; set; } - /// Maintenance mode status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_maintenance? Maintenance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_maintenance Maintenance { get; set; } -#endif - /// NETBIOS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NetbiosName { get; set; } -#nullable restore -#else - public string NetbiosName { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Jobs.Jobs_device_nodeClass? NodeClass { get; set; } - /// Node Role identifier - public int? NodeRoleId { get; set; } - /// Is Offline? - public bool? Offline { get; set; } - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent Node identifier - public int? ParentDeviceId { get; set; } - /// Assigned policy ID (overrides organization and location policy mapping) - public int? PolicyId { get; set; } - /// Expanded entity references -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references? References { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references References { get; set; } -#endif - /// Node Role policy ID based on organization and location Policy Mapping - public int? RolePolicyId { get; set; } - /// System Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SystemName { get; set; } -#nullable restore -#else - public string SystemName { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Node (Device) UUID - public Guid? Uid { get; set; } - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "approvalStatus", n => { ApprovalStatus = n.GetEnumValue(); } }, - { "assignedOwnerUid", n => { AssignedOwnerUid = n.GetGuidValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "dnsName", n => { DnsName = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastContact", n => { LastContact = n.GetDoubleValue(); } }, - { "lastUpdate", n => { LastUpdate = n.GetDoubleValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "maintenance", n => { Maintenance = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_maintenance.CreateFromDiscriminatorValue); } }, - { "netbiosName", n => { NetbiosName = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "offline", n => { Offline = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentDeviceId", n => { ParentDeviceId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - { "references", n => { References = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references.CreateFromDiscriminatorValue); } }, - { "rolePolicyId", n => { RolePolicyId = n.GetIntValue(); } }, - { "systemName", n => { SystemName = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("approvalStatus", ApprovalStatus); - writer.WriteGuidValue("assignedOwnerUid", AssignedOwnerUid); - writer.WriteDoubleValue("created", Created); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("dnsName", DnsName); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteDoubleValue("lastContact", LastContact); - writer.WriteDoubleValue("lastUpdate", LastUpdate); - writer.WriteIntValue("locationId", LocationId); - writer.WriteObjectValue("maintenance", Maintenance); - writer.WriteStringValue("netbiosName", NetbiosName); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteBoolValue("offline", Offline); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentDeviceId", ParentDeviceId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteObjectValue("references", References); - writer.WriteIntValue("rolePolicyId", RolePolicyId); - writer.WriteStringValue("systemName", SystemName); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_approvalStatus.cs b/V2/Jobs/Jobs_device_approvalStatus.cs deleted file mode 100644 index cdc711d..0000000 --- a/V2/Jobs/Jobs_device_approvalStatus.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// Approval Status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_device_approvalStatus - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "APPROVED")] - #pragma warning disable CS1591 - APPROVED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Jobs/Jobs_device_fields.cs b/V2/Jobs/Jobs_device_fields.cs deleted file mode 100644 index 06d4251..0000000 --- a/V2/Jobs/Jobs_device_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_fields : 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. - /// - public Jobs_device_fields() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_maintenance.cs b/V2/Jobs/Jobs_device_maintenance.cs deleted file mode 100644 index d5424fe..0000000 --- a/V2/Jobs/Jobs_device_maintenance.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Maintenance mode status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_maintenance : 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; } - /// Maintenance mode end time - public double? End { get; set; } - /// Maintenance reason message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ReasonMessage { get; set; } -#nullable restore -#else - public string ReasonMessage { get; set; } -#endif - /// Maintenance mode start time - public double? Start { get; set; } - /// Maintenance mode status - public global::NinjaOne.Client.V2.Jobs.Jobs_device_maintenance_status? Status { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_maintenance() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_maintenance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_maintenance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "end", n => { End = n.GetDoubleValue(); } }, - { "reasonMessage", n => { ReasonMessage = n.GetStringValue(); } }, - { "start", n => { Start = n.GetDoubleValue(); } }, - { "status", n => { Status = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("end", End); - writer.WriteStringValue("reasonMessage", ReasonMessage); - writer.WriteDoubleValue("start", Start); - writer.WriteEnumValue("status", Status); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_maintenance_status.cs b/V2/Jobs/Jobs_device_maintenance_status.cs deleted file mode 100644 index 93f1ead..0000000 --- a/V2/Jobs/Jobs_device_maintenance_status.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// Maintenance mode status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_device_maintenance_status - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_MAINTENANCE")] - #pragma warning disable CS1591 - IN_MAINTENANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILED")] - #pragma warning disable CS1591 - FAILED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Jobs/Jobs_device_nodeClass.cs b/V2/Jobs/Jobs_device_nodeClass.cs deleted file mode 100644 index f8584a7..0000000 --- a/V2/Jobs/Jobs_device_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_device_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Jobs/Jobs_device_references.cs b/V2/Jobs/Jobs_device_references.cs deleted file mode 100644 index 901d376..0000000 --- a/V2/Jobs/Jobs_device_references.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Expanded entity references - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references : 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; } - /// Assigned device owner -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_assignedOwner? AssignedOwner { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_assignedOwner AssignedOwner { get; set; } -#endif - /// Device Backup Bandwidth Throttle -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_backupBandwidthThrottle? BackupBandwidthThrottle { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_backupBandwidthThrottle BackupBandwidthThrottle { get; set; } -#endif - /// Device Backup Usage -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_backupUsage? BackupUsage { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_backupUsage BackupUsage { get; set; } -#endif - /// Location -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_location? Location { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_location Location { get; set; } -#endif - /// Organization -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_organization? Organization { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_organization Organization { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_policy? Policy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_policy Policy { get; set; } -#endif - /// Device Role -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_role? Role { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_role Role { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_rolePolicy? RolePolicy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_rolePolicy RolePolicy { get; set; } -#endif - /// Warranty Info -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_warranty? Warranty { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_warranty Warranty { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignedOwner", n => { AssignedOwner = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_assignedOwner.CreateFromDiscriminatorValue); } }, - { "backupBandwidthThrottle", n => { BackupBandwidthThrottle = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_backupBandwidthThrottle.CreateFromDiscriminatorValue); } }, - { "backupUsage", n => { BackupUsage = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_backupUsage.CreateFromDiscriminatorValue); } }, - { "location", n => { Location = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_location.CreateFromDiscriminatorValue); } }, - { "organization", n => { Organization = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_organization.CreateFromDiscriminatorValue); } }, - { "policy", n => { Policy = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_policy.CreateFromDiscriminatorValue); } }, - { "role", n => { Role = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_role.CreateFromDiscriminatorValue); } }, - { "rolePolicy", n => { RolePolicy = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_rolePolicy.CreateFromDiscriminatorValue); } }, - { "warranty", n => { Warranty = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_warranty.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assignedOwner", AssignedOwner); - writer.WriteObjectValue("backupBandwidthThrottle", BackupBandwidthThrottle); - writer.WriteObjectValue("backupUsage", BackupUsage); - writer.WriteObjectValue("location", Location); - writer.WriteObjectValue("organization", Organization); - writer.WriteObjectValue("policy", Policy); - writer.WriteObjectValue("role", Role); - writer.WriteObjectValue("rolePolicy", RolePolicy); - writer.WriteObjectValue("warranty", Warranty); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_assignedOwner.cs b/V2/Jobs/Jobs_device_references_assignedOwner.cs deleted file mode 100644 index 3b4a4ba..0000000 --- a/V2/Jobs/Jobs_device_references_assignedOwner.cs +++ /dev/null @@ -1,190 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Assigned device owner - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_assignedOwner : 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; } - /// The administrator property - public bool? Administrator { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Device IDs which end-user is authorized to access -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DeviceIds { get; set; } -#nullable restore -#else - public List DeviceIds { get; set; } -#endif - /// The email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The enabled property - public bool? Enabled { get; set; } - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_assignedOwner_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_assignedOwner_fields Fields { get; set; } -#endif - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// The invitationStatus property - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_assignedOwner_invitationStatus? InvitationStatus { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// The mfaConfigured property - public bool? MfaConfigured { get; set; } - /// The mustChangePw property - public bool? MustChangePw { get; set; } - /// The notifyAllClients property - public bool? NotifyAllClients { get; set; } - /// Identifier of organization for end-users - public int? OrganizationId { get; set; } - /// The permitAllClients property - public bool? PermitAllClients { get; set; } - /// The phone property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the user. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// User universally unique identifier - public Guid? Uid { get; set; } - /// The userType property - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_assignedOwner_userType? UserType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_assignedOwner() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_assignedOwner CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_assignedOwner(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "administrator", n => { Administrator = n.GetBoolValue(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "deviceIds", n => { DeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_assignedOwner_fields.CreateFromDiscriminatorValue); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "notifyAllClients", n => { NotifyAllClients = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "permitAllClients", n => { PermitAllClients = n.GetBoolValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userType", n => { UserType = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("administrator", Administrator); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteCollectionOfPrimitiveValues("deviceIds", DeviceIds); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteBoolValue("notifyAllClients", NotifyAllClients); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteBoolValue("permitAllClients", PermitAllClients); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteEnumValue("userType", UserType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_assignedOwner_fields.cs b/V2/Jobs/Jobs_device_references_assignedOwner_fields.cs deleted file mode 100644 index 71acb42..0000000 --- a/V2/Jobs/Jobs_device_references_assignedOwner_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_assignedOwner_fields : 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. - /// - public Jobs_device_references_assignedOwner_fields() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_assignedOwner_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_assignedOwner_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_assignedOwner_invitationStatus.cs b/V2/Jobs/Jobs_device_references_assignedOwner_invitationStatus.cs deleted file mode 100644 index 66c0468..0000000 --- a/V2/Jobs/Jobs_device_references_assignedOwner_invitationStatus.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Jobs_device_references_assignedOwner_invitationStatus - #pragma warning restore CS1591 - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Jobs/Jobs_device_references_assignedOwner_userType.cs b/V2/Jobs/Jobs_device_references_assignedOwner_userType.cs deleted file mode 100644 index 8082c67..0000000 --- a/V2/Jobs/Jobs_device_references_assignedOwner_userType.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Jobs_device_references_assignedOwner_userType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - } -} diff --git a/V2/Jobs/Jobs_device_references_backupBandwidthThrottle.cs b/V2/Jobs/Jobs_device_references_backupBandwidthThrottle.cs deleted file mode 100644 index 61e8931..0000000 --- a/V2/Jobs/Jobs_device_references_backupBandwidthThrottle.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Device Backup Bandwidth Throttle - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_backupBandwidthThrottle : 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; } - /// Whether bandwidth throttle is enabled/true or disabled/false - public bool? Enabled { get; set; } - /// Bandwidth nonwork hours limit - public int? NonWorkHoursKbps { get; set; } - /// Bandwidth nonwork hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NonWorkHoursUserUnit { get; set; } -#nullable restore -#else - public string NonWorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work hours limit - public int? WorkHoursKbps { get; set; } - /// Bandwidth work hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? WorkHoursUserUnit { get; set; } -#nullable restore -#else - public string WorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work schedule -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_backupBandwidthThrottle_workSchedule? WorkSchedule { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_backupBandwidthThrottle_workSchedule WorkSchedule { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_backupBandwidthThrottle() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_backupBandwidthThrottle CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_backupBandwidthThrottle(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "nonWorkHoursKbps", n => { NonWorkHoursKbps = n.GetIntValue(); } }, - { "nonWorkHoursUserUnit", n => { NonWorkHoursUserUnit = n.GetStringValue(); } }, - { "workHoursKbps", n => { WorkHoursKbps = n.GetIntValue(); } }, - { "workHoursUserUnit", n => { WorkHoursUserUnit = n.GetStringValue(); } }, - { "workSchedule", n => { WorkSchedule = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_backupBandwidthThrottle_workSchedule.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("nonWorkHoursKbps", NonWorkHoursKbps); - writer.WriteStringValue("nonWorkHoursUserUnit", NonWorkHoursUserUnit); - writer.WriteIntValue("workHoursKbps", WorkHoursKbps); - writer.WriteStringValue("workHoursUserUnit", WorkHoursUserUnit); - writer.WriteObjectValue("workSchedule", WorkSchedule); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_backupBandwidthThrottle_workSchedule.cs b/V2/Jobs/Jobs_device_references_backupBandwidthThrottle_workSchedule.cs deleted file mode 100644 index 6a0d292..0000000 --- a/V2/Jobs/Jobs_device_references_backupBandwidthThrottle_workSchedule.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Bandwidth work schedule - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_backupBandwidthThrottle_workSchedule : 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; } - /// Work schedule end hour (0 to 23) - public int? EndHour { get; set; } - /// Work schedule end minute (0 to 59) - public int? EndMinute { get; set; } - /// Work schedule start hour (0 to 23) - public int? StartHour { get; set; } - /// Work schedule start minute (0 to 59) - public int? StartMinute { get; set; } - /// Work schedule week days list -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? WeekDays { get; set; } -#nullable restore -#else - public List WeekDays { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_backupBandwidthThrottle_workSchedule() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_backupBandwidthThrottle_workSchedule CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_backupBandwidthThrottle_workSchedule(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endHour", n => { EndHour = n.GetIntValue(); } }, - { "endMinute", n => { EndMinute = n.GetIntValue(); } }, - { "startHour", n => { StartHour = n.GetIntValue(); } }, - { "startMinute", n => { StartMinute = n.GetIntValue(); } }, - { "weekDays", n => { WeekDays = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("endHour", EndHour); - writer.WriteIntValue("endMinute", EndMinute); - writer.WriteIntValue("startHour", StartHour); - writer.WriteIntValue("startMinute", StartMinute); - writer.WriteCollectionOfPrimitiveValues("weekDays", WeekDays); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_backupUsage.cs b/V2/Jobs/Jobs_device_references_backupUsage.cs deleted file mode 100644 index f72fc5e..0000000 --- a/V2/Jobs/Jobs_device_references_backupUsage.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Device Backup Usage - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_backupUsage : 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; } - /// Revisions cloud file folder size - public long? CloudFileFolderSize { get; set; } - /// Revisions cloud image size - public long? CloudImageSize { get; set; } - /// Revisions cloud image v2 size - public long? CloudImageV2Size { get; set; } - /// Revisions cloud network share size - public long? CloudNetworkShareSize { get; set; } - /// Revisions cloud total size - public long? CloudTotalSize { get; private set; } - /// Last failed job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastFailedBackupJob { get; set; } - /// Last successful job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastSuccessfulBackupJob { get; set; } - /// Revisions local file folder size - public long? LocalFileFolderSize { get; set; } - /// Revisions local image size - public long? LocalImageSize { get; set; } - /// Revisions local image v2 size - public long? LocalImageV2Size { get; set; } - /// Revisions local total size - public long? LocalTotalSize { get; private set; } - /// Revisions current size - public long? RevisionsCurrentSize { get; set; } - /// Revisions deleted size - public long? RevisionsDeletedSize { get; set; } - /// Revisions previous size - public long? RevisionsPreviousSize { get; set; } - /// Revisions total size - public long? RevisionsTotalSize { get; private set; } - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_backupUsage() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_backupUsage CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_backupUsage(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cloudFileFolderSize", n => { CloudFileFolderSize = n.GetLongValue(); } }, - { "cloudImageSize", n => { CloudImageSize = n.GetLongValue(); } }, - { "cloudImageV2Size", n => { CloudImageV2Size = n.GetLongValue(); } }, - { "cloudNetworkShareSize", n => { CloudNetworkShareSize = n.GetLongValue(); } }, - { "cloudTotalSize", n => { CloudTotalSize = n.GetLongValue(); } }, - { "lastFailedBackupJob", n => { LastFailedBackupJob = n.GetDoubleValue(); } }, - { "lastSuccessfulBackupJob", n => { LastSuccessfulBackupJob = n.GetDoubleValue(); } }, - { "localFileFolderSize", n => { LocalFileFolderSize = n.GetLongValue(); } }, - { "localImageSize", n => { LocalImageSize = n.GetLongValue(); } }, - { "localImageV2Size", n => { LocalImageV2Size = n.GetLongValue(); } }, - { "localTotalSize", n => { LocalTotalSize = n.GetLongValue(); } }, - { "revisionsCurrentSize", n => { RevisionsCurrentSize = n.GetLongValue(); } }, - { "revisionsDeletedSize", n => { RevisionsDeletedSize = n.GetLongValue(); } }, - { "revisionsPreviousSize", n => { RevisionsPreviousSize = n.GetLongValue(); } }, - { "revisionsTotalSize", n => { RevisionsTotalSize = n.GetLongValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteLongValue("cloudFileFolderSize", CloudFileFolderSize); - writer.WriteLongValue("cloudImageSize", CloudImageSize); - writer.WriteLongValue("cloudImageV2Size", CloudImageV2Size); - writer.WriteLongValue("cloudNetworkShareSize", CloudNetworkShareSize); - writer.WriteDoubleValue("lastFailedBackupJob", LastFailedBackupJob); - writer.WriteDoubleValue("lastSuccessfulBackupJob", LastSuccessfulBackupJob); - writer.WriteLongValue("localFileFolderSize", LocalFileFolderSize); - writer.WriteLongValue("localImageSize", LocalImageSize); - writer.WriteLongValue("localImageV2Size", LocalImageV2Size); - writer.WriteLongValue("revisionsCurrentSize", RevisionsCurrentSize); - writer.WriteLongValue("revisionsDeletedSize", RevisionsDeletedSize); - writer.WriteLongValue("revisionsPreviousSize", RevisionsPreviousSize); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_location.cs b/V2/Jobs/Jobs_device_references_location.cs deleted file mode 100644 index 54cf213..0000000 --- a/V2/Jobs/Jobs_device_references_location.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_location : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_location_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_location_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_location_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_location_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_location() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_location CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_location(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_location_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_location_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_location_fields.cs b/V2/Jobs/Jobs_device_references_location_fields.cs deleted file mode 100644 index 6cfddf8..0000000 --- a/V2/Jobs/Jobs_device_references_location_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_location_fields : 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. - /// - public Jobs_device_references_location_fields() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_location_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_location_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_location_userData.cs b/V2/Jobs/Jobs_device_references_location_userData.cs deleted file mode 100644 index 3b30918..0000000 --- a/V2/Jobs/Jobs_device_references_location_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_location_userData : 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. - /// - public Jobs_device_references_location_userData() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_location_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_location_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_organization.cs b/V2/Jobs/Jobs_device_references_organization.cs deleted file mode 100644 index c885cf0..0000000 --- a/V2/Jobs/Jobs_device_references_organization.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_organization : 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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_organization_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_organization_fields Fields { get; set; } -#endif - /// Organization identifier - public int? Id { get; set; } - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_organization_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_organization_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_organization_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_organization() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_organization CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_organization(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_organization_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_organization_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_organization_fields.cs b/V2/Jobs/Jobs_device_references_organization_fields.cs deleted file mode 100644 index 7db53e1..0000000 --- a/V2/Jobs/Jobs_device_references_organization_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_organization_fields : 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. - /// - public Jobs_device_references_organization_fields() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_organization_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_organization_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_organization_nodeApprovalMode.cs b/V2/Jobs/Jobs_device_references_organization_nodeApprovalMode.cs deleted file mode 100644 index 6b85e98..0000000 --- a/V2/Jobs/Jobs_device_references_organization_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_device_references_organization_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Jobs/Jobs_device_references_organization_userData.cs b/V2/Jobs/Jobs_device_references_organization_userData.cs deleted file mode 100644 index 7e56c3f..0000000 --- a/V2/Jobs/Jobs_device_references_organization_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_organization_userData : 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. - /// - public Jobs_device_references_organization_userData() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_organization_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_organization_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_policy.cs b/V2/Jobs/Jobs_device_references_policy.cs deleted file mode 100644 index a319cda..0000000 --- a/V2/Jobs/Jobs_device_references_policy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_policy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_policy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_policy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_policy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_policy() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_policy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_policy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_policy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_policy_fields.cs b/V2/Jobs/Jobs_device_references_policy_fields.cs deleted file mode 100644 index 3cc5e3d..0000000 --- a/V2/Jobs/Jobs_device_references_policy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_policy_fields : 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. - /// - public Jobs_device_references_policy_fields() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_policy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_policy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_policy_nodeClass.cs b/V2/Jobs/Jobs_device_references_policy_nodeClass.cs deleted file mode 100644 index 858edb1..0000000 --- a/V2/Jobs/Jobs_device_references_policy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_device_references_policy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Jobs/Jobs_device_references_role.cs b/V2/Jobs/Jobs_device_references_role.cs deleted file mode 100644 index 613918c..0000000 --- a/V2/Jobs/Jobs_device_references_role.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Device Role - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_role : 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; } - /// Chassis Type - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_role_chassisType? ChassisType { get; set; } - /// Date created - public double? Created { get; set; } - /// Is custom node role? - public bool? Custom { get; set; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_role_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_role_fields Fields { get; set; } -#endif - /// Icon -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Icon { get; set; } -#nullable restore -#else - public string Icon { get; set; } -#endif - /// Device Role identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_role_nodeClass? NodeClass { get; set; } - /// Node Role Parent Id - public int? NodeRoleParentId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_role() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_role CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_role(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "chassisType", n => { ChassisType = n.GetEnumValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "custom", n => { Custom = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_role_fields.CreateFromDiscriminatorValue); } }, - { "icon", n => { Icon = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleParentId", n => { NodeRoleParentId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("chassisType", ChassisType); - writer.WriteDoubleValue("created", Created); - writer.WriteBoolValue("custom", Custom); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("icon", Icon); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleParentId", NodeRoleParentId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_rolePolicy.cs b/V2/Jobs/Jobs_device_references_rolePolicy.cs deleted file mode 100644 index d1a1f4a..0000000 --- a/V2/Jobs/Jobs_device_references_rolePolicy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_rolePolicy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_rolePolicy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_rolePolicy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Jobs.Jobs_device_references_rolePolicy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_rolePolicy() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_rolePolicy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_rolePolicy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Jobs.Jobs_device_references_rolePolicy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_rolePolicy_fields.cs b/V2/Jobs/Jobs_device_references_rolePolicy_fields.cs deleted file mode 100644 index 311c28d..0000000 --- a/V2/Jobs/Jobs_device_references_rolePolicy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_rolePolicy_fields : 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. - /// - public Jobs_device_references_rolePolicy_fields() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_rolePolicy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_rolePolicy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_rolePolicy_nodeClass.cs b/V2/Jobs/Jobs_device_references_rolePolicy_nodeClass.cs deleted file mode 100644 index 6462a8d..0000000 --- a/V2/Jobs/Jobs_device_references_rolePolicy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_device_references_rolePolicy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Jobs/Jobs_device_references_role_chassisType.cs b/V2/Jobs/Jobs_device_references_role_chassisType.cs deleted file mode 100644 index 9c34548..0000000 --- a/V2/Jobs/Jobs_device_references_role_chassisType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// Chassis Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_device_references_role_chassisType - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "DESKTOP")] - #pragma warning disable CS1591 - DESKTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "LAPTOP")] - #pragma warning disable CS1591 - LAPTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "MOBILE")] - #pragma warning disable CS1591 - MOBILE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Jobs/Jobs_device_references_role_fields.cs b/V2/Jobs/Jobs_device_references_role_fields.cs deleted file mode 100644 index 0495c0f..0000000 --- a/V2/Jobs/Jobs_device_references_role_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_role_fields : 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. - /// - public Jobs_device_references_role_fields() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_role_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_role_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_references_role_nodeClass.cs b/V2/Jobs/Jobs_device_references_role_nodeClass.cs deleted file mode 100644 index b5cc766..0000000 --- a/V2/Jobs/Jobs_device_references_role_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_device_references_role_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Jobs/Jobs_device_references_warranty.cs b/V2/Jobs/Jobs_device_references_warranty.cs deleted file mode 100644 index cc5ef27..0000000 --- a/V2/Jobs/Jobs_device_references_warranty.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Warranty Info - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_references_warranty : 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; } - /// Warranty End Date (Seconds) - public double? EndDate { get; set; } - /// Manufacturer Fulfillment Date - public double? ManufacturerFulfillmentDate { get; set; } - /// Warranty Start Date (Seconds) - public double? StartDate { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Jobs_device_references_warranty() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_references_warranty CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_references_warranty(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endDate", n => { EndDate = n.GetDoubleValue(); } }, - { "manufacturerFulfillmentDate", n => { ManufacturerFulfillmentDate = n.GetDoubleValue(); } }, - { "startDate", n => { StartDate = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("endDate", EndDate); - writer.WriteDoubleValue("manufacturerFulfillmentDate", ManufacturerFulfillmentDate); - writer.WriteDoubleValue("startDate", StartDate); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_device_userData.cs b/V2/Jobs/Jobs_device_userData.cs deleted file mode 100644 index 9618d95..0000000 --- a/V2/Jobs/Jobs_device_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_device_userData : 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. - /// - public Jobs_device_userData() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_device_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_device_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_jobResult.cs b/V2/Jobs/Jobs_jobResult.cs deleted file mode 100644 index 0cbaa07..0000000 --- a/V2/Jobs/Jobs_jobResult.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// Job result - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_jobResult - { - [EnumMember(Value = "SUCCESS")] - #pragma warning disable CS1591 - SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILURE")] - #pragma warning disable CS1591 - FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "UNSUPPORTED")] - #pragma warning disable CS1591 - UNSUPPORTED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNCOMPLETED")] - #pragma warning disable CS1591 - UNCOMPLETED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Jobs/Jobs_jobStatus.cs b/V2/Jobs/Jobs_jobStatus.cs deleted file mode 100644 index 8586571..0000000 --- a/V2/Jobs/Jobs_jobStatus.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// Job Status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_jobStatus - { - [EnumMember(Value = "START_REQUESTED")] - #pragma warning disable CS1591 - START_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "STARTED")] - #pragma warning disable CS1591 - STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_PROCESS")] - #pragma warning disable CS1591 - IN_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "COMPLETED")] - #pragma warning disable CS1591 - COMPLETED, - #pragma warning restore CS1591 - [EnumMember(Value = "CANCEL_REQUESTED")] - #pragma warning disable CS1591 - CANCEL_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "CANCELLED")] - #pragma warning disable CS1591 - CANCELLED, - #pragma warning restore CS1591 - [EnumMember(Value = "WAITING_FOR_USER_RESPONSE")] - #pragma warning disable CS1591 - WAITING_FOR_USER_RESPONSE, - #pragma warning restore CS1591 - [EnumMember(Value = "TRIGGERED")] - #pragma warning disable CS1591 - TRIGGERED, - #pragma warning restore CS1591 - [EnumMember(Value = "RESET")] - #pragma warning disable CS1591 - RESET, - #pragma warning restore CS1591 - [EnumMember(Value = "ACKNOWLEDGED")] - #pragma warning disable CS1591 - ACKNOWLEDGED, - #pragma warning restore CS1591 - [EnumMember(Value = "DISABLED")] - #pragma warning disable CS1591 - DISABLED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Jobs/Jobs_jobType.cs b/V2/Jobs/Jobs_jobType.cs deleted file mode 100644 index d3169b1..0000000 --- a/V2/Jobs/Jobs_jobType.cs +++ /dev/null @@ -1,163 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// Job Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_jobType - { - [EnumMember(Value = "ACTIONSET")] - #pragma warning disable CS1591 - ACTIONSET, - #pragma warning restore CS1591 - [EnumMember(Value = "ACTION")] - #pragma warning disable CS1591 - ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION")] - #pragma warning disable CS1591 - CONDITION, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_ACTIONSET")] - #pragma warning disable CS1591 - CONDITION_ACTIONSET, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_ACTION")] - #pragma warning disable CS1591 - CONDITION_ACTION, - #pragma warning restore CS1591 - [EnumMember(Value = "ANTIVIRUS")] - #pragma warning disable CS1591 - ANTIVIRUS, - #pragma warning restore CS1591 - [EnumMember(Value = "PATCH_MANAGEMENT")] - #pragma warning disable CS1591 - PATCH_MANAGEMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER")] - #pragma warning disable CS1591 - TEAMVIEWER, - #pragma warning restore CS1591 - [EnumMember(Value = "MONITOR")] - #pragma warning disable CS1591 - MONITOR, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "COMMENT")] - #pragma warning disable CS1591 - COMMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT")] - #pragma warning disable CS1591 - SHADOWPROTECT, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER")] - #pragma warning disable CS1591 - IMAGEMANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "HELP_REQUEST")] - #pragma warning disable CS1591 - HELP_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_PATCH_MANAGEMENT")] - #pragma warning disable CS1591 - SOFTWARE_PATCH_MANAGEMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SPLASHTOP")] - #pragma warning disable CS1591 - SPLASHTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY")] - #pragma warning disable CS1591 - CLOUDBERRY, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUDBERRY_BACKUP")] - #pragma warning disable CS1591 - CLOUDBERRY_BACKUP, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK")] - #pragma warning disable CS1591 - SCHEDULED_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "RDP")] - #pragma warning disable CS1591 - RDP, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPTING")] - #pragma warning disable CS1591 - SCRIPTING, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURITY")] - #pragma warning disable CS1591 - SECURITY, - #pragma warning restore CS1591 - [EnumMember(Value = "REMOTE_TOOLS")] - #pragma warning disable CS1591 - REMOTE_TOOLS, - #pragma warning restore CS1591 - [EnumMember(Value = "VIRTUALIZATION")] - #pragma warning disable CS1591 - VIRTUALIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "PSA")] - #pragma warning disable CS1591 - PSA, - #pragma warning restore CS1591 - [EnumMember(Value = "MDM")] - #pragma warning disable CS1591 - MDM, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_REMOTE")] - #pragma warning disable CS1591 - NINJA_REMOTE, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_QUICK_CONNECT")] - #pragma warning disable CS1591 - NINJA_QUICK_CONNECT, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_NETWORK_DISCOVERY")] - #pragma warning disable CS1591 - NINJA_NETWORK_DISCOVERY, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_BACKUP")] - #pragma warning disable CS1591 - NINJA_BACKUP, - #pragma warning restore CS1591 - [EnumMember(Value = "NINJA_TICKETING")] - #pragma warning disable CS1591 - NINJA_TICKETING, - #pragma warning restore CS1591 - [EnumMember(Value = "KNOWLEDGE_BASE")] - #pragma warning disable CS1591 - KNOWLEDGE_BASE, - #pragma warning restore CS1591 - [EnumMember(Value = "RELATED_ITEM")] - #pragma warning disable CS1591 - RELATED_ITEM, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_CHECKLIST")] - #pragma warning disable CS1591 - CLIENT_CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST_TEMPLATE")] - #pragma warning disable CS1591 - CHECKLIST_TEMPLATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENTATION")] - #pragma warning disable CS1591 - DOCUMENTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MICROSOFT_INTUNE")] - #pragma warning disable CS1591 - MICROSOFT_INTUNE, - #pragma warning restore CS1591 - [EnumMember(Value = "DYNAMIC_POLICY")] - #pragma warning disable CS1591 - DYNAMIC_POLICY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Jobs/Jobs_psaTicketId.cs b/V2/Jobs/Jobs_psaTicketId.cs deleted file mode 100644 index 5cada1c..0000000 --- a/V2/Jobs/Jobs_psaTicketId.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// - /// Related PSA ticket ID - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Jobs_psaTicketId : 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. - /// - public Jobs_psaTicketId() - { - 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::NinjaOne.Client.V2.Jobs.Jobs_psaTicketId CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Jobs.Jobs_psaTicketId(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Jobs/Jobs_sourceType.cs b/V2/Jobs/Jobs_sourceType.cs deleted file mode 100644 index 778f57c..0000000 --- a/V2/Jobs/Jobs_sourceType.cs +++ /dev/null @@ -1,371 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Jobs -{ - /// Job origin - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Jobs_sourceType - { - [EnumMember(Value = "AGENT_OFFLINE")] - #pragma warning disable CS1591 - AGENT_OFFLINE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_CPU")] - #pragma warning disable CS1591 - CONDITION_AGENT_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_MEMORY")] - #pragma warning disable CS1591 - CONDITION_AGENT_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_NETWORK")] - #pragma warning disable CS1591 - CONDITION_AGENT_NETWORK, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_DISK_IO")] - #pragma warning disable CS1591 - CONDITION_AGENT_DISK_IO, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_DISK_FREE_SPACE")] - #pragma warning disable CS1591 - CONDITION_AGENT_DISK_FREE_SPACE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_DISK_USAGE")] - #pragma warning disable CS1591 - CONDITION_AGENT_DISK_USAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_CVSS_SCORE")] - #pragma warning disable CS1591 - CONDITION_AGENT_CVSS_SCORE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_AGENT_PATCH_LAST_INSTALLED")] - #pragma warning disable CS1591 - CONDITION_AGENT_PATCH_LAST_INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_CPU")] - #pragma warning disable CS1591 - CONDITION_NMS_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_MEMORY")] - #pragma warning disable CS1591 - CONDITION_NMS_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_NETWORK_TRAFFIC_BITS")] - #pragma warning disable CS1591 - CONDITION_NMS_NETWORK_TRAFFIC_BITS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_NETWORK_TRAFFIC_PERCENT")] - #pragma warning disable CS1591 - CONDITION_NMS_NETWORK_TRAFFIC_PERCENT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_NETWORK_STATUS")] - #pragma warning disable CS1591 - CONDITION_NMS_NETWORK_STATUS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_NETWORK_STATUS_CHANGE")] - #pragma warning disable CS1591 - CONDITION_NMS_NETWORK_STATUS_CHANGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_NMS_SYSTEM_UPTIME")] - #pragma warning disable CS1591 - CONDITION_NMS_SYSTEM_UPTIME, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PING")] - #pragma warning disable CS1591 - CONDITION_PING, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PING_LATENCY")] - #pragma warning disable CS1591 - CONDITION_PING_LATENCY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PING_PACKET_LOSS")] - #pragma warning disable CS1591 - CONDITION_PING_PACKET_LOSS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PING_RESPONSE")] - #pragma warning disable CS1591 - CONDITION_PING_RESPONSE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SYSTEM_UPTIME")] - #pragma warning disable CS1591 - CONDITION_SYSTEM_UPTIME, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SMART_STATUS_DEGRATED")] - #pragma warning disable CS1591 - CONDITION_SMART_STATUS_DEGRATED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_RAID_HEALTH_STATUS")] - #pragma warning disable CS1591 - CONDITION_RAID_HEALTH_STATUS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SCRIPT_RESULT")] - #pragma warning disable CS1591 - CONDITION_SCRIPT_RESULT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_HTTP")] - #pragma warning disable CS1591 - CONDITION_HTTP, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_HTTP_RESPONSE")] - #pragma warning disable CS1591 - CONDITION_HTTP_RESPONSE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PORT")] - #pragma warning disable CS1591 - CONDITION_PORT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PORT_SCAN")] - #pragma warning disable CS1591 - CONDITION_PORT_SCAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SYSLOG")] - #pragma warning disable CS1591 - CONDITION_SYSLOG, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_CONFIGURATION_FILE")] - #pragma warning disable CS1591 - CONDITION_CONFIGURATION_FILE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SNMPTRAP")] - #pragma warning disable CS1591 - CONDITION_SNMPTRAP, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_CRITICAL_EVENT")] - #pragma warning disable CS1591 - CONDITION_CRITICAL_EVENT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_DNS")] - #pragma warning disable CS1591 - CONDITION_DNS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_EMAIL")] - #pragma warning disable CS1591 - CONDITION_EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_CUSTOM_SNMP")] - #pragma warning disable CS1591 - CONDITION_CUSTOM_SNMP, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_COMPOUND")] - #pragma warning disable CS1591 - CONDITION_COMPOUND, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_CREATE")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_CREATE, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_UPDATE")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_UPDATE, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_DELETE")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_DELETE, - #pragma warning restore CS1591 - [EnumMember(Value = "SHADOWPROTECT_BACKUPJOB_EXECUTE")] - #pragma warning disable CS1591 - SHADOWPROTECT_BACKUPJOB_EXECUTE, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_MANAGEDFOLDER_CREATE")] - #pragma warning disable CS1591 - IMAGEMANAGER_MANAGEDFOLDER_CREATE, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_MANAGEDFOLDER_UPDATE")] - #pragma warning disable CS1591 - IMAGEMANAGER_MANAGEDFOLDER_UPDATE, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_MANAGEDFOLDER_DELETE")] - #pragma warning disable CS1591 - IMAGEMANAGER_MANAGEDFOLDER_DELETE, - #pragma warning restore CS1591 - [EnumMember(Value = "IMAGEMANAGER_MANAGEDFOLDER_EXECUTE")] - #pragma warning disable CS1591 - IMAGEMANAGER_MANAGEDFOLDER_EXECUTE, - #pragma warning restore CS1591 - [EnumMember(Value = "TEAMVIEWER_CONNECTION")] - #pragma warning disable CS1591 - TEAMVIEWER_CONNECTION, - #pragma warning restore CS1591 - [EnumMember(Value = "RETRIEVE_AGENT_LOGS")] - #pragma warning disable CS1591 - RETRIEVE_AGENT_LOGS, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_TASK")] - #pragma warning disable CS1591 - SCHEDULED_TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_EVENT_LOG_TRIGGERED")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_EVENT_LOG_TRIGGERED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_SERVICE_STATE_CHANGED")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_SERVICE_STATE_CHANGED, - #pragma warning restore CS1591 - [EnumMember(Value = "UI_MESSAGE_ACTION_REBOOT")] - #pragma warning disable CS1591 - UI_MESSAGE_ACTION_REBOOT, - #pragma warning restore CS1591 - [EnumMember(Value = "UI_MESSAGE_BD_INSTALLATION_ISSUES")] - #pragma warning disable CS1591 - UI_MESSAGE_BD_INSTALLATION_ISSUES, - #pragma warning restore CS1591 - [EnumMember(Value = "GRAVITYZONE_UI_MESSAGE_INSTALLATION_ISSUES")] - #pragma warning disable CS1591 - GRAVITYZONE_UI_MESSAGE_INSTALLATION_ISSUES, - #pragma warning restore CS1591 - [EnumMember(Value = "AV_QUARANTINE_THREAT")] - #pragma warning disable CS1591 - AV_QUARANTINE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "AV_RESTORE_THREAT")] - #pragma warning disable CS1591 - AV_RESTORE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "AV_DELETE_THREAT")] - #pragma warning disable CS1591 - AV_DELETE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "AV_REMOVE_THREAT")] - #pragma warning disable CS1591 - AV_REMOVE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_RESTORE_THREAT")] - #pragma warning disable CS1591 - BITDEFENDER_RESTORE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "BITDEFENDER_DELETE_THREAT")] - #pragma warning disable CS1591 - BITDEFENDER_DELETE_THREAT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_BITLOCKER_STATUS")] - #pragma warning disable CS1591 - CONDITION_BITLOCKER_STATUS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_FILEVAULT_STATUS")] - #pragma warning disable CS1591 - CONDITION_FILEVAULT_STATUS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_PROCESS")] - #pragma warning disable CS1591 - CONDITION_LINUX_PROCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_Daemon")] - #pragma warning disable CS1591 - CONDITION_LINUX_Daemon, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_PROCESS_RESOURCE")] - #pragma warning disable CS1591 - CONDITION_LINUX_PROCESS_RESOURCE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_PROCESS_RESOURCE_CPU")] - #pragma warning disable CS1591 - CONDITION_LINUX_PROCESS_RESOURCE_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_PROCESS_RESOURCE_MEMORY")] - #pragma warning disable CS1591 - CONDITION_LINUX_PROCESS_RESOURCE_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_DISK_FREE_SPACE")] - #pragma warning disable CS1591 - CONDITION_LINUX_DISK_FREE_SPACE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_LINUX_DISK_USAGE")] - #pragma warning disable CS1591 - CONDITION_LINUX_DISK_USAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_AGGREGATE_CPU_USAGE")] - #pragma warning disable CS1591 - CONDITION_VM_AGGREGATE_CPU_USAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_DISK_USAGE")] - #pragma warning disable CS1591 - CONDITION_VM_DISK_USAGE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_DATASTORE")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_DATASTORE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_UPTIME")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_UPTIME, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_DEVICE_DOWN")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_DEVICE_DOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_BAD_SENSORS")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_BAD_SENSORS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_HOST_SENSOR_HEALTH")] - #pragma warning disable CS1591 - CONDITION_VM_HOST_SENSOR_HEALTH, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_GUEST_GUEST_OPERATIONAL_MODE")] - #pragma warning disable CS1591 - CONDITION_VM_GUEST_GUEST_OPERATIONAL_MODE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_GUEST_SNAPSHOT_SIZE")] - #pragma warning disable CS1591 - CONDITION_VM_GUEST_SNAPSHOT_SIZE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_GUEST_SNAPSHOT_LIFESPAN")] - #pragma warning disable CS1591 - CONDITION_VM_GUEST_SNAPSHOT_LIFESPAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_VM_GUEST_TOOLS_NOT_RUNNING")] - #pragma warning disable CS1591 - CONDITION_VM_GUEST_TOOLS_NOT_RUNNING, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_HV_GUEST_CHECKPOINT_SIZE")] - #pragma warning disable CS1591 - CONDITION_HV_GUEST_CHECKPOINT_SIZE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_HV_GUEST_CHECKPOINT_LIFESPAN")] - #pragma warning disable CS1591 - CONDITION_HV_GUEST_CHECKPOINT_LIFESPAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_SOFTWARE")] - #pragma warning disable CS1591 - CONDITION_SOFTWARE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_PROCESS_STATE")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_PROCESS_STATE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_PROCESS_RESOURCE_CPU")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_PROCESS_RESOURCE_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_WINDOWS_PROCESS_RESOURCE_MEMORY")] - #pragma warning disable CS1591 - CONDITION_WINDOWS_PROCESS_RESOURCE_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_MAC_PROCESS_STATE")] - #pragma warning disable CS1591 - CONDITION_MAC_PROCESS_STATE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_MAC_PROCESS_RESOURCE_CPU")] - #pragma warning disable CS1591 - CONDITION_MAC_PROCESS_RESOURCE_CPU, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_MAC_PROCESS_RESOURCE_MEMORY")] - #pragma warning disable CS1591 - CONDITION_MAC_PROCESS_RESOURCE_MEMORY, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_MAC_DEAMON")] - #pragma warning disable CS1591 - CONDITION_MAC_DEAMON, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_CUSTOM_FIELD")] - #pragma warning disable CS1591 - CONDITION_CUSTOM_FIELD, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION_PENDING_REBOOT")] - #pragma warning disable CS1591 - CONDITION_PENDING_REBOOT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Knowledgebase/Article/ArticleRequestBuilder.cs b/V2/Knowledgebase/Article/ArticleRequestBuilder.cs deleted file mode 100644 index f25cff9..0000000 --- a/V2/Knowledgebase/Article/ArticleRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Knowledgebase.Article.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Article -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\article - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArticleRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.knowledgebase.article.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Knowledgebase.Article.Item.WithArticleItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("articleId", position); - return new global::NinjaOne.Client.V2.Knowledgebase.Article.Item.WithArticleItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.knowledgebase.article.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Knowledgebase.Article.Item.WithArticleItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("articleId", position); - return new global::NinjaOne.Client.V2.Knowledgebase.Article.Item.WithArticleItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ArticleRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/article", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ArticleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/article", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Article/Item/Download/DownloadRequestBuilder.cs b/V2/Knowledgebase/Article/Item/Download/DownloadRequestBuilder.cs deleted file mode 100644 index 9fd1586..0000000 --- a/V2/Knowledgebase/Article/Item/Download/DownloadRequestBuilder.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Article.Item.Download -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\article\{articleId}\download - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DownloadRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DownloadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/article/{articleId}/download", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DownloadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/article/{articleId}/download", rawUrl) - { - } - /// - /// Download knowledge base article - /// - /// 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) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Download knowledge base article - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Knowledgebase.Article.Item.Download.DownloadRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Knowledgebase.Article.Item.Download.DownloadRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DownloadRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Article/Item/SignedUrls/SignedUrlsRequestBuilder.cs b/V2/Knowledgebase/Article/Item/SignedUrls/SignedUrlsRequestBuilder.cs deleted file mode 100644 index cd1fda0..0000000 --- a/V2/Knowledgebase/Article/Item/SignedUrls/SignedUrlsRequestBuilder.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Article.Item.SignedUrls -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\article\{articleId}\signed-urls - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SignedUrlsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SignedUrlsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/article/{articleId}/signed-urls", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SignedUrlsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/article/{articleId}/signed-urls", rawUrl) - { - } - /// - /// Get knowledge base article signed urls - /// - /// 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) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get knowledge base article signed urls - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Knowledgebase.Article.Item.SignedUrls.SignedUrlsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Knowledgebase.Article.Item.SignedUrls.SignedUrlsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SignedUrlsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Article/Item/WithArticleItemRequestBuilder.cs b/V2/Knowledgebase/Article/Item/WithArticleItemRequestBuilder.cs deleted file mode 100644 index 084c728..0000000 --- a/V2/Knowledgebase/Article/Item/WithArticleItemRequestBuilder.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Knowledgebase.Article.Item.Download; -using NinjaOne.Client.V2.Knowledgebase.Article.Item.SignedUrls; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Article.Item -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\article\{articleId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithArticleItemRequestBuilder : BaseRequestBuilder - { - /// The download property - public global::NinjaOne.Client.V2.Knowledgebase.Article.Item.Download.DownloadRequestBuilder Download - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Article.Item.Download.DownloadRequestBuilder(PathParameters, RequestAdapter); - } - /// The signedUrls property - public global::NinjaOne.Client.V2.Knowledgebase.Article.Item.SignedUrls.SignedUrlsRequestBuilder SignedUrls - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Article.Item.SignedUrls.SignedUrlsRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithArticleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/article/{articleId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithArticleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/article/{articleId}", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Articles/Archive/ArchiveRequestBuilder.cs b/V2/Knowledgebase/Articles/Archive/ArchiveRequestBuilder.cs deleted file mode 100644 index 237fb94..0000000 --- a/V2/Knowledgebase/Articles/Archive/ArchiveRequestBuilder.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Articles.Archive -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\articles\archive - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchiveRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ArchiveRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/articles/archive", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ArchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/articles/archive", rawUrl) - { - } - /// - /// Archive knowledge base articles - /// - /// The request body - /// 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 PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Archive knowledge base articles - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromScalarCollection(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Archive.ArchiveRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Knowledgebase.Articles.Archive.ArchiveRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchiveRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Articles/Articles.cs b/V2/Knowledgebase/Articles/Articles.cs deleted file mode 100644 index 11cca5e..0000000 --- a/V2/Knowledgebase/Articles/Articles.cs +++ /dev/null @@ -1,127 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Articles -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Articles : 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; } - /// Article archived time - public double? ArchivedTime { get; set; } - /// Lists the files associated with the article -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Attachments { get; set; } -#nullable restore -#else - public List Attachments { get; set; } -#endif - /// Article content -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Articles_content? Content { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Articles_content Content { get; set; } -#endif - /// Article created time - public double? CreateTime { get; set; } - /// Identifier - public int? Id { get; set; } - /// Indicates if the article is archived - public bool? IsArchived { get; set; } - /// Indicates if the article was created in ninja - public bool? IsNinjaArticle { get; set; } - /// Article name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent folder identifier - public int? ParentFolderId { get; set; } - /// Article path -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Path { get; set; } -#nullable restore -#else - public string Path { get; set; } -#endif - /// Article last updated time - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Articles() - { - 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::NinjaOne.Client.V2.Knowledgebase.Articles.Articles CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Articles.Articles(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "archivedTime", n => { ArchivedTime = n.GetDoubleValue(); } }, - { "attachments", n => { Attachments = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Knowledgebase.Articles.Articles_attachments.CreateFromDiscriminatorValue)?.AsList(); } }, - { "content", n => { Content = n.GetObjectValue(global::NinjaOne.Client.V2.Knowledgebase.Articles.Articles_content.CreateFromDiscriminatorValue); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "isArchived", n => { IsArchived = n.GetBoolValue(); } }, - { "isNinjaArticle", n => { IsNinjaArticle = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentFolderId", n => { ParentFolderId = n.GetIntValue(); } }, - { "path", n => { Path = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("archivedTime", ArchivedTime); - writer.WriteCollectionOfObjectValues("attachments", Attachments); - writer.WriteObjectValue("content", Content); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("isArchived", IsArchived); - writer.WriteBoolValue("isNinjaArticle", IsNinjaArticle); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentFolderId", ParentFolderId); - writer.WriteStringValue("path", Path); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Articles/ArticlesRequestBuilder.cs b/V2/Knowledgebase/Articles/ArticlesRequestBuilder.cs deleted file mode 100644 index b544ea2..0000000 --- a/V2/Knowledgebase/Articles/ArticlesRequestBuilder.cs +++ /dev/null @@ -1,172 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Knowledgebase.Articles.Archive; -using NinjaOne.Client.V2.Knowledgebase.Articles.Delete; -using NinjaOne.Client.V2.Knowledgebase.Articles.Restore; -using NinjaOne.Client.V2.Knowledgebase.Articles.Upload; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Articles -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\articles - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArticlesRequestBuilder : BaseRequestBuilder - { - /// The archive property - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Archive.ArchiveRequestBuilder Archive - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Articles.Archive.ArchiveRequestBuilder(PathParameters, RequestAdapter); - } - /// The deletePath property - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Delete.DeleteRequestBuilder DeletePath - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Articles.Delete.DeleteRequestBuilder(PathParameters, RequestAdapter); - } - /// The restore property - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Restore.RestoreRequestBuilder Restore - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Articles.Restore.RestoreRequestBuilder(PathParameters, RequestAdapter); - } - /// The upload property - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.UploadRequestBuilder Upload - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.UploadRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ArticlesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/articles", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ArticlesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/articles", rawUrl) - { - } - /// - /// Update knowledge base articles - /// - /// A List<global::NinjaOne.Client.V2.Knowledgebase.Articles.Articles> - /// The request body - /// 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?> PatchAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PatchAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Knowledgebase.Articles.Articles.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Create knowledge base articles - /// - /// A List<global::NinjaOne.Client.V2.Knowledgebase.Articles.Articles> - /// The request body - /// 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?> PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Knowledgebase.Articles.Articles.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Update knowledge base articles - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Create knowledge base articles - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Knowledgebase.Articles.ArticlesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Knowledgebase.Articles.ArticlesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArticlesRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArticlesRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Articles/Articles_attachments.cs b/V2/Knowledgebase/Articles/Articles_attachments.cs deleted file mode 100644 index 864bd96..0000000 --- a/V2/Knowledgebase/Articles/Articles_attachments.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Articles -{ - /// - /// Lists the files associated with the article - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Articles_attachments : 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; } - /// Identifier - public int? Id { get; set; } - /// Attachment metadata -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Articles_attachments_metadata? Metadata { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Articles_attachments_metadata Metadata { get; set; } -#endif - /// Upload status - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Articles_attachments_uploadStatus? UploadStatus { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Articles_attachments() - { - 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::NinjaOne.Client.V2.Knowledgebase.Articles.Articles_attachments CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Articles.Articles_attachments(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetIntValue(); } }, - { "metadata", n => { Metadata = n.GetObjectValue(global::NinjaOne.Client.V2.Knowledgebase.Articles.Articles_attachments_metadata.CreateFromDiscriminatorValue); } }, - { "uploadStatus", n => { UploadStatus = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("metadata", Metadata); - writer.WriteEnumValue("uploadStatus", UploadStatus); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Articles/Articles_attachments_metadata.cs b/V2/Knowledgebase/Articles/Articles_attachments_metadata.cs deleted file mode 100644 index 47a8d2c..0000000 --- a/V2/Knowledgebase/Articles/Articles_attachments_metadata.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Articles -{ - /// - /// Attachment metadata - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Articles_attachments_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; } - /// The contentId property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ContentId { get; set; } -#nullable restore -#else - public string ContentId { get; set; } -#endif - /// The extension property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Extension { get; set; } -#nullable restore -#else - public string Extension { get; set; } -#endif - /// The inline property - public bool? Inline { get; set; } - /// The mimeType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MimeType { get; set; } -#nullable restore -#else - public string MimeType { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The size property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Size { get; set; } -#nullable restore -#else - public string Size { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Articles_attachments_metadata() - { - 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::NinjaOne.Client.V2.Knowledgebase.Articles.Articles_attachments_metadata CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Articles.Articles_attachments_metadata(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "contentId", n => { ContentId = n.GetStringValue(); } }, - { "extension", n => { Extension = n.GetStringValue(); } }, - { "inline", n => { Inline = n.GetBoolValue(); } }, - { "mimeType", n => { MimeType = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "size", n => { Size = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("contentId", ContentId); - writer.WriteStringValue("extension", Extension); - writer.WriteBoolValue("inline", Inline); - writer.WriteStringValue("mimeType", MimeType); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("size", Size); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Articles/Articles_attachments_uploadStatus.cs b/V2/Knowledgebase/Articles/Articles_attachments_uploadStatus.cs deleted file mode 100644 index 0125924..0000000 --- a/V2/Knowledgebase/Articles/Articles_attachments_uploadStatus.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Articles -{ - /// Upload status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Articles_attachments_uploadStatus - { - [EnumMember(Value = "PROCESSING")] - #pragma warning disable CS1591 - PROCESSING, - #pragma warning restore CS1591 - [EnumMember(Value = "SUCCESS")] - #pragma warning disable CS1591 - SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILURE")] - #pragma warning disable CS1591 - FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "SUSPICIOUS")] - #pragma warning disable CS1591 - SUSPICIOUS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Knowledgebase/Articles/Articles_content.cs b/V2/Knowledgebase/Articles/Articles_content.cs deleted file mode 100644 index 35f0843..0000000 --- a/V2/Knowledgebase/Articles/Articles_content.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Articles -{ - /// - /// Article content - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Articles_content : 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; } - /// Article content html -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// Article content text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Articles_content() - { - 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::NinjaOne.Client.V2.Knowledgebase.Articles.Articles_content CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Articles.Articles_content(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Articles/Delete/DeleteRequestBuilder.cs b/V2/Knowledgebase/Articles/Delete/DeleteRequestBuilder.cs deleted file mode 100644 index d8e5d38..0000000 --- a/V2/Knowledgebase/Articles/Delete/DeleteRequestBuilder.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Articles.Delete -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\articles\delete - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeleteRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/articles/delete", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/articles/delete", rawUrl) - { - } - /// - /// Delete knowledge base articles - /// - /// The request body - /// 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 PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete knowledge base articles - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromScalarCollection(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Delete.DeleteRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Knowledgebase.Articles.Delete.DeleteRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeleteRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Articles/Restore/RestoreRequestBuilder.cs b/V2/Knowledgebase/Articles/Restore/RestoreRequestBuilder.cs deleted file mode 100644 index 549fc86..0000000 --- a/V2/Knowledgebase/Articles/Restore/RestoreRequestBuilder.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Articles.Restore -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\articles\restore - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestoreRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/articles/restore", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/articles/restore", rawUrl) - { - } - /// - /// Restore archived knowledge base articles - /// - /// The request body - /// 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 PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Restore archived knowledge base articles - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromScalarCollection(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Restore.RestoreRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Knowledgebase.Articles.Restore.RestoreRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestoreRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Articles/Upload/Upload.cs b/V2/Knowledgebase/Articles/Upload/Upload.cs deleted file mode 100644 index 0abea9e..0000000 --- a/V2/Knowledgebase/Articles/Upload/Upload.cs +++ /dev/null @@ -1,127 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Articles.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Upload : 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; } - /// Article archived time - public double? ArchivedTime { get; set; } - /// Lists the files associated with the article -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Attachments { get; set; } -#nullable restore -#else - public List Attachments { get; set; } -#endif - /// Article content -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload_content? Content { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload_content Content { get; set; } -#endif - /// Article created time - public double? CreateTime { get; set; } - /// Identifier - public int? Id { get; set; } - /// Indicates if the article is archived - public bool? IsArchived { get; set; } - /// Indicates if the article was created in ninja - public bool? IsNinjaArticle { get; set; } - /// Article name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent folder identifier - public int? ParentFolderId { get; set; } - /// Article path -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Path { get; set; } -#nullable restore -#else - public string Path { get; set; } -#endif - /// Article last updated time - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Upload() - { - 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::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "archivedTime", n => { ArchivedTime = n.GetDoubleValue(); } }, - { "attachments", n => { Attachments = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload_attachments.CreateFromDiscriminatorValue)?.AsList(); } }, - { "content", n => { Content = n.GetObjectValue(global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload_content.CreateFromDiscriminatorValue); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "isArchived", n => { IsArchived = n.GetBoolValue(); } }, - { "isNinjaArticle", n => { IsNinjaArticle = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentFolderId", n => { ParentFolderId = n.GetIntValue(); } }, - { "path", n => { Path = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("archivedTime", ArchivedTime); - writer.WriteCollectionOfObjectValues("attachments", Attachments); - writer.WriteObjectValue("content", Content); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("isArchived", IsArchived); - writer.WriteBoolValue("isNinjaArticle", IsNinjaArticle); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentFolderId", ParentFolderId); - writer.WriteStringValue("path", Path); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Articles/Upload/UploadRequestBuilder.cs b/V2/Knowledgebase/Articles/Upload/UploadRequestBuilder.cs deleted file mode 100644 index 4cd51fe..0000000 --- a/V2/Knowledgebase/Articles/Upload/UploadRequestBuilder.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Articles.Upload -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\articles\upload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class UploadRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public UploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/articles/upload", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public UploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/articles/upload", rawUrl) - { - } - /// - /// Upload knowledge base articles - /// - /// A List<global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload> - /// The request body - /// 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?> PostAsync(MultipartBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PostAsync(MultipartBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Upload knowledge base articles - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(MultipartBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(MultipartBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "multipart/form-data", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.UploadRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.UploadRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class UploadRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Articles/Upload/Upload_attachments.cs b/V2/Knowledgebase/Articles/Upload/Upload_attachments.cs deleted file mode 100644 index 363552b..0000000 --- a/V2/Knowledgebase/Articles/Upload/Upload_attachments.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Articles.Upload -{ - /// - /// Lists the files associated with the article - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Upload_attachments : 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; } - /// Identifier - public int? Id { get; set; } - /// Attachment metadata -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload_attachments_metadata? Metadata { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload_attachments_metadata Metadata { get; set; } -#endif - /// Upload status - public global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload_attachments_uploadStatus? UploadStatus { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Upload_attachments() - { - 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::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload_attachments CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload_attachments(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetIntValue(); } }, - { "metadata", n => { Metadata = n.GetObjectValue(global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload_attachments_metadata.CreateFromDiscriminatorValue); } }, - { "uploadStatus", n => { UploadStatus = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("metadata", Metadata); - writer.WriteEnumValue("uploadStatus", UploadStatus); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Articles/Upload/Upload_attachments_metadata.cs b/V2/Knowledgebase/Articles/Upload/Upload_attachments_metadata.cs deleted file mode 100644 index f108b02..0000000 --- a/V2/Knowledgebase/Articles/Upload/Upload_attachments_metadata.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Articles.Upload -{ - /// - /// Attachment metadata - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Upload_attachments_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; } - /// The contentId property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ContentId { get; set; } -#nullable restore -#else - public string ContentId { get; set; } -#endif - /// The extension property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Extension { get; set; } -#nullable restore -#else - public string Extension { get; set; } -#endif - /// The inline property - public bool? Inline { get; set; } - /// The mimeType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MimeType { get; set; } -#nullable restore -#else - public string MimeType { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The size property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Size { get; set; } -#nullable restore -#else - public string Size { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Upload_attachments_metadata() - { - 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::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload_attachments_metadata CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload_attachments_metadata(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "contentId", n => { ContentId = n.GetStringValue(); } }, - { "extension", n => { Extension = n.GetStringValue(); } }, - { "inline", n => { Inline = n.GetBoolValue(); } }, - { "mimeType", n => { MimeType = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "size", n => { Size = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("contentId", ContentId); - writer.WriteStringValue("extension", Extension); - writer.WriteBoolValue("inline", Inline); - writer.WriteStringValue("mimeType", MimeType); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("size", Size); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Articles/Upload/Upload_attachments_uploadStatus.cs b/V2/Knowledgebase/Articles/Upload/Upload_attachments_uploadStatus.cs deleted file mode 100644 index 2d948ca..0000000 --- a/V2/Knowledgebase/Articles/Upload/Upload_attachments_uploadStatus.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Articles.Upload -{ - /// Upload status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Upload_attachments_uploadStatus - { - [EnumMember(Value = "PROCESSING")] - #pragma warning disable CS1591 - PROCESSING, - #pragma warning restore CS1591 - [EnumMember(Value = "SUCCESS")] - #pragma warning disable CS1591 - SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILURE")] - #pragma warning disable CS1591 - FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "SUSPICIOUS")] - #pragma warning disable CS1591 - SUSPICIOUS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Knowledgebase/Articles/Upload/Upload_content.cs b/V2/Knowledgebase/Articles/Upload/Upload_content.cs deleted file mode 100644 index a062f81..0000000 --- a/V2/Knowledgebase/Articles/Upload/Upload_content.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Articles.Upload -{ - /// - /// Article content - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Upload_content : 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; } - /// Article content html -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// Article content text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Upload_content() - { - 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::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload_content CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Articles.Upload.Upload_content(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Folder/FolderGetResponse.cs b/V2/Knowledgebase/Folder/FolderGetResponse.cs deleted file mode 100644 index 76a74fa..0000000 --- a/V2/Knowledgebase/Folder/FolderGetResponse.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Folder -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class FolderGetResponse : 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; } - /// Folder archived time - public double? ArchivedTime { get; set; } - /// Folder content -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Content { get; set; } -#nullable restore -#else - public List Content { get; set; } -#endif - /// Folder created time - public double? CreateTime { get; set; } - /// Identifier - public int? Id { get; set; } - /// Indicates if the article is archived - public bool? IsArchived { get; set; } - /// Article name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent folder identifier - public int? ParentFolderId { get; set; } - /// Folder last updated time - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public FolderGetResponse() - { - 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::NinjaOne.Client.V2.Knowledgebase.Folder.FolderGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Folder.FolderGetResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "archivedTime", n => { ArchivedTime = n.GetDoubleValue(); } }, - { "content", n => { Content = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Knowledgebase.Folder.FolderGetResponse_content.CreateFromDiscriminatorValue)?.AsList(); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "isArchived", n => { IsArchived = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentFolderId", n => { ParentFolderId = n.GetIntValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("archivedTime", ArchivedTime); - writer.WriteCollectionOfObjectValues("content", Content); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("isArchived", IsArchived); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentFolderId", ParentFolderId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Folder/FolderGetResponse_content.cs b/V2/Knowledgebase/Folder/FolderGetResponse_content.cs deleted file mode 100644 index c139393..0000000 --- a/V2/Knowledgebase/Folder/FolderGetResponse_content.cs +++ /dev/null @@ -1,126 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Folder -{ - /// - /// Folder content - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FolderGetResponse_content : 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; } - /// The archived property - public bool? Archived { get; set; } - /// Item created time - public double? CreateTime { get; set; } - /// Article file extension (For native kb articles the extension will be 'ninja') -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileExtension { get; set; } -#nullable restore -#else - public string FileExtension { get; set; } -#endif - /// Article file size (Only for uploaded knowledge base articles) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileSize { get; set; } -#nullable restore -#else - public string FileSize { get; set; } -#endif - /// Article file upload status (Only for uploaded knowledge base articles) - public global::NinjaOne.Client.V2.Knowledgebase.Folder.FolderGetResponse_content_fileUploadStatus? FileUploadStatus { get; set; } - /// The folder property - public bool? Folder { get; set; } - /// Identifier - public int? Id { get; set; } - /// Indicates if this item is archived - public bool? IsArchived { get; set; } - /// Indicates if this item is a folder - public bool? IsFolder { get; set; } - /// Article name (In the case of uploaded articles this will be the file name) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent folder identifier - public int? ParentFolderId { get; set; } - /// Item last updated time - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public FolderGetResponse_content() - { - 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::NinjaOne.Client.V2.Knowledgebase.Folder.FolderGetResponse_content CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Folder.FolderGetResponse_content(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "archived", n => { Archived = n.GetBoolValue(); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "fileExtension", n => { FileExtension = n.GetStringValue(); } }, - { "fileSize", n => { FileSize = n.GetStringValue(); } }, - { "fileUploadStatus", n => { FileUploadStatus = n.GetEnumValue(); } }, - { "folder", n => { Folder = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "isArchived", n => { IsArchived = n.GetBoolValue(); } }, - { "isFolder", n => { IsFolder = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentFolderId", n => { ParentFolderId = n.GetIntValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("archived", Archived); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("fileExtension", FileExtension); - writer.WriteStringValue("fileSize", FileSize); - writer.WriteEnumValue("fileUploadStatus", FileUploadStatus); - writer.WriteBoolValue("folder", Folder); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("isArchived", IsArchived); - writer.WriteBoolValue("isFolder", IsFolder); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentFolderId", ParentFolderId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Folder/FolderGetResponse_content_fileUploadStatus.cs b/V2/Knowledgebase/Folder/FolderGetResponse_content_fileUploadStatus.cs deleted file mode 100644 index e3a282d..0000000 --- a/V2/Knowledgebase/Folder/FolderGetResponse_content_fileUploadStatus.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Folder -{ - /// Article file upload status (Only for uploaded knowledge base articles) - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum FolderGetResponse_content_fileUploadStatus - { - [EnumMember(Value = "PROCESSING")] - #pragma warning disable CS1591 - PROCESSING, - #pragma warning restore CS1591 - [EnumMember(Value = "SUCCESS")] - #pragma warning disable CS1591 - SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILURE")] - #pragma warning disable CS1591 - FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "SUSPICIOUS")] - #pragma warning disable CS1591 - SUSPICIOUS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Knowledgebase/Folder/FolderRequestBuilder.cs b/V2/Knowledgebase/Folder/FolderRequestBuilder.cs deleted file mode 100644 index 3c3a524..0000000 --- a/V2/Knowledgebase/Folder/FolderRequestBuilder.cs +++ /dev/null @@ -1,156 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Knowledgebase.Folder.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Folder -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\folder - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FolderRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.knowledgebase.folder.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Knowledgebase.Folder.Item.WithFolderItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("folderId", position); - return new global::NinjaOne.Client.V2.Knowledgebase.Folder.Item.WithFolderItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.knowledgebase.folder.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Knowledgebase.Folder.Item.WithFolderItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("folderId", position); - return new global::NinjaOne.Client.V2.Knowledgebase.Folder.Item.WithFolderItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public FolderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/folder{?folderId*,folderPath*,organizationId*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public FolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/folder{?folderId*,folderPath*,organizationId*}", rawUrl) - { - } - /// - /// Returns knowledge base folder and its content - /// - /// 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 GetAsFolderGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsFolderGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Knowledgebase.Folder.FolderGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns knowledge base folder and its content - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use GetAsFolderGetResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Knowledgebase.Folder.FolderResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns knowledge base folder and its content - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Knowledgebase.Folder.FolderRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Knowledgebase.Folder.FolderRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns knowledge base folder and its content - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FolderRequestBuilderGetQueryParameters - { - [QueryParameter("folderId")] - public int? FolderId { get; set; } -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("folderPath")] - public string? FolderPath { get; set; } -#nullable restore -#else - [QueryParameter("folderPath")] - public string FolderPath { get; set; } -#endif - [QueryParameter("organizationId")] - public int? OrganizationId { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FolderRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Folder/FolderResponse.cs b/V2/Knowledgebase/Folder/FolderResponse.cs deleted file mode 100644 index ec87dbc..0000000 --- a/V2/Knowledgebase/Folder/FolderResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Folder -{ - [Obsolete("This class is obsolete. Use FolderGetResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class FolderResponse : global::NinjaOne.Client.V2.Knowledgebase.Folder.FolderGetResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.Knowledgebase.Folder.FolderResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Folder.FolderResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Folder/Item/WithFolderGetResponse.cs b/V2/Knowledgebase/Folder/Item/WithFolderGetResponse.cs deleted file mode 100644 index b29300c..0000000 --- a/V2/Knowledgebase/Folder/Item/WithFolderGetResponse.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Folder.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithFolderGetResponse : 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; } - /// Folder archived time - public double? ArchivedTime { get; set; } - /// Folder content -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Content { get; set; } -#nullable restore -#else - public List Content { get; set; } -#endif - /// Folder created time - public double? CreateTime { get; set; } - /// Identifier - public int? Id { get; set; } - /// Indicates if the article is archived - public bool? IsArchived { get; set; } - /// Article name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent folder identifier - public int? ParentFolderId { get; set; } - /// Folder last updated time - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithFolderGetResponse() - { - 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::NinjaOne.Client.V2.Knowledgebase.Folder.Item.WithFolderGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Folder.Item.WithFolderGetResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "archivedTime", n => { ArchivedTime = n.GetDoubleValue(); } }, - { "content", n => { Content = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Knowledgebase.Folder.Item.WithFolderGetResponse_content.CreateFromDiscriminatorValue)?.AsList(); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "isArchived", n => { IsArchived = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentFolderId", n => { ParentFolderId = n.GetIntValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("archivedTime", ArchivedTime); - writer.WriteCollectionOfObjectValues("content", Content); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("isArchived", IsArchived); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentFolderId", ParentFolderId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Folder/Item/WithFolderGetResponse_content.cs b/V2/Knowledgebase/Folder/Item/WithFolderGetResponse_content.cs deleted file mode 100644 index 79f770a..0000000 --- a/V2/Knowledgebase/Folder/Item/WithFolderGetResponse_content.cs +++ /dev/null @@ -1,126 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Folder.Item -{ - /// - /// Folder content - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithFolderGetResponse_content : 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; } - /// The archived property - public bool? Archived { get; set; } - /// Item created time - public double? CreateTime { get; set; } - /// Article file extension (For native kb articles the extension will be 'ninja') -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileExtension { get; set; } -#nullable restore -#else - public string FileExtension { get; set; } -#endif - /// Article file size (Only for uploaded knowledge base articles) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileSize { get; set; } -#nullable restore -#else - public string FileSize { get; set; } -#endif - /// Article file upload status (Only for uploaded knowledge base articles) - public global::NinjaOne.Client.V2.Knowledgebase.Folder.Item.WithFolderGetResponse_content_fileUploadStatus? FileUploadStatus { get; set; } - /// The folder property - public bool? Folder { get; set; } - /// Identifier - public int? Id { get; set; } - /// Indicates if this item is archived - public bool? IsArchived { get; set; } - /// Indicates if this item is a folder - public bool? IsFolder { get; set; } - /// Article name (In the case of uploaded articles this will be the file name) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent folder identifier - public int? ParentFolderId { get; set; } - /// Item last updated time - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithFolderGetResponse_content() - { - 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::NinjaOne.Client.V2.Knowledgebase.Folder.Item.WithFolderGetResponse_content CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Folder.Item.WithFolderGetResponse_content(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "archived", n => { Archived = n.GetBoolValue(); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "fileExtension", n => { FileExtension = n.GetStringValue(); } }, - { "fileSize", n => { FileSize = n.GetStringValue(); } }, - { "fileUploadStatus", n => { FileUploadStatus = n.GetEnumValue(); } }, - { "folder", n => { Folder = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "isArchived", n => { IsArchived = n.GetBoolValue(); } }, - { "isFolder", n => { IsFolder = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentFolderId", n => { ParentFolderId = n.GetIntValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("archived", Archived); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("fileExtension", FileExtension); - writer.WriteStringValue("fileSize", FileSize); - writer.WriteEnumValue("fileUploadStatus", FileUploadStatus); - writer.WriteBoolValue("folder", Folder); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("isArchived", IsArchived); - writer.WriteBoolValue("isFolder", IsFolder); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentFolderId", ParentFolderId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Folder/Item/WithFolderGetResponse_content_fileUploadStatus.cs b/V2/Knowledgebase/Folder/Item/WithFolderGetResponse_content_fileUploadStatus.cs deleted file mode 100644 index 89c7ab9..0000000 --- a/V2/Knowledgebase/Folder/Item/WithFolderGetResponse_content_fileUploadStatus.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Folder.Item -{ - /// Article file upload status (Only for uploaded knowledge base articles) - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithFolderGetResponse_content_fileUploadStatus - { - [EnumMember(Value = "PROCESSING")] - #pragma warning disable CS1591 - PROCESSING, - #pragma warning restore CS1591 - [EnumMember(Value = "SUCCESS")] - #pragma warning disable CS1591 - SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILURE")] - #pragma warning disable CS1591 - FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "SUSPICIOUS")] - #pragma warning disable CS1591 - SUSPICIOUS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Knowledgebase/Folder/Item/WithFolderItemRequestBuilder.cs b/V2/Knowledgebase/Folder/Item/WithFolderItemRequestBuilder.cs deleted file mode 100644 index e991cb4..0000000 --- a/V2/Knowledgebase/Folder/Item/WithFolderItemRequestBuilder.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Folder.Item -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\folder\{folderId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithFolderItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithFolderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/folder/{folderId}{?includeArchived*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithFolderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/folder/{folderId}{?includeArchived*}", rawUrl) - { - } - /// - /// Returns knowledge base folder and its content - /// - /// 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 GetAsWithFolderGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsWithFolderGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Knowledgebase.Folder.Item.WithFolderGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns knowledge base folder and its content - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use GetAsWithFolderGetResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Knowledgebase.Folder.Item.WithFolderResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns knowledge base folder and its content - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Knowledgebase.Folder.Item.WithFolderItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Knowledgebase.Folder.Item.WithFolderItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns knowledge base folder and its content - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithFolderItemRequestBuilderGetQueryParameters - { - [QueryParameter("includeArchived")] - public bool? IncludeArchived { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithFolderItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Folder/Item/WithFolderResponse.cs b/V2/Knowledgebase/Folder/Item/WithFolderResponse.cs deleted file mode 100644 index 9d3c635..0000000 --- a/V2/Knowledgebase/Folder/Item/WithFolderResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Folder.Item -{ - [Obsolete("This class is obsolete. Use WithFolderGetResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithFolderResponse : global::NinjaOne.Client.V2.Knowledgebase.Folder.Item.WithFolderGetResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.Knowledgebase.Folder.Item.WithFolderResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Folder.Item.WithFolderResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Folders/Archive/ArchiveRequestBuilder.cs b/V2/Knowledgebase/Folders/Archive/ArchiveRequestBuilder.cs deleted file mode 100644 index d5acae0..0000000 --- a/V2/Knowledgebase/Folders/Archive/ArchiveRequestBuilder.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Folders.Archive -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\folders\archive - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchiveRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ArchiveRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/folders/archive", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ArchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/folders/archive", rawUrl) - { - } - /// - /// Archive knowledge base folders - /// - /// The request body - /// 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 PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Archive knowledge base folders - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromScalarCollection(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Knowledgebase.Folders.Archive.ArchiveRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Knowledgebase.Folders.Archive.ArchiveRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchiveRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Folders/Delete/DeleteRequestBuilder.cs b/V2/Knowledgebase/Folders/Delete/DeleteRequestBuilder.cs deleted file mode 100644 index b1d1543..0000000 --- a/V2/Knowledgebase/Folders/Delete/DeleteRequestBuilder.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Folders.Delete -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\folders\delete - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeleteRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/folders/delete", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/folders/delete", rawUrl) - { - } - /// - /// Delete knowledge base folders - /// - /// The request body - /// 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 PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete knowledge base folders - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromScalarCollection(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Knowledgebase.Folders.Delete.DeleteRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Knowledgebase.Folders.Delete.DeleteRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeleteRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Folders/FoldersRequestBuilder.cs b/V2/Knowledgebase/Folders/FoldersRequestBuilder.cs deleted file mode 100644 index e15abab..0000000 --- a/V2/Knowledgebase/Folders/FoldersRequestBuilder.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Knowledgebase.Folders.Archive; -using NinjaOne.Client.V2.Knowledgebase.Folders.Delete; -using NinjaOne.Client.V2.Knowledgebase.Folders.Move; -using NinjaOne.Client.V2.Knowledgebase.Folders.Restore; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Folders -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\folders - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FoldersRequestBuilder : BaseRequestBuilder - { - /// The archive property - public global::NinjaOne.Client.V2.Knowledgebase.Folders.Archive.ArchiveRequestBuilder Archive - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Folders.Archive.ArchiveRequestBuilder(PathParameters, RequestAdapter); - } - /// The deletePath property - public global::NinjaOne.Client.V2.Knowledgebase.Folders.Delete.DeleteRequestBuilder DeletePath - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Folders.Delete.DeleteRequestBuilder(PathParameters, RequestAdapter); - } - /// The move property - public global::NinjaOne.Client.V2.Knowledgebase.Folders.Move.MoveRequestBuilder Move - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Folders.Move.MoveRequestBuilder(PathParameters, RequestAdapter); - } - /// The restore property - public global::NinjaOne.Client.V2.Knowledgebase.Folders.Restore.RestoreRequestBuilder Restore - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Folders.Restore.RestoreRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public FoldersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/folders", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public FoldersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/folders", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Folders/Move/MovePatchRequestBody.cs b/V2/Knowledgebase/Folders/Move/MovePatchRequestBody.cs deleted file mode 100644 index 116129f..0000000 --- a/V2/Knowledgebase/Folders/Move/MovePatchRequestBody.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Folders.Move -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class MovePatchRequestBody : 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; } - /// Destination folder - public int? DestinationFolderId { get; set; } - /// Destination client. Use when the root folder of the client does not exist. - public int? DestinationOrganizationId { get; set; } - /// Documents to move -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DocumentIds { get; set; } -#nullable restore -#else - public List DocumentIds { get; set; } -#endif - /// Folders to move -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FolderIds { get; set; } -#nullable restore -#else - public List FolderIds { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public MovePatchRequestBody() - { - 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::NinjaOne.Client.V2.Knowledgebase.Folders.Move.MovePatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Folders.Move.MovePatchRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "destinationFolderId", n => { DestinationFolderId = n.GetIntValue(); } }, - { "destinationOrganizationId", n => { DestinationOrganizationId = n.GetIntValue(); } }, - { "documentIds", n => { DocumentIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "folderIds", n => { FolderIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("destinationFolderId", DestinationFolderId); - writer.WriteIntValue("destinationOrganizationId", DestinationOrganizationId); - writer.WriteCollectionOfPrimitiveValues("documentIds", DocumentIds); - writer.WriteCollectionOfPrimitiveValues("folderIds", FolderIds); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Folders/Move/MoveRequestBuilder.cs b/V2/Knowledgebase/Folders/Move/MoveRequestBuilder.cs deleted file mode 100644 index b79b54b..0000000 --- a/V2/Knowledgebase/Folders/Move/MoveRequestBuilder.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Folders.Move -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\folders\move - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class MoveRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public MoveRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/folders/move", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public MoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/folders/move", rawUrl) - { - } - /// - /// Move knowledge base folders and documents to another knowledge base folder - /// - /// The request body - /// 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 PatchAsync(global::NinjaOne.Client.V2.Knowledgebase.Folders.Move.MovePatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::NinjaOne.Client.V2.Knowledgebase.Folders.Move.MovePatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Move knowledge base folders and documents to another knowledge base folder - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Knowledgebase.Folders.Move.MovePatchRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Knowledgebase.Folders.Move.MovePatchRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Knowledgebase.Folders.Move.MoveRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Knowledgebase.Folders.Move.MoveRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class MoveRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Folders/Restore/RestoreRequestBuilder.cs b/V2/Knowledgebase/Folders/Restore/RestoreRequestBuilder.cs deleted file mode 100644 index f25fb41..0000000 --- a/V2/Knowledgebase/Folders/Restore/RestoreRequestBuilder.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Folders.Restore -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\folders\restore - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestoreRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/folders/restore", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/folders/restore", rawUrl) - { - } - /// - /// Restore archived knowledge base folders - /// - /// The request body - /// 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 PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Restore archived knowledge base folders - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromScalarCollection(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Knowledgebase.Folders.Restore.RestoreRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Knowledgebase.Folders.Restore.RestoreRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestoreRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Global/Articles/Articles.cs b/V2/Knowledgebase/Global/Articles/Articles.cs deleted file mode 100644 index 49cb3cb..0000000 --- a/V2/Knowledgebase/Global/Articles/Articles.cs +++ /dev/null @@ -1,127 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Global.Articles -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Articles : 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; } - /// Article archived time - public double? ArchivedTime { get; set; } - /// Lists the files associated with the article -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Attachments { get; set; } -#nullable restore -#else - public List Attachments { get; set; } -#endif - /// Article content -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles_content? Content { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles_content Content { get; set; } -#endif - /// Article created time - public double? CreateTime { get; set; } - /// Identifier - public int? Id { get; set; } - /// Indicates if the article is archived - public bool? IsArchived { get; set; } - /// Indicates if the article was created in ninja - public bool? IsNinjaArticle { get; set; } - /// Article name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent folder identifier - public int? ParentFolderId { get; set; } - /// Article path -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Path { get; set; } -#nullable restore -#else - public string Path { get; set; } -#endif - /// Article last updated time - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Articles() - { - 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::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "archivedTime", n => { ArchivedTime = n.GetDoubleValue(); } }, - { "attachments", n => { Attachments = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles_attachments.CreateFromDiscriminatorValue)?.AsList(); } }, - { "content", n => { Content = n.GetObjectValue(global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles_content.CreateFromDiscriminatorValue); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "isArchived", n => { IsArchived = n.GetBoolValue(); } }, - { "isNinjaArticle", n => { IsNinjaArticle = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentFolderId", n => { ParentFolderId = n.GetIntValue(); } }, - { "path", n => { Path = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("archivedTime", ArchivedTime); - writer.WriteCollectionOfObjectValues("attachments", Attachments); - writer.WriteObjectValue("content", Content); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("isArchived", IsArchived); - writer.WriteBoolValue("isNinjaArticle", IsNinjaArticle); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentFolderId", ParentFolderId); - writer.WriteStringValue("path", Path); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Global/Articles/ArticlesRequestBuilder.cs b/V2/Knowledgebase/Global/Articles/ArticlesRequestBuilder.cs deleted file mode 100644 index 048c449..0000000 --- a/V2/Knowledgebase/Global/Articles/ArticlesRequestBuilder.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Global.Articles -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\global\articles - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArticlesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ArticlesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/global/articles{?articleName*,includeArchived*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ArticlesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/global/articles{?articleName*,includeArchived*}", rawUrl) - { - } - /// - /// Lists global knowledge base articles - /// - /// A List<global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Lists global knowledge base articles - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.ArticlesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.ArticlesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Lists global knowledge base articles - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArticlesRequestBuilderGetQueryParameters - { -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("articleName")] - public string? ArticleName { get; set; } -#nullable restore -#else - [QueryParameter("articleName")] - public string ArticleName { get; set; } -#endif - [QueryParameter("includeArchived")] - public bool? IncludeArchived { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArticlesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Global/Articles/Articles_attachments.cs b/V2/Knowledgebase/Global/Articles/Articles_attachments.cs deleted file mode 100644 index 8a5e2e2..0000000 --- a/V2/Knowledgebase/Global/Articles/Articles_attachments.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Global.Articles -{ - /// - /// Lists the files associated with the article - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Articles_attachments : 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; } - /// Identifier - public int? Id { get; set; } - /// Attachment metadata -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles_attachments_metadata? Metadata { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles_attachments_metadata Metadata { get; set; } -#endif - /// Upload status - public global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles_attachments_uploadStatus? UploadStatus { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Articles_attachments() - { - 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::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles_attachments CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles_attachments(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetIntValue(); } }, - { "metadata", n => { Metadata = n.GetObjectValue(global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles_attachments_metadata.CreateFromDiscriminatorValue); } }, - { "uploadStatus", n => { UploadStatus = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("metadata", Metadata); - writer.WriteEnumValue("uploadStatus", UploadStatus); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Global/Articles/Articles_attachments_metadata.cs b/V2/Knowledgebase/Global/Articles/Articles_attachments_metadata.cs deleted file mode 100644 index 3a535a2..0000000 --- a/V2/Knowledgebase/Global/Articles/Articles_attachments_metadata.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Global.Articles -{ - /// - /// Attachment metadata - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Articles_attachments_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; } - /// The contentId property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ContentId { get; set; } -#nullable restore -#else - public string ContentId { get; set; } -#endif - /// The extension property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Extension { get; set; } -#nullable restore -#else - public string Extension { get; set; } -#endif - /// The inline property - public bool? Inline { get; set; } - /// The mimeType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MimeType { get; set; } -#nullable restore -#else - public string MimeType { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The size property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Size { get; set; } -#nullable restore -#else - public string Size { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Articles_attachments_metadata() - { - 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::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles_attachments_metadata CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles_attachments_metadata(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "contentId", n => { ContentId = n.GetStringValue(); } }, - { "extension", n => { Extension = n.GetStringValue(); } }, - { "inline", n => { Inline = n.GetBoolValue(); } }, - { "mimeType", n => { MimeType = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "size", n => { Size = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("contentId", ContentId); - writer.WriteStringValue("extension", Extension); - writer.WriteBoolValue("inline", Inline); - writer.WriteStringValue("mimeType", MimeType); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("size", Size); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Global/Articles/Articles_attachments_uploadStatus.cs b/V2/Knowledgebase/Global/Articles/Articles_attachments_uploadStatus.cs deleted file mode 100644 index 874ef05..0000000 --- a/V2/Knowledgebase/Global/Articles/Articles_attachments_uploadStatus.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Global.Articles -{ - /// Upload status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Articles_attachments_uploadStatus - { - [EnumMember(Value = "PROCESSING")] - #pragma warning disable CS1591 - PROCESSING, - #pragma warning restore CS1591 - [EnumMember(Value = "SUCCESS")] - #pragma warning disable CS1591 - SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILURE")] - #pragma warning disable CS1591 - FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "SUSPICIOUS")] - #pragma warning disable CS1591 - SUSPICIOUS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Knowledgebase/Global/Articles/Articles_content.cs b/V2/Knowledgebase/Global/Articles/Articles_content.cs deleted file mode 100644 index dc70133..0000000 --- a/V2/Knowledgebase/Global/Articles/Articles_content.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Global.Articles -{ - /// - /// Article content - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Articles_content : 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; } - /// Article content html -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// Article content text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Articles_content() - { - 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::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles_content CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.Articles_content(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Global/GlobalRequestBuilder.cs b/V2/Knowledgebase/Global/GlobalRequestBuilder.cs deleted file mode 100644 index 1d4d31f..0000000 --- a/V2/Knowledgebase/Global/GlobalRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Knowledgebase.Global.Articles; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Global -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\global - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class GlobalRequestBuilder : BaseRequestBuilder - { - /// The articles property - public global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.ArticlesRequestBuilder Articles - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Global.Articles.ArticlesRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public GlobalRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/global", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public GlobalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/global", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/KnowledgebaseRequestBuilder.cs b/V2/Knowledgebase/KnowledgebaseRequestBuilder.cs deleted file mode 100644 index 0526e71..0000000 --- a/V2/Knowledgebase/KnowledgebaseRequestBuilder.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Knowledgebase.Article; -using NinjaOne.Client.V2.Knowledgebase.Articles; -using NinjaOne.Client.V2.Knowledgebase.Folder; -using NinjaOne.Client.V2.Knowledgebase.Folders; -using NinjaOne.Client.V2.Knowledgebase.Global; -using NinjaOne.Client.V2.Knowledgebase.Organization; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Knowledgebase -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class KnowledgebaseRequestBuilder : BaseRequestBuilder - { - /// The article property - public global::NinjaOne.Client.V2.Knowledgebase.Article.ArticleRequestBuilder Article - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Article.ArticleRequestBuilder(PathParameters, RequestAdapter); - } - /// The articles property - public global::NinjaOne.Client.V2.Knowledgebase.Articles.ArticlesRequestBuilder Articles - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Articles.ArticlesRequestBuilder(PathParameters, RequestAdapter); - } - /// The folder property - public global::NinjaOne.Client.V2.Knowledgebase.Folder.FolderRequestBuilder Folder - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Folder.FolderRequestBuilder(PathParameters, RequestAdapter); - } - /// The folders property - public global::NinjaOne.Client.V2.Knowledgebase.Folders.FoldersRequestBuilder Folders - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Folders.FoldersRequestBuilder(PathParameters, RequestAdapter); - } - /// The global property - public global::NinjaOne.Client.V2.Knowledgebase.Global.GlobalRequestBuilder Global - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Global.GlobalRequestBuilder(PathParameters, RequestAdapter); - } - /// The organization property - public global::NinjaOne.Client.V2.Knowledgebase.Organization.OrganizationRequestBuilder Organization - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Organization.OrganizationRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public KnowledgebaseRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public KnowledgebaseRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Organization/Articles/Articles.cs b/V2/Knowledgebase/Organization/Articles/Articles.cs deleted file mode 100644 index 5b43709..0000000 --- a/V2/Knowledgebase/Organization/Articles/Articles.cs +++ /dev/null @@ -1,127 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Organization.Articles -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Articles : 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; } - /// Article archived time - public double? ArchivedTime { get; set; } - /// Lists the files associated with the article -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Attachments { get; set; } -#nullable restore -#else - public List Attachments { get; set; } -#endif - /// Article content -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles_content? Content { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles_content Content { get; set; } -#endif - /// Article created time - public double? CreateTime { get; set; } - /// Identifier - public int? Id { get; set; } - /// Indicates if the article is archived - public bool? IsArchived { get; set; } - /// Indicates if the article was created in ninja - public bool? IsNinjaArticle { get; set; } - /// Article name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent folder identifier - public int? ParentFolderId { get; set; } - /// Article path -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Path { get; set; } -#nullable restore -#else - public string Path { get; set; } -#endif - /// Article last updated time - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Articles() - { - 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::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "archivedTime", n => { ArchivedTime = n.GetDoubleValue(); } }, - { "attachments", n => { Attachments = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles_attachments.CreateFromDiscriminatorValue)?.AsList(); } }, - { "content", n => { Content = n.GetObjectValue(global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles_content.CreateFromDiscriminatorValue); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "isArchived", n => { IsArchived = n.GetBoolValue(); } }, - { "isNinjaArticle", n => { IsNinjaArticle = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentFolderId", n => { ParentFolderId = n.GetIntValue(); } }, - { "path", n => { Path = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("archivedTime", ArchivedTime); - writer.WriteCollectionOfObjectValues("attachments", Attachments); - writer.WriteObjectValue("content", Content); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("isArchived", IsArchived); - writer.WriteBoolValue("isNinjaArticle", IsNinjaArticle); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentFolderId", ParentFolderId); - writer.WriteStringValue("path", Path); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Organization/Articles/ArticlesRequestBuilder.cs b/V2/Knowledgebase/Organization/Articles/ArticlesRequestBuilder.cs deleted file mode 100644 index 2c16eea..0000000 --- a/V2/Knowledgebase/Organization/Articles/ArticlesRequestBuilder.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Organization.Articles -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\organization\articles - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArticlesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ArticlesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/organization/articles{?articleName*,includeArchived*,organizationIds*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ArticlesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/organization/articles{?articleName*,includeArchived*,organizationIds*}", rawUrl) - { - } - /// - /// Lists organization knowledge base articles - /// - /// A List<global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Lists organization knowledge base articles - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.ArticlesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.ArticlesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Lists organization knowledge base articles - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArticlesRequestBuilderGetQueryParameters - { -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("articleName")] - public string? ArticleName { get; set; } -#nullable restore -#else - [QueryParameter("articleName")] - public string ArticleName { get; set; } -#endif - [QueryParameter("includeArchived")] - public bool? IncludeArchived { get; set; } -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("organizationIds")] - public string? OrganizationIds { get; set; } -#nullable restore -#else - [QueryParameter("organizationIds")] - public string OrganizationIds { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArticlesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Organization/Articles/Articles_attachments.cs b/V2/Knowledgebase/Organization/Articles/Articles_attachments.cs deleted file mode 100644 index 1b3e049..0000000 --- a/V2/Knowledgebase/Organization/Articles/Articles_attachments.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Organization.Articles -{ - /// - /// Lists the files associated with the article - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Articles_attachments : 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; } - /// Identifier - public int? Id { get; set; } - /// Attachment metadata -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles_attachments_metadata? Metadata { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles_attachments_metadata Metadata { get; set; } -#endif - /// Upload status - public global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles_attachments_uploadStatus? UploadStatus { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Articles_attachments() - { - 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::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles_attachments CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles_attachments(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetIntValue(); } }, - { "metadata", n => { Metadata = n.GetObjectValue(global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles_attachments_metadata.CreateFromDiscriminatorValue); } }, - { "uploadStatus", n => { UploadStatus = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("metadata", Metadata); - writer.WriteEnumValue("uploadStatus", UploadStatus); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Organization/Articles/Articles_attachments_metadata.cs b/V2/Knowledgebase/Organization/Articles/Articles_attachments_metadata.cs deleted file mode 100644 index a7957d9..0000000 --- a/V2/Knowledgebase/Organization/Articles/Articles_attachments_metadata.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Organization.Articles -{ - /// - /// Attachment metadata - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Articles_attachments_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; } - /// The contentId property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ContentId { get; set; } -#nullable restore -#else - public string ContentId { get; set; } -#endif - /// The extension property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Extension { get; set; } -#nullable restore -#else - public string Extension { get; set; } -#endif - /// The inline property - public bool? Inline { get; set; } - /// The mimeType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MimeType { get; set; } -#nullable restore -#else - public string MimeType { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The size property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Size { get; set; } -#nullable restore -#else - public string Size { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Articles_attachments_metadata() - { - 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::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles_attachments_metadata CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles_attachments_metadata(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "contentId", n => { ContentId = n.GetStringValue(); } }, - { "extension", n => { Extension = n.GetStringValue(); } }, - { "inline", n => { Inline = n.GetBoolValue(); } }, - { "mimeType", n => { MimeType = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "size", n => { Size = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("contentId", ContentId); - writer.WriteStringValue("extension", Extension); - writer.WriteBoolValue("inline", Inline); - writer.WriteStringValue("mimeType", MimeType); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("size", Size); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Organization/Articles/Articles_attachments_uploadStatus.cs b/V2/Knowledgebase/Organization/Articles/Articles_attachments_uploadStatus.cs deleted file mode 100644 index dfb7539..0000000 --- a/V2/Knowledgebase/Organization/Articles/Articles_attachments_uploadStatus.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Organization.Articles -{ - /// Upload status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Articles_attachments_uploadStatus - { - [EnumMember(Value = "PROCESSING")] - #pragma warning disable CS1591 - PROCESSING, - #pragma warning restore CS1591 - [EnumMember(Value = "SUCCESS")] - #pragma warning disable CS1591 - SUCCESS, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILURE")] - #pragma warning disable CS1591 - FAILURE, - #pragma warning restore CS1591 - [EnumMember(Value = "SUSPICIOUS")] - #pragma warning disable CS1591 - SUSPICIOUS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Knowledgebase/Organization/Articles/Articles_content.cs b/V2/Knowledgebase/Organization/Articles/Articles_content.cs deleted file mode 100644 index e9481bb..0000000 --- a/V2/Knowledgebase/Organization/Articles/Articles_content.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Organization.Articles -{ - /// - /// Article content - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Articles_content : 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; } - /// Article content html -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// Article content text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Articles_content() - { - 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::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles_content CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.Articles_content(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Knowledgebase/Organization/OrganizationRequestBuilder.cs b/V2/Knowledgebase/Organization/OrganizationRequestBuilder.cs deleted file mode 100644 index 96cd44e..0000000 --- a/V2/Knowledgebase/Organization/OrganizationRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Knowledgebase.Organization.Articles; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Knowledgebase.Organization -{ - /// - /// Builds and executes requests for operations under \v2\knowledgebase\organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationRequestBuilder : BaseRequestBuilder - { - /// The articles property - public global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.ArticlesRequestBuilder Articles - { - get => new global::NinjaOne.Client.V2.Knowledgebase.Organization.Articles.ArticlesRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OrganizationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/organization", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OrganizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/knowledgebase/organization", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Locations/Locations.cs b/V2/Locations/Locations.cs deleted file mode 100644 index 7515f63..0000000 --- a/V2/Locations/Locations.cs +++ /dev/null @@ -1,126 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Locations -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Locations : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Locations.Locations_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Locations.Locations_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Locations.Locations_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Locations.Locations_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Locations() - { - 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::NinjaOne.Client.V2.Locations.Locations CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Locations.Locations(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Locations.Locations_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Locations.Locations_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Locations/LocationsRequestBuilder.cs b/V2/Locations/LocationsRequestBuilder.cs deleted file mode 100644 index fedfb76..0000000 --- a/V2/Locations/LocationsRequestBuilder.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Locations -{ - /// - /// Builds and executes requests for operations under \v2\locations - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LocationsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public LocationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/locations{?after*,pageSize*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public LocationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/locations{?after*,pageSize*}", rawUrl) - { - } - /// - /// Returns flat list of all locations for all organizations - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Locations.Locations.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns flat list of all locations for all organizations - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Locations.LocationsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Locations.LocationsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns flat list of all locations for all organizations - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LocationsRequestBuilderGetQueryParameters - { - /// Last Location Identifier from previous page - [QueryParameter("after")] - public int? After { get; set; } - /// Limit number of locations to return - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LocationsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Locations/Locations_fields.cs b/V2/Locations/Locations_fields.cs deleted file mode 100644 index 2ef7ded..0000000 --- a/V2/Locations/Locations_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Locations -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Locations_fields : 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. - /// - public Locations_fields() - { - 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::NinjaOne.Client.V2.Locations.Locations_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Locations.Locations_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Locations/Locations_userData.cs b/V2/Locations/Locations_userData.cs deleted file mode 100644 index ba5250d..0000000 --- a/V2/Locations/Locations_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Locations -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Locations_userData : 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. - /// - public Locations_userData() - { - 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::NinjaOne.Client.V2.Locations.Locations_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Locations.Locations_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Noderole/Delete/DeletePostRequestBody.cs b/V2/Noderole/Delete/DeletePostRequestBody.cs deleted file mode 100644 index e41d793..0000000 --- a/V2/Noderole/Delete/DeletePostRequestBody.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Noderole.Delete -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeletePostRequestBody : 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; } - /// Ids of the Custom Device Roles to delete. System Default Device Roles can not be deleted. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Ids { get; set; } -#nullable restore -#else - public List Ids { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DeletePostRequestBody() - { - 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::NinjaOne.Client.V2.Noderole.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Noderole.Delete.DeletePostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("ids", Ids); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Noderole/Delete/DeleteRequestBuilder.cs b/V2/Noderole/Delete/DeleteRequestBuilder.cs deleted file mode 100644 index c60695e..0000000 --- a/V2/Noderole/Delete/DeleteRequestBuilder.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Noderole.Delete -{ - /// - /// Builds and executes requests for operations under \v2\noderole\delete - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeleteRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/noderole/delete", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/noderole/delete", rawUrl) - { - } - /// - /// Delete node roles - /// - /// The request body - /// 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 PostAsync(global::NinjaOne.Client.V2.Noderole.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Noderole.Delete.DeletePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete node roles - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Noderole.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Noderole.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Noderole.Delete.DeleteRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Noderole.Delete.DeleteRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeleteRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Noderole/List/ListRequestBuilder.cs b/V2/Noderole/List/ListRequestBuilder.cs deleted file mode 100644 index a864e15..0000000 --- a/V2/Noderole/List/ListRequestBuilder.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Noderole.List -{ - /// - /// Builds and executes requests for operations under \v2\noderole\list - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ListRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ListRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/noderole/list", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ListRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/noderole/list", rawUrl) - { - } - /// - /// Get all node roles - /// - /// 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) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get all node roles - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Noderole.List.ListRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Noderole.List.ListRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ListRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Noderole/Noderole.cs b/V2/Noderole/Noderole.cs deleted file mode 100644 index bd77c3c..0000000 --- a/V2/Noderole/Noderole.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Noderole -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Noderole : 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; } - /// Chassis Type for the Managed Device Roles that utilize it such as Workstations. Should be null if unused. - public global::NinjaOne.Client.V2.Noderole.Noderole_chassisType? ChassisType { get; set; } - /// Device Role Description. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Icon Name of white-listed icon to be used for Unmanaged Device Roles. Should be null for all Managed Device Roles. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Icon { get; set; } -#nullable restore -#else - public string Icon { get; set; } -#endif - /// Device Role Name. Must be unique. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class of the Device Role. Should match Parent Device Role's Node Class. - public global::NinjaOne.Client.V2.Noderole.Noderole_nodeClass? NodeClass { get; set; } - /// Id of an already existing Device Role to create this Node Role Under. Should be null if nodeRoleParentName is assigned. - public int? NodeRoleParentId { get; set; } - /// Name of a Device Parent that will be created in this request that will act as the Parent Device Role for this Device Role. Should be null if nodeRoleParentId is assigned. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NodeRoleParentName { get; set; } -#nullable restore -#else - public string NodeRoleParentName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Noderole() - { - 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::NinjaOne.Client.V2.Noderole.Noderole CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Noderole.Noderole(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "chassisType", n => { ChassisType = n.GetEnumValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "icon", n => { Icon = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleParentId", n => { NodeRoleParentId = n.GetIntValue(); } }, - { "nodeRoleParentName", n => { NodeRoleParentName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("chassisType", ChassisType); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("icon", Icon); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleParentId", NodeRoleParentId); - writer.WriteStringValue("nodeRoleParentName", NodeRoleParentName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Noderole/NoderoleRequestBuilder.cs b/V2/Noderole/NoderoleRequestBuilder.cs deleted file mode 100644 index 90af34a..0000000 --- a/V2/Noderole/NoderoleRequestBuilder.cs +++ /dev/null @@ -1,160 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Noderole.Delete; -using NinjaOne.Client.V2.Noderole.List; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Noderole -{ - /// - /// Builds and executes requests for operations under \v2\noderole - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class NoderoleRequestBuilder : BaseRequestBuilder - { - /// The deletePath property - public global::NinjaOne.Client.V2.Noderole.Delete.DeleteRequestBuilder DeletePath - { - get => new global::NinjaOne.Client.V2.Noderole.Delete.DeleteRequestBuilder(PathParameters, RequestAdapter); - } - /// The list property - public global::NinjaOne.Client.V2.Noderole.List.ListRequestBuilder List - { - get => new global::NinjaOne.Client.V2.Noderole.List.ListRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public NoderoleRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/noderole", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public NoderoleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/noderole", rawUrl) - { - } - /// - /// Update multiple node roles - /// - /// A List<global::NinjaOne.Client.V2.Noderole.Noderole> - /// The request body - /// 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?> PatchAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PatchAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Noderole.Noderole.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Create multiple node roles - /// - /// A List<global::NinjaOne.Client.V2.Noderole.Noderole> - /// The request body - /// 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?> PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Noderole.Noderole.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Update multiple node roles - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Create multiple node roles - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Noderole.NoderoleRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Noderole.NoderoleRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class NoderoleRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class NoderoleRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Noderole/Noderole_chassisType.cs b/V2/Noderole/Noderole_chassisType.cs deleted file mode 100644 index 152ebde..0000000 --- a/V2/Noderole/Noderole_chassisType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Noderole -{ - /// Chassis Type for the Managed Device Roles that utilize it such as Workstations. Should be null if unused. - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Noderole_chassisType - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "DESKTOP")] - #pragma warning disable CS1591 - DESKTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "LAPTOP")] - #pragma warning disable CS1591 - LAPTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "MOBILE")] - #pragma warning disable CS1591 - MOBILE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Noderole/Noderole_nodeClass.cs b/V2/Noderole/Noderole_nodeClass.cs deleted file mode 100644 index e8c38cb..0000000 --- a/V2/Noderole/Noderole_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Noderole -{ - /// Node Class of the Device Role. Should match Parent Device Role's Node Class. - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Noderole_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/NotificationChannels/Enabled/Enabled.cs b/V2/NotificationChannels/Enabled/Enabled.cs deleted file mode 100644 index cfaca22..0000000 --- a/V2/NotificationChannels/Enabled/Enabled.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.NotificationChannels.Enabled -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Enabled : 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; } - /// Notification Channel Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Notification Channel Enabled - public bool? EnabledProp { get; set; } - /// Notification Channel ID - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Notification Channel Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Notification Channel Type - public global::NinjaOne.Client.V2.NotificationChannels.Enabled.Enabled_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Enabled() - { - 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::NinjaOne.Client.V2.NotificationChannels.Enabled.Enabled CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.NotificationChannels.Enabled.Enabled(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "enabled", n => { EnabledProp = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteBoolValue("enabled", EnabledProp); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/NotificationChannels/Enabled/EnabledRequestBuilder.cs b/V2/NotificationChannels/Enabled/EnabledRequestBuilder.cs deleted file mode 100644 index 5d4fa2e..0000000 --- a/V2/NotificationChannels/Enabled/EnabledRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.NotificationChannels.Enabled -{ - /// - /// Builds and executes requests for operations under \v2\notification-channels\enabled - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EnabledRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public EnabledRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/notification-channels/enabled", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public EnabledRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/notification-channels/enabled", rawUrl) - { - } - /// - /// Returns list of enabled notification channels - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.NotificationChannels.Enabled.Enabled.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of enabled notification channels - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.NotificationChannels.Enabled.EnabledRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.NotificationChannels.Enabled.EnabledRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EnabledRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/NotificationChannels/Enabled/Enabled_type.cs b/V2/NotificationChannels/Enabled/Enabled_type.cs deleted file mode 100644 index 2dfe4cd..0000000 --- a/V2/NotificationChannels/Enabled/Enabled_type.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.NotificationChannels.Enabled -{ - /// Notification Channel Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Enabled_type - { - [EnumMember(Value = "EMAIL")] - #pragma warning disable CS1591 - EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "META_CHANNEL")] - #pragma warning disable CS1591 - META_CHANNEL, - #pragma warning restore CS1591 - [EnumMember(Value = "PAGER_DUTY")] - #pragma warning disable CS1591 - PAGER_DUTY, - #pragma warning restore CS1591 - [EnumMember(Value = "SLACK")] - #pragma warning disable CS1591 - SLACK, - #pragma warning restore CS1591 - [EnumMember(Value = "SMS")] - #pragma warning disable CS1591 - SMS, - #pragma warning restore CS1591 - [EnumMember(Value = "MICROSOFT_TEAMS")] - #pragma warning disable CS1591 - MICROSOFT_TEAMS, - #pragma warning restore CS1591 - [EnumMember(Value = "WEBHOOK")] - #pragma warning disable CS1591 - WEBHOOK, - #pragma warning restore CS1591 - [EnumMember(Value = "OTHER")] - #pragma warning disable CS1591 - OTHER, - #pragma warning restore CS1591 - } -} diff --git a/V2/NotificationChannels/NotificationChannels.cs b/V2/NotificationChannels/NotificationChannels.cs deleted file mode 100644 index 31b6e66..0000000 --- a/V2/NotificationChannels/NotificationChannels.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.NotificationChannels -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class NotificationChannels : 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; } - /// Notification Channel Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Notification Channel Enabled - public bool? Enabled { get; set; } - /// Notification Channel ID - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Notification Channel Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Notification Channel Type - public global::NinjaOne.Client.V2.NotificationChannels.NotificationChannels_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public NotificationChannels() - { - 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::NinjaOne.Client.V2.NotificationChannels.NotificationChannels CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.NotificationChannels.NotificationChannels(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/NotificationChannels/NotificationChannelsRequestBuilder.cs b/V2/NotificationChannels/NotificationChannelsRequestBuilder.cs deleted file mode 100644 index 2ddee02..0000000 --- a/V2/NotificationChannels/NotificationChannelsRequestBuilder.cs +++ /dev/null @@ -1,102 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.NotificationChannels.Enabled; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.NotificationChannels -{ - /// - /// Builds and executes requests for operations under \v2\notification-channels - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class NotificationChannelsRequestBuilder : BaseRequestBuilder - { - /// The enabled property - public global::NinjaOne.Client.V2.NotificationChannels.Enabled.EnabledRequestBuilder Enabled - { - get => new global::NinjaOne.Client.V2.NotificationChannels.Enabled.EnabledRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public NotificationChannelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/notification-channels", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public NotificationChannelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/notification-channels", rawUrl) - { - } - /// - /// Returns list of notification channels - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.NotificationChannels.NotificationChannels.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of notification channels - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.NotificationChannels.NotificationChannelsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.NotificationChannels.NotificationChannelsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class NotificationChannelsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/NotificationChannels/NotificationChannels_type.cs b/V2/NotificationChannels/NotificationChannels_type.cs deleted file mode 100644 index 34ee740..0000000 --- a/V2/NotificationChannels/NotificationChannels_type.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.NotificationChannels -{ - /// Notification Channel Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum NotificationChannels_type - { - [EnumMember(Value = "EMAIL")] - #pragma warning disable CS1591 - EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "META_CHANNEL")] - #pragma warning disable CS1591 - META_CHANNEL, - #pragma warning restore CS1591 - [EnumMember(Value = "PAGER_DUTY")] - #pragma warning disable CS1591 - PAGER_DUTY, - #pragma warning restore CS1591 - [EnumMember(Value = "SLACK")] - #pragma warning disable CS1591 - SLACK, - #pragma warning restore CS1591 - [EnumMember(Value = "SMS")] - #pragma warning disable CS1591 - SMS, - #pragma warning restore CS1591 - [EnumMember(Value = "MICROSOFT_TEAMS")] - #pragma warning disable CS1591 - MICROSOFT_TEAMS, - #pragma warning restore CS1591 - [EnumMember(Value = "WEBHOOK")] - #pragma warning disable CS1591 - WEBHOOK, - #pragma warning restore CS1591 - [EnumMember(Value = "OTHER")] - #pragma warning disable CS1591 - OTHER, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/Archive/Archive.cs b/V2/Organization/Archive/Archive.cs deleted file mode 100644 index 162ad74..0000000 --- a/V2/Organization/Archive/Archive.cs +++ /dev/null @@ -1,169 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Archive -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Archive : 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; } - /// Indicates if the checklist is archived - public bool? Archived { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Archive.Archive_archivedBy? ArchivedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Archive.Archive_archivedBy ArchivedBy { get; set; } -#endif - /// Archive time - public double? ArchiveTime { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Archive.Archive_assignedTo? AssignedTo { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Archive.Archive_assignedTo AssignedTo { get; set; } -#endif - /// Client name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ClientName { get; set; } -#nullable restore -#else - public string ClientName { get; set; } -#endif - /// Indicates if the checklist is completed - public bool? Completed { get; set; } - /// Date of completion - public double? CompletedOn { get; set; } - /// Last updated by user - public int? CompletedTaskCount { get; set; } - /// Task description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Archive.Archive_description? Description { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Archive.Archive_description Description { get; set; } -#endif - /// Due date - public double? DueDate { get; set; } - /// Identifier - public int? Id { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Archive.Archive_lastUpdatedBy? LastUpdatedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Archive.Archive_lastUpdatedBy LastUpdatedBy { get; set; } -#endif - /// Last updated on - public double? LastUpdatedOn { get; set; } - /// Checklist name (must be unique) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// Indicates if the checklist completion is required - public bool? Required { get; set; } - /// Checklist's tasks -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tasks { get; set; } -#nullable restore -#else - public List Tasks { get; set; } -#endif - /// Checklist's total tasks count - public int? TotalTaskCount { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Archive() - { - 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::NinjaOne.Client.V2.Organization.Archive.Archive CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Archive.Archive(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "archiveTime", n => { ArchiveTime = n.GetDoubleValue(); } }, - { "archived", n => { Archived = n.GetBoolValue(); } }, - { "archivedBy", n => { ArchivedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Archive.Archive_archivedBy.CreateFromDiscriminatorValue); } }, - { "assignedTo", n => { AssignedTo = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Archive.Archive_assignedTo.CreateFromDiscriminatorValue); } }, - { "clientName", n => { ClientName = n.GetStringValue(); } }, - { "completed", n => { Completed = n.GetBoolValue(); } }, - { "completedOn", n => { CompletedOn = n.GetDoubleValue(); } }, - { "completedTaskCount", n => { CompletedTaskCount = n.GetIntValue(); } }, - { "description", n => { Description = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Archive.Archive_description.CreateFromDiscriminatorValue); } }, - { "dueDate", n => { DueDate = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastUpdatedBy", n => { LastUpdatedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Archive.Archive_lastUpdatedBy.CreateFromDiscriminatorValue); } }, - { "lastUpdatedOn", n => { LastUpdatedOn = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tasks", n => { Tasks = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organization.Archive.Archive_tasks.CreateFromDiscriminatorValue)?.AsList(); } }, - { "totalTaskCount", n => { TotalTaskCount = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("archived", Archived); - writer.WriteObjectValue("archivedBy", ArchivedBy); - writer.WriteDoubleValue("archiveTime", ArchiveTime); - writer.WriteObjectValue("assignedTo", AssignedTo); - writer.WriteStringValue("clientName", ClientName); - writer.WriteBoolValue("completed", Completed); - writer.WriteDoubleValue("completedOn", CompletedOn); - writer.WriteIntValue("completedTaskCount", CompletedTaskCount); - writer.WriteObjectValue("description", Description); - writer.WriteDoubleValue("dueDate", DueDate); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("lastUpdatedBy", LastUpdatedBy); - writer.WriteDoubleValue("lastUpdatedOn", LastUpdatedOn); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteBoolValue("required", Required); - writer.WriteCollectionOfObjectValues("tasks", Tasks); - writer.WriteIntValue("totalTaskCount", TotalTaskCount); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Archive/ArchivePostRequestBody.cs b/V2/Organization/Archive/ArchivePostRequestBody.cs deleted file mode 100644 index f5694a4..0000000 --- a/V2/Organization/Archive/ArchivePostRequestBody.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Archive -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ArchivePostRequestBody : 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 clientChecklistIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ClientChecklistIds { get; set; } -#nullable restore -#else - public List ClientChecklistIds { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ArchivePostRequestBody() - { - 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::NinjaOne.Client.V2.Organization.Archive.ArchivePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Archive.ArchivePostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "clientChecklistIds", n => { ClientChecklistIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("clientChecklistIds", ClientChecklistIds); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Archive/ArchiveRequestBuilder.cs b/V2/Organization/Archive/ArchiveRequestBuilder.cs deleted file mode 100644 index 155950f..0000000 --- a/V2/Organization/Archive/ArchiveRequestBuilder.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Archive -{ - /// - /// Builds and executes requests for operations under \v2\organization\archive - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchiveRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ArchiveRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/archive", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ArchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/archive", rawUrl) - { - } - /// - /// Archive multiple organization checklists - /// - /// A List<global::NinjaOne.Client.V2.Organization.Archive.Archive> - /// The request body - /// 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?> PostAsync(global::NinjaOne.Client.V2.Organization.Archive.ArchivePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PostAsync(global::NinjaOne.Client.V2.Organization.Archive.ArchivePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Archive.Archive.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Archive multiple organization checklists - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Organization.Archive.ArchivePostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Organization.Archive.ArchivePostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Archive.ArchiveRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Archive.ArchiveRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchiveRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Archive/Archive_archivedBy.cs b/V2/Organization/Archive/Archive_archivedBy.cs deleted file mode 100644 index 6658f01..0000000 --- a/V2/Organization/Archive/Archive_archivedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Archive -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Archive_archivedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Archive_archivedBy() - { - 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::NinjaOne.Client.V2.Organization.Archive.Archive_archivedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Archive.Archive_archivedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Archive/Archive_assignedTo.cs b/V2/Organization/Archive/Archive_assignedTo.cs deleted file mode 100644 index 28b1c96..0000000 --- a/V2/Organization/Archive/Archive_assignedTo.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Archive -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Archive_assignedTo : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Archive_assignedTo() - { - 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::NinjaOne.Client.V2.Organization.Archive.Archive_assignedTo CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Archive.Archive_assignedTo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Archive/Archive_description.cs b/V2/Organization/Archive/Archive_description.cs deleted file mode 100644 index 9018e6a..0000000 --- a/V2/Organization/Archive/Archive_description.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Archive -{ - /// - /// Task description - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Archive_description : 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; } - /// The html property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// The text property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Archive_description() - { - 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::NinjaOne.Client.V2.Organization.Archive.Archive_description CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Archive.Archive_description(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Archive/Archive_lastUpdatedBy.cs b/V2/Organization/Archive/Archive_lastUpdatedBy.cs deleted file mode 100644 index c44053c..0000000 --- a/V2/Organization/Archive/Archive_lastUpdatedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Archive -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Archive_lastUpdatedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Archive_lastUpdatedBy() - { - 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::NinjaOne.Client.V2.Organization.Archive.Archive_lastUpdatedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Archive.Archive_lastUpdatedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Archive/Archive_tasks.cs b/V2/Organization/Archive/Archive_tasks.cs deleted file mode 100644 index 5f8dc73..0000000 --- a/V2/Organization/Archive/Archive_tasks.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Archive -{ - /// - /// Checklist's tasks - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Archive_tasks : 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; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Archive.Archive_tasks_assignedTo? AssignedTo { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Archive.Archive_tasks_assignedTo AssignedTo { get; set; } -#endif - /// Indicates if the checklist is completed - public bool? Completed { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Archive.Archive_tasks_completedBy? CompletedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Archive.Archive_tasks_completedBy CompletedBy { get; set; } -#endif - /// Date of completion - public double? CompletedOn { get; set; } - /// Task description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Archive.Archive_tasks_description? Description { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Archive.Archive_tasks_description Description { get; set; } -#endif - /// Due date - public double? DueDate { get; set; } - /// Identifier - public int? Id { get; set; } - /// Task name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Position of the task - public int? Position { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Archive_tasks() - { - 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::NinjaOne.Client.V2.Organization.Archive.Archive_tasks CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Archive.Archive_tasks(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignedTo", n => { AssignedTo = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Archive.Archive_tasks_assignedTo.CreateFromDiscriminatorValue); } }, - { "completed", n => { Completed = n.GetBoolValue(); } }, - { "completedBy", n => { CompletedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Archive.Archive_tasks_completedBy.CreateFromDiscriminatorValue); } }, - { "completedOn", n => { CompletedOn = n.GetDoubleValue(); } }, - { "description", n => { Description = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Archive.Archive_tasks_description.CreateFromDiscriminatorValue); } }, - { "dueDate", n => { DueDate = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "position", n => { Position = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assignedTo", AssignedTo); - writer.WriteBoolValue("completed", Completed); - writer.WriteObjectValue("completedBy", CompletedBy); - writer.WriteDoubleValue("completedOn", CompletedOn); - writer.WriteObjectValue("description", Description); - writer.WriteDoubleValue("dueDate", DueDate); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("position", Position); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Archive/Archive_tasks_assignedTo.cs b/V2/Organization/Archive/Archive_tasks_assignedTo.cs deleted file mode 100644 index 021ba9c..0000000 --- a/V2/Organization/Archive/Archive_tasks_assignedTo.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Archive -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Archive_tasks_assignedTo : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Archive_tasks_assignedTo() - { - 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::NinjaOne.Client.V2.Organization.Archive.Archive_tasks_assignedTo CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Archive.Archive_tasks_assignedTo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Archive/Archive_tasks_completedBy.cs b/V2/Organization/Archive/Archive_tasks_completedBy.cs deleted file mode 100644 index 36c82dc..0000000 --- a/V2/Organization/Archive/Archive_tasks_completedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Archive -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Archive_tasks_completedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Archive_tasks_completedBy() - { - 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::NinjaOne.Client.V2.Organization.Archive.Archive_tasks_completedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Archive.Archive_tasks_completedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Archive/Archive_tasks_description.cs b/V2/Organization/Archive/Archive_tasks_description.cs deleted file mode 100644 index 10348ba..0000000 --- a/V2/Organization/Archive/Archive_tasks_description.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Archive -{ - /// - /// Task description - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Archive_tasks_description : 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; } - /// The html property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// The text property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Archive_tasks_description() - { - 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::NinjaOne.Client.V2.Organization.Archive.Archive_tasks_description CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Archive.Archive_tasks_description(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklist/ChecklistRequestBuilder.cs b/V2/Organization/Checklist/ChecklistRequestBuilder.cs deleted file mode 100644 index c2214ce..0000000 --- a/V2/Organization/Checklist/ChecklistRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Organization.Checklist.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Organization.Checklist -{ - /// - /// Builds and executes requests for operations under \v2\organization\checklist - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ChecklistRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.organization.checklist.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("checklistId", position); - return new global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.organization.checklist.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("checklistId", position); - return new global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ChecklistRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/checklist", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ChecklistRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/checklist", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklist/Item/SignedUrls/SignedUrlsRequestBuilder.cs b/V2/Organization/Checklist/Item/SignedUrls/SignedUrlsRequestBuilder.cs deleted file mode 100644 index e981348..0000000 --- a/V2/Organization/Checklist/Item/SignedUrls/SignedUrlsRequestBuilder.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Checklist.Item.SignedUrls -{ - /// - /// Builds and executes requests for operations under \v2\organization\checklist\{checklistId}\signed-urls - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SignedUrlsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SignedUrlsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/checklist/{checklistId}/signed-urls", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SignedUrlsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/checklist/{checklistId}/signed-urls", rawUrl) - { - } - /// - /// Get organization checklist signed urls - /// - /// 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) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get organization checklist signed urls - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Checklist.Item.SignedUrls.SignedUrlsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Checklist.Item.SignedUrls.SignedUrlsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SignedUrlsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklist/Item/WithChecklistGetResponse.cs b/V2/Organization/Checklist/Item/WithChecklistGetResponse.cs deleted file mode 100644 index 9026873..0000000 --- a/V2/Organization/Checklist/Item/WithChecklistGetResponse.cs +++ /dev/null @@ -1,169 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklist.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithChecklistGetResponse : 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; } - /// Indicates if the checklist is archived - public bool? Archived { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_archivedBy? ArchivedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_archivedBy ArchivedBy { get; set; } -#endif - /// Archive time - public double? ArchiveTime { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_assignedTo? AssignedTo { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_assignedTo AssignedTo { get; set; } -#endif - /// Client name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ClientName { get; set; } -#nullable restore -#else - public string ClientName { get; set; } -#endif - /// Indicates if the checklist is completed - public bool? Completed { get; set; } - /// Date of completion - public double? CompletedOn { get; set; } - /// Last updated by user - public int? CompletedTaskCount { get; set; } - /// Task description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_description? Description { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_description Description { get; set; } -#endif - /// Due date - public double? DueDate { get; set; } - /// Identifier - public int? Id { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_lastUpdatedBy? LastUpdatedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_lastUpdatedBy LastUpdatedBy { get; set; } -#endif - /// Last updated on - public double? LastUpdatedOn { get; set; } - /// Checklist name (must be unique) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// Indicates if the checklist completion is required - public bool? Required { get; set; } - /// Checklist's tasks -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tasks { get; set; } -#nullable restore -#else - public List Tasks { get; set; } -#endif - /// Checklist's total tasks count - public int? TotalTaskCount { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithChecklistGetResponse() - { - 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::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "archiveTime", n => { ArchiveTime = n.GetDoubleValue(); } }, - { "archived", n => { Archived = n.GetBoolValue(); } }, - { "archivedBy", n => { ArchivedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_archivedBy.CreateFromDiscriminatorValue); } }, - { "assignedTo", n => { AssignedTo = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_assignedTo.CreateFromDiscriminatorValue); } }, - { "clientName", n => { ClientName = n.GetStringValue(); } }, - { "completed", n => { Completed = n.GetBoolValue(); } }, - { "completedOn", n => { CompletedOn = n.GetDoubleValue(); } }, - { "completedTaskCount", n => { CompletedTaskCount = n.GetIntValue(); } }, - { "description", n => { Description = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_description.CreateFromDiscriminatorValue); } }, - { "dueDate", n => { DueDate = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastUpdatedBy", n => { LastUpdatedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_lastUpdatedBy.CreateFromDiscriminatorValue); } }, - { "lastUpdatedOn", n => { LastUpdatedOn = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tasks", n => { Tasks = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks.CreateFromDiscriminatorValue)?.AsList(); } }, - { "totalTaskCount", n => { TotalTaskCount = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("archived", Archived); - writer.WriteObjectValue("archivedBy", ArchivedBy); - writer.WriteDoubleValue("archiveTime", ArchiveTime); - writer.WriteObjectValue("assignedTo", AssignedTo); - writer.WriteStringValue("clientName", ClientName); - writer.WriteBoolValue("completed", Completed); - writer.WriteDoubleValue("completedOn", CompletedOn); - writer.WriteIntValue("completedTaskCount", CompletedTaskCount); - writer.WriteObjectValue("description", Description); - writer.WriteDoubleValue("dueDate", DueDate); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("lastUpdatedBy", LastUpdatedBy); - writer.WriteDoubleValue("lastUpdatedOn", LastUpdatedOn); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteBoolValue("required", Required); - writer.WriteCollectionOfObjectValues("tasks", Tasks); - writer.WriteIntValue("totalTaskCount", TotalTaskCount); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklist/Item/WithChecklistGetResponse_archivedBy.cs b/V2/Organization/Checklist/Item/WithChecklistGetResponse_archivedBy.cs deleted file mode 100644 index 4537e75..0000000 --- a/V2/Organization/Checklist/Item/WithChecklistGetResponse_archivedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklist.Item -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithChecklistGetResponse_archivedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithChecklistGetResponse_archivedBy() - { - 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::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_archivedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_archivedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklist/Item/WithChecklistGetResponse_assignedTo.cs b/V2/Organization/Checklist/Item/WithChecklistGetResponse_assignedTo.cs deleted file mode 100644 index b7694ec..0000000 --- a/V2/Organization/Checklist/Item/WithChecklistGetResponse_assignedTo.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklist.Item -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithChecklistGetResponse_assignedTo : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithChecklistGetResponse_assignedTo() - { - 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::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_assignedTo CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_assignedTo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklist/Item/WithChecklistGetResponse_description.cs b/V2/Organization/Checklist/Item/WithChecklistGetResponse_description.cs deleted file mode 100644 index 60b4688..0000000 --- a/V2/Organization/Checklist/Item/WithChecklistGetResponse_description.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklist.Item -{ - /// - /// Task description - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithChecklistGetResponse_description : 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; } - /// The html property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// The text property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithChecklistGetResponse_description() - { - 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::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_description CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_description(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklist/Item/WithChecklistGetResponse_lastUpdatedBy.cs b/V2/Organization/Checklist/Item/WithChecklistGetResponse_lastUpdatedBy.cs deleted file mode 100644 index 9e8e393..0000000 --- a/V2/Organization/Checklist/Item/WithChecklistGetResponse_lastUpdatedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklist.Item -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithChecklistGetResponse_lastUpdatedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithChecklistGetResponse_lastUpdatedBy() - { - 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::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_lastUpdatedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_lastUpdatedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklist/Item/WithChecklistGetResponse_tasks.cs b/V2/Organization/Checklist/Item/WithChecklistGetResponse_tasks.cs deleted file mode 100644 index c22c3c5..0000000 --- a/V2/Organization/Checklist/Item/WithChecklistGetResponse_tasks.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklist.Item -{ - /// - /// Checklist's tasks - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithChecklistGetResponse_tasks : 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; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks_assignedTo? AssignedTo { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks_assignedTo AssignedTo { get; set; } -#endif - /// Indicates if the checklist is completed - public bool? Completed { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks_completedBy? CompletedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks_completedBy CompletedBy { get; set; } -#endif - /// Date of completion - public double? CompletedOn { get; set; } - /// Task description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks_description? Description { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks_description Description { get; set; } -#endif - /// Due date - public double? DueDate { get; set; } - /// Identifier - public int? Id { get; set; } - /// Task name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Position of the task - public int? Position { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithChecklistGetResponse_tasks() - { - 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::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignedTo", n => { AssignedTo = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks_assignedTo.CreateFromDiscriminatorValue); } }, - { "completed", n => { Completed = n.GetBoolValue(); } }, - { "completedBy", n => { CompletedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks_completedBy.CreateFromDiscriminatorValue); } }, - { "completedOn", n => { CompletedOn = n.GetDoubleValue(); } }, - { "description", n => { Description = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks_description.CreateFromDiscriminatorValue); } }, - { "dueDate", n => { DueDate = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "position", n => { Position = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assignedTo", AssignedTo); - writer.WriteBoolValue("completed", Completed); - writer.WriteObjectValue("completedBy", CompletedBy); - writer.WriteDoubleValue("completedOn", CompletedOn); - writer.WriteObjectValue("description", Description); - writer.WriteDoubleValue("dueDate", DueDate); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("position", Position); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklist/Item/WithChecklistGetResponse_tasks_assignedTo.cs b/V2/Organization/Checklist/Item/WithChecklistGetResponse_tasks_assignedTo.cs deleted file mode 100644 index 455eef4..0000000 --- a/V2/Organization/Checklist/Item/WithChecklistGetResponse_tasks_assignedTo.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklist.Item -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithChecklistGetResponse_tasks_assignedTo : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithChecklistGetResponse_tasks_assignedTo() - { - 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::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks_assignedTo CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks_assignedTo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklist/Item/WithChecklistGetResponse_tasks_completedBy.cs b/V2/Organization/Checklist/Item/WithChecklistGetResponse_tasks_completedBy.cs deleted file mode 100644 index 861306f..0000000 --- a/V2/Organization/Checklist/Item/WithChecklistGetResponse_tasks_completedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklist.Item -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithChecklistGetResponse_tasks_completedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithChecklistGetResponse_tasks_completedBy() - { - 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::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks_completedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks_completedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklist/Item/WithChecklistGetResponse_tasks_description.cs b/V2/Organization/Checklist/Item/WithChecklistGetResponse_tasks_description.cs deleted file mode 100644 index 1939dd0..0000000 --- a/V2/Organization/Checklist/Item/WithChecklistGetResponse_tasks_description.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklist.Item -{ - /// - /// Task description - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithChecklistGetResponse_tasks_description : 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; } - /// The html property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// The text property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithChecklistGetResponse_tasks_description() - { - 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::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks_description CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse_tasks_description(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklist/Item/WithChecklistItemRequestBuilder.cs b/V2/Organization/Checklist/Item/WithChecklistItemRequestBuilder.cs deleted file mode 100644 index f9a424d..0000000 --- a/V2/Organization/Checklist/Item/WithChecklistItemRequestBuilder.cs +++ /dev/null @@ -1,159 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Organization.Checklist.Item.SignedUrls; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Checklist.Item -{ - /// - /// Builds and executes requests for operations under \v2\organization\checklist\{checklistId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithChecklistItemRequestBuilder : BaseRequestBuilder - { - /// The signedUrls property - public global::NinjaOne.Client.V2.Organization.Checklist.Item.SignedUrls.SignedUrlsRequestBuilder SignedUrls - { - get => new global::NinjaOne.Client.V2.Organization.Checklist.Item.SignedUrls.SignedUrlsRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithChecklistItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/checklist/{checklistId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithChecklistItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/checklist/{checklistId}", rawUrl) - { - } - /// - /// Deletes an organization checklist by id - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get a client checklist by id - /// - /// 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 GetAsWithChecklistGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsWithChecklistGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get a client checklist by id - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use GetAsWithChecklistGetResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Deletes an organization checklist by id - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Get a client checklist by id - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithChecklistItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithChecklistItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklist/Item/WithChecklistResponse.cs b/V2/Organization/Checklist/Item/WithChecklistResponse.cs deleted file mode 100644 index 456d6c9..0000000 --- a/V2/Organization/Checklist/Item/WithChecklistResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklist.Item -{ - [Obsolete("This class is obsolete. Use WithChecklistGetResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithChecklistResponse : global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistGetResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklist.Item.WithChecklistResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklists/Checklists.cs b/V2/Organization/Checklists/Checklists.cs deleted file mode 100644 index f3937f2..0000000 --- a/V2/Organization/Checklists/Checklists.cs +++ /dev/null @@ -1,169 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklists -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Checklists : 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; } - /// Indicates if the checklist is archived - public bool? Archived { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Checklists.Checklists_archivedBy? ArchivedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Checklists.Checklists_archivedBy ArchivedBy { get; set; } -#endif - /// Archive time - public double? ArchiveTime { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Checklists.Checklists_assignedTo? AssignedTo { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Checklists.Checklists_assignedTo AssignedTo { get; set; } -#endif - /// Client name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ClientName { get; set; } -#nullable restore -#else - public string ClientName { get; set; } -#endif - /// Indicates if the checklist is completed - public bool? Completed { get; set; } - /// Date of completion - public double? CompletedOn { get; set; } - /// Last updated by user - public int? CompletedTaskCount { get; set; } - /// Task description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Checklists.Checklists_description? Description { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Checklists.Checklists_description Description { get; set; } -#endif - /// Due date - public double? DueDate { get; set; } - /// Identifier - public int? Id { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Checklists.Checklists_lastUpdatedBy? LastUpdatedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Checklists.Checklists_lastUpdatedBy LastUpdatedBy { get; set; } -#endif - /// Last updated on - public double? LastUpdatedOn { get; set; } - /// Checklist name (must be unique) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// Indicates if the checklist completion is required - public bool? Required { get; set; } - /// Checklist's tasks -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tasks { get; set; } -#nullable restore -#else - public List Tasks { get; set; } -#endif - /// Checklist's total tasks count - public int? TotalTaskCount { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Checklists() - { - 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::NinjaOne.Client.V2.Organization.Checklists.Checklists CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklists.Checklists(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "archiveTime", n => { ArchiveTime = n.GetDoubleValue(); } }, - { "archived", n => { Archived = n.GetBoolValue(); } }, - { "archivedBy", n => { ArchivedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Checklists.Checklists_archivedBy.CreateFromDiscriminatorValue); } }, - { "assignedTo", n => { AssignedTo = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Checklists.Checklists_assignedTo.CreateFromDiscriminatorValue); } }, - { "clientName", n => { ClientName = n.GetStringValue(); } }, - { "completed", n => { Completed = n.GetBoolValue(); } }, - { "completedOn", n => { CompletedOn = n.GetDoubleValue(); } }, - { "completedTaskCount", n => { CompletedTaskCount = n.GetIntValue(); } }, - { "description", n => { Description = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Checklists.Checklists_description.CreateFromDiscriminatorValue); } }, - { "dueDate", n => { DueDate = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastUpdatedBy", n => { LastUpdatedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Checklists.Checklists_lastUpdatedBy.CreateFromDiscriminatorValue); } }, - { "lastUpdatedOn", n => { LastUpdatedOn = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tasks", n => { Tasks = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks.CreateFromDiscriminatorValue)?.AsList(); } }, - { "totalTaskCount", n => { TotalTaskCount = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("archived", Archived); - writer.WriteObjectValue("archivedBy", ArchivedBy); - writer.WriteDoubleValue("archiveTime", ArchiveTime); - writer.WriteObjectValue("assignedTo", AssignedTo); - writer.WriteStringValue("clientName", ClientName); - writer.WriteBoolValue("completed", Completed); - writer.WriteDoubleValue("completedOn", CompletedOn); - writer.WriteIntValue("completedTaskCount", CompletedTaskCount); - writer.WriteObjectValue("description", Description); - writer.WriteDoubleValue("dueDate", DueDate); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("lastUpdatedBy", LastUpdatedBy); - writer.WriteDoubleValue("lastUpdatedOn", LastUpdatedOn); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteBoolValue("required", Required); - writer.WriteCollectionOfObjectValues("tasks", Tasks); - writer.WriteIntValue("totalTaskCount", TotalTaskCount); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklists/ChecklistsRequestBuilder.cs b/V2/Organization/Checklists/ChecklistsRequestBuilder.cs deleted file mode 100644 index 189ab08..0000000 --- a/V2/Organization/Checklists/ChecklistsRequestBuilder.cs +++ /dev/null @@ -1,254 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Organization.Checklists.Delete; -using NinjaOne.Client.V2.Organization.Checklists.Promote; -using NinjaOne.Client.V2.Organization.Checklists.PromoteWithName; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Checklists -{ - /// - /// Builds and executes requests for operations under \v2\organization\checklists - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ChecklistsRequestBuilder : BaseRequestBuilder - { - /// The deletePath property - public global::NinjaOne.Client.V2.Organization.Checklists.Delete.DeleteRequestBuilder DeletePath - { - get => new global::NinjaOne.Client.V2.Organization.Checklists.Delete.DeleteRequestBuilder(PathParameters, RequestAdapter); - } - /// The promote property - public global::NinjaOne.Client.V2.Organization.Checklists.Promote.PromoteRequestBuilder Promote - { - get => new global::NinjaOne.Client.V2.Organization.Checklists.Promote.PromoteRequestBuilder(PathParameters, RequestAdapter); - } - /// The promoteWithName property - public global::NinjaOne.Client.V2.Organization.Checklists.PromoteWithName.PromoteWithNameRequestBuilder PromoteWithName - { - get => new global::NinjaOne.Client.V2.Organization.Checklists.PromoteWithName.PromoteWithNameRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ChecklistsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/checklists{?assignedToUserId*,checklistIds*,checklistName*,completed*,includeArchived*,organizationIds*,required*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ChecklistsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/checklists{?assignedToUserId*,checklistIds*,checklistName*,completed*,includeArchived*,organizationIds*,required*}", rawUrl) - { - } - /// - /// List client checklists with given criteria - /// - /// A List<global::NinjaOne.Client.V2.Organization.Checklists.Checklists> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Checklists.Checklists.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Creates multiple organization checklists - /// - /// A List<global::NinjaOne.Client.V2.Organization.Checklists.Checklists> - /// The request body - /// 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?> PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Checklists.Checklists.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Updates multiple organization checklists - /// - /// A List<global::NinjaOne.Client.V2.Organization.Checklists.Checklists> - /// The request body - /// 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?> PutAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PutAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Checklists.Checklists.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// List client checklists with given criteria - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Creates multiple organization checklists - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Updates multiple organization checklists - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Checklists.ChecklistsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Checklists.ChecklistsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// List client checklists with given criteria - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ChecklistsRequestBuilderGetQueryParameters - { - [QueryParameter("assignedToUserId")] - public int? AssignedToUserId { get; set; } -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("checklistIds")] - public string? ChecklistIds { get; set; } -#nullable restore -#else - [QueryParameter("checklistIds")] - public string ChecklistIds { get; set; } -#endif -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("checklistName")] - public string? ChecklistName { get; set; } -#nullable restore -#else - [QueryParameter("checklistName")] - public string ChecklistName { get; set; } -#endif - [QueryParameter("completed")] - public bool? Completed { get; set; } - [QueryParameter("includeArchived")] - public bool? IncludeArchived { get; set; } -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("organizationIds")] - public string? OrganizationIds { get; set; } -#nullable restore -#else - [QueryParameter("organizationIds")] - public string OrganizationIds { get; set; } -#endif - [QueryParameter("required")] - public bool? Required { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ChecklistsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ChecklistsRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ChecklistsRequestBuilderPutRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklists/Checklists_archivedBy.cs b/V2/Organization/Checklists/Checklists_archivedBy.cs deleted file mode 100644 index caaa485..0000000 --- a/V2/Organization/Checklists/Checklists_archivedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklists -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Checklists_archivedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Checklists_archivedBy() - { - 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::NinjaOne.Client.V2.Organization.Checklists.Checklists_archivedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklists.Checklists_archivedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklists/Checklists_assignedTo.cs b/V2/Organization/Checklists/Checklists_assignedTo.cs deleted file mode 100644 index 21a6807..0000000 --- a/V2/Organization/Checklists/Checklists_assignedTo.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklists -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Checklists_assignedTo : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Checklists_assignedTo() - { - 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::NinjaOne.Client.V2.Organization.Checklists.Checklists_assignedTo CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklists.Checklists_assignedTo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklists/Checklists_description.cs b/V2/Organization/Checklists/Checklists_description.cs deleted file mode 100644 index 08b084d..0000000 --- a/V2/Organization/Checklists/Checklists_description.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklists -{ - /// - /// Task description - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Checklists_description : 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; } - /// The html property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// The text property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Checklists_description() - { - 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::NinjaOne.Client.V2.Organization.Checklists.Checklists_description CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklists.Checklists_description(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklists/Checklists_lastUpdatedBy.cs b/V2/Organization/Checklists/Checklists_lastUpdatedBy.cs deleted file mode 100644 index 56d090d..0000000 --- a/V2/Organization/Checklists/Checklists_lastUpdatedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklists -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Checklists_lastUpdatedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Checklists_lastUpdatedBy() - { - 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::NinjaOne.Client.V2.Organization.Checklists.Checklists_lastUpdatedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklists.Checklists_lastUpdatedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklists/Checklists_tasks.cs b/V2/Organization/Checklists/Checklists_tasks.cs deleted file mode 100644 index 2386a2c..0000000 --- a/V2/Organization/Checklists/Checklists_tasks.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklists -{ - /// - /// Checklist's tasks - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Checklists_tasks : 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; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks_assignedTo? AssignedTo { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks_assignedTo AssignedTo { get; set; } -#endif - /// Indicates if the checklist is completed - public bool? Completed { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks_completedBy? CompletedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks_completedBy CompletedBy { get; set; } -#endif - /// Date of completion - public double? CompletedOn { get; set; } - /// Task description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks_description? Description { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks_description Description { get; set; } -#endif - /// Due date - public double? DueDate { get; set; } - /// Identifier - public int? Id { get; set; } - /// Task name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Position of the task - public int? Position { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Checklists_tasks() - { - 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::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignedTo", n => { AssignedTo = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks_assignedTo.CreateFromDiscriminatorValue); } }, - { "completed", n => { Completed = n.GetBoolValue(); } }, - { "completedBy", n => { CompletedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks_completedBy.CreateFromDiscriminatorValue); } }, - { "completedOn", n => { CompletedOn = n.GetDoubleValue(); } }, - { "description", n => { Description = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks_description.CreateFromDiscriminatorValue); } }, - { "dueDate", n => { DueDate = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "position", n => { Position = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assignedTo", AssignedTo); - writer.WriteBoolValue("completed", Completed); - writer.WriteObjectValue("completedBy", CompletedBy); - writer.WriteDoubleValue("completedOn", CompletedOn); - writer.WriteObjectValue("description", Description); - writer.WriteDoubleValue("dueDate", DueDate); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("position", Position); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklists/Checklists_tasks_assignedTo.cs b/V2/Organization/Checklists/Checklists_tasks_assignedTo.cs deleted file mode 100644 index e1b20aa..0000000 --- a/V2/Organization/Checklists/Checklists_tasks_assignedTo.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklists -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Checklists_tasks_assignedTo : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Checklists_tasks_assignedTo() - { - 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::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks_assignedTo CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks_assignedTo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklists/Checklists_tasks_completedBy.cs b/V2/Organization/Checklists/Checklists_tasks_completedBy.cs deleted file mode 100644 index d55cba3..0000000 --- a/V2/Organization/Checklists/Checklists_tasks_completedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklists -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Checklists_tasks_completedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Checklists_tasks_completedBy() - { - 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::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks_completedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks_completedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklists/Checklists_tasks_description.cs b/V2/Organization/Checklists/Checklists_tasks_description.cs deleted file mode 100644 index 3a4d722..0000000 --- a/V2/Organization/Checklists/Checklists_tasks_description.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklists -{ - /// - /// Task description - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Checklists_tasks_description : 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; } - /// The html property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// The text property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Checklists_tasks_description() - { - 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::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks_description CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklists.Checklists_tasks_description(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklists/Delete/DeleteRequestBuilder.cs b/V2/Organization/Checklists/Delete/DeleteRequestBuilder.cs deleted file mode 100644 index 9be18f8..0000000 --- a/V2/Organization/Checklists/Delete/DeleteRequestBuilder.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Checklists.Delete -{ - /// - /// Builds and executes requests for operations under \v2\organization\checklists\delete - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeleteRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/checklists/delete", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/checklists/delete", rawUrl) - { - } - /// - /// Deletes organization checklists by id - /// - /// The request body - /// 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 PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Deletes organization checklists by id - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromScalarCollection(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Checklists.Delete.DeleteRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Checklists.Delete.DeleteRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeleteRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklists/Promote/PromoteRequestBuilder.cs b/V2/Organization/Checklists/Promote/PromoteRequestBuilder.cs deleted file mode 100644 index 592b983..0000000 --- a/V2/Organization/Checklists/Promote/PromoteRequestBuilder.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Checklists.Promote -{ - /// - /// Builds and executes requests for operations under \v2\organization\checklists\promote - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class PromoteRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public PromoteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/checklists/promote", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public PromoteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/checklists/promote", rawUrl) - { - } - /// - /// Promote organization checklists by id - /// - /// The request body - /// 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 PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Promote organization checklists by id - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromScalarCollection(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Checklists.Promote.PromoteRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Checklists.Promote.PromoteRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class PromoteRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklists/PromoteWithName/PromoteWithName.cs b/V2/Organization/Checklists/PromoteWithName/PromoteWithName.cs deleted file mode 100644 index 711f861..0000000 --- a/V2/Organization/Checklists/PromoteWithName/PromoteWithName.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Checklists.PromoteWithName -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class PromoteWithName : 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; } - /// Identifier - public int? Id { get; set; } - /// Checklist name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public PromoteWithName() - { - 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::NinjaOne.Client.V2.Organization.Checklists.PromoteWithName.PromoteWithName CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Checklists.PromoteWithName.PromoteWithName(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Checklists/PromoteWithName/PromoteWithNameRequestBuilder.cs b/V2/Organization/Checklists/PromoteWithName/PromoteWithNameRequestBuilder.cs deleted file mode 100644 index 38f04ac..0000000 --- a/V2/Organization/Checklists/PromoteWithName/PromoteWithNameRequestBuilder.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Checklists.PromoteWithName -{ - /// - /// Builds and executes requests for operations under \v2\organization\checklists\promote-with-name - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class PromoteWithNameRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public PromoteWithNameRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/checklists/promote-with-name", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public PromoteWithNameRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/checklists/promote-with-name", rawUrl) - { - } - /// - /// Promote organization checklists by id - /// - /// The request body - /// 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 PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Promote organization checklists by id - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Checklists.PromoteWithName.PromoteWithNameRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Checklists.PromoteWithName.PromoteWithNameRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class PromoteWithNameRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Document/DocumentRequestBuilder.cs b/V2/Organization/Document/DocumentRequestBuilder.cs deleted file mode 100644 index 8c656b4..0000000 --- a/V2/Organization/Document/DocumentRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Organization.Document.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Organization.Document -{ - /// - /// Builds and executes requests for operations under \v2\organization\document - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.organization.document.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Organization.Document.Item.WithClientDocumentItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("clientDocumentId", position); - return new global::NinjaOne.Client.V2.Organization.Document.Item.WithClientDocumentItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.organization.document.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Organization.Document.Item.WithClientDocumentItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("clientDocumentId", position); - return new global::NinjaOne.Client.V2.Organization.Document.Item.WithClientDocumentItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DocumentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/document", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DocumentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/document", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Document/Item/Archive/ArchivePostResponse.cs b/V2/Organization/Document/Item/Archive/ArchivePostResponse.cs deleted file mode 100644 index 3f38ec2..0000000 --- a/V2/Organization/Document/Item/Archive/ArchivePostResponse.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Document.Item.Archive -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ArchivePostResponse : 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; } - /// Document Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentDescription { get; set; } -#nullable restore -#else - public string DocumentDescription { get; set; } -#endif - /// Document Identifier - public int? DocumentId { get; set; } - /// Document Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentName { get; set; } -#nullable restore -#else - public string DocumentName { get; set; } -#endif - /// Document Template Identifier - public int? DocumentTemplateId { get; set; } - /// Document Template Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentTemplateName { get; set; } -#nullable restore -#else - public string DocumentTemplateName { get; set; } -#endif - /// Document Last Updated - public double? DocumentUpdateTime { get; set; } - /// Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// Organization Identifier - public int? OrganizationId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ArchivePostResponse() - { - 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::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchivePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchivePostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "documentDescription", n => { DocumentDescription = n.GetStringValue(); } }, - { "documentId", n => { DocumentId = n.GetIntValue(); } }, - { "documentName", n => { DocumentName = n.GetStringValue(); } }, - { "documentTemplateId", n => { DocumentTemplateId = n.GetIntValue(); } }, - { "documentTemplateName", n => { DocumentTemplateName = n.GetStringValue(); } }, - { "documentUpdateTime", n => { DocumentUpdateTime = n.GetDoubleValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchivePostResponse_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("documentDescription", DocumentDescription); - writer.WriteIntValue("documentId", DocumentId); - writer.WriteStringValue("documentName", DocumentName); - writer.WriteIntValue("documentTemplateId", DocumentTemplateId); - writer.WriteStringValue("documentTemplateName", DocumentTemplateName); - writer.WriteDoubleValue("documentUpdateTime", DocumentUpdateTime); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Document/Item/Archive/ArchivePostResponse_fields.cs b/V2/Organization/Document/Item/Archive/ArchivePostResponse_fields.cs deleted file mode 100644 index cf0ee0d..0000000 --- a/V2/Organization/Document/Item/Archive/ArchivePostResponse_fields.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Document.Item.Archive -{ - /// - /// Updated Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchivePostResponse_fields : 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; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchivePostResponse_fields_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchivePostResponse_fields_value Value { get; set; } -#endif - /// Value Last Updated - public double? ValueUpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ArchivePostResponse_fields() - { - 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::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchivePostResponse_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchivePostResponse_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "name", n => { Name = n.GetStringValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchivePostResponse_fields_value.CreateFromDiscriminatorValue); } }, - { "valueUpdateTime", n => { ValueUpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("name", Name); - writer.WriteObjectValue("value", Value); - writer.WriteDoubleValue("valueUpdateTime", ValueUpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Document/Item/Archive/ArchivePostResponse_fields_value.cs b/V2/Organization/Document/Item/Archive/ArchivePostResponse_fields_value.cs deleted file mode 100644 index 0ccb9a2..0000000 --- a/V2/Organization/Document/Item/Archive/ArchivePostResponse_fields_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Document.Item.Archive -{ - /// - /// Value - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchivePostResponse_fields_value : 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. - /// - public ArchivePostResponse_fields_value() - { - 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::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchivePostResponse_fields_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchivePostResponse_fields_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Document/Item/Archive/ArchiveRequestBuilder.cs b/V2/Organization/Document/Item/Archive/ArchiveRequestBuilder.cs deleted file mode 100644 index 6fcd1de..0000000 --- a/V2/Organization/Document/Item/Archive/ArchiveRequestBuilder.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Document.Item.Archive -{ - /// - /// Builds and executes requests for operations under \v2\organization\document\{clientDocumentId}\archive - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchiveRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ArchiveRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/document/{clientDocumentId}/archive", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ArchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/document/{clientDocumentId}/archive", rawUrl) - { - } - /// - /// Archives an organization document by id - /// - /// 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 PostAsArchivePostResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsArchivePostResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchivePostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Archives an organization document by id - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsArchivePostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchiveResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Archives an organization document by id - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchiveRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchiveRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchiveRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Document/Item/Archive/ArchiveResponse.cs b/V2/Organization/Document/Item/Archive/ArchiveResponse.cs deleted file mode 100644 index 20b937e..0000000 --- a/V2/Organization/Document/Item/Archive/ArchiveResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Document.Item.Archive -{ - [Obsolete("This class is obsolete. Use ArchivePostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ArchiveResponse : global::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchivePostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchiveResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchiveResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Document/Item/Restore/RestorePostResponse.cs b/V2/Organization/Document/Item/Restore/RestorePostResponse.cs deleted file mode 100644 index 3966b82..0000000 --- a/V2/Organization/Document/Item/Restore/RestorePostResponse.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Document.Item.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestorePostResponse : 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; } - /// Document Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentDescription { get; set; } -#nullable restore -#else - public string DocumentDescription { get; set; } -#endif - /// Document Identifier - public int? DocumentId { get; set; } - /// Document Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentName { get; set; } -#nullable restore -#else - public string DocumentName { get; set; } -#endif - /// Document Template Identifier - public int? DocumentTemplateId { get; set; } - /// Document Template Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentTemplateName { get; set; } -#nullable restore -#else - public string DocumentTemplateName { get; set; } -#endif - /// Document Last Updated - public double? DocumentUpdateTime { get; set; } - /// Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// Organization Identifier - public int? OrganizationId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse() - { - 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::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestorePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestorePostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "documentDescription", n => { DocumentDescription = n.GetStringValue(); } }, - { "documentId", n => { DocumentId = n.GetIntValue(); } }, - { "documentName", n => { DocumentName = n.GetStringValue(); } }, - { "documentTemplateId", n => { DocumentTemplateId = n.GetIntValue(); } }, - { "documentTemplateName", n => { DocumentTemplateName = n.GetStringValue(); } }, - { "documentUpdateTime", n => { DocumentUpdateTime = n.GetDoubleValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestorePostResponse_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("documentDescription", DocumentDescription); - writer.WriteIntValue("documentId", DocumentId); - writer.WriteStringValue("documentName", DocumentName); - writer.WriteIntValue("documentTemplateId", DocumentTemplateId); - writer.WriteStringValue("documentTemplateName", DocumentTemplateName); - writer.WriteDoubleValue("documentUpdateTime", DocumentUpdateTime); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Document/Item/Restore/RestorePostResponse_fields.cs b/V2/Organization/Document/Item/Restore/RestorePostResponse_fields.cs deleted file mode 100644 index 4c38457..0000000 --- a/V2/Organization/Document/Item/Restore/RestorePostResponse_fields.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Document.Item.Restore -{ - /// - /// Updated Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestorePostResponse_fields : 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; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestorePostResponse_fields_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestorePostResponse_fields_value Value { get; set; } -#endif - /// Value Last Updated - public double? ValueUpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostResponse_fields() - { - 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::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestorePostResponse_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestorePostResponse_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "name", n => { Name = n.GetStringValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestorePostResponse_fields_value.CreateFromDiscriminatorValue); } }, - { "valueUpdateTime", n => { ValueUpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("name", Name); - writer.WriteObjectValue("value", Value); - writer.WriteDoubleValue("valueUpdateTime", ValueUpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Document/Item/Restore/RestorePostResponse_fields_value.cs b/V2/Organization/Document/Item/Restore/RestorePostResponse_fields_value.cs deleted file mode 100644 index 23f81c8..0000000 --- a/V2/Organization/Document/Item/Restore/RestorePostResponse_fields_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Document.Item.Restore -{ - /// - /// Value - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestorePostResponse_fields_value : 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. - /// - public RestorePostResponse_fields_value() - { - 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::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestorePostResponse_fields_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestorePostResponse_fields_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Document/Item/Restore/RestoreRequestBuilder.cs b/V2/Organization/Document/Item/Restore/RestoreRequestBuilder.cs deleted file mode 100644 index 13818f4..0000000 --- a/V2/Organization/Document/Item/Restore/RestoreRequestBuilder.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Document.Item.Restore -{ - /// - /// Builds and executes requests for operations under \v2\organization\document\{clientDocumentId}\restore - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestoreRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/document/{clientDocumentId}/restore", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/document/{clientDocumentId}/restore", rawUrl) - { - } - /// - /// Restores an organization document by id - /// - /// 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 PostAsRestorePostResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsRestorePostResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestorePostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Restores an organization document by id - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsRestorePostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestoreResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Restores an organization document by id - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestoreRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestoreRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestoreRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Document/Item/Restore/RestoreResponse.cs b/V2/Organization/Document/Item/Restore/RestoreResponse.cs deleted file mode 100644 index c4677f4..0000000 --- a/V2/Organization/Document/Item/Restore/RestoreResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Document.Item.Restore -{ - [Obsolete("This class is obsolete. Use RestorePostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestoreResponse : global::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestorePostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestoreResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestoreResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Document/Item/SignedUrls/SignedUrlsRequestBuilder.cs b/V2/Organization/Document/Item/SignedUrls/SignedUrlsRequestBuilder.cs deleted file mode 100644 index 919e19a..0000000 --- a/V2/Organization/Document/Item/SignedUrls/SignedUrlsRequestBuilder.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Document.Item.SignedUrls -{ - /// - /// Builds and executes requests for operations under \v2\organization\document\{clientDocumentId}\signed-urls - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SignedUrlsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SignedUrlsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/document/{clientDocumentId}/signed-urls", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SignedUrlsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/document/{clientDocumentId}/signed-urls", rawUrl) - { - } - /// - /// Get organization document signed urls - /// - /// 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) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get organization document signed urls - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Document.Item.SignedUrls.SignedUrlsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Document.Item.SignedUrls.SignedUrlsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SignedUrlsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Document/Item/WithClientDocumentItemRequestBuilder.cs b/V2/Organization/Document/Item/WithClientDocumentItemRequestBuilder.cs deleted file mode 100644 index 26913c3..0000000 --- a/V2/Organization/Document/Item/WithClientDocumentItemRequestBuilder.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Organization.Document.Item.Archive; -using NinjaOne.Client.V2.Organization.Document.Item.Restore; -using NinjaOne.Client.V2.Organization.Document.Item.SignedUrls; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Document.Item -{ - /// - /// Builds and executes requests for operations under \v2\organization\document\{clientDocumentId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithClientDocumentItemRequestBuilder : BaseRequestBuilder - { - /// The archive property - public global::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchiveRequestBuilder Archive - { - get => new global::NinjaOne.Client.V2.Organization.Document.Item.Archive.ArchiveRequestBuilder(PathParameters, RequestAdapter); - } - /// The restore property - public global::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestoreRequestBuilder Restore - { - get => new global::NinjaOne.Client.V2.Organization.Document.Item.Restore.RestoreRequestBuilder(PathParameters, RequestAdapter); - } - /// The signedUrls property - public global::NinjaOne.Client.V2.Organization.Document.Item.SignedUrls.SignedUrlsRequestBuilder SignedUrls - { - get => new global::NinjaOne.Client.V2.Organization.Document.Item.SignedUrls.SignedUrlsRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithClientDocumentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/document/{clientDocumentId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithClientDocumentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/document/{clientDocumentId}", rawUrl) - { - } - /// - /// Deletes an archived organization document by id - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Deletes an archived organization document by id - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Document.Item.WithClientDocumentItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Document.Item.WithClientDocumentItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithClientDocumentItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Documents/Archive/Archive.cs b/V2/Organization/Documents/Archive/Archive.cs deleted file mode 100644 index a9dd282..0000000 --- a/V2/Organization/Documents/Archive/Archive.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Documents.Archive -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Archive : 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; } - /// Document Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentDescription { get; set; } -#nullable restore -#else - public string DocumentDescription { get; set; } -#endif - /// Document Identifier - public int? DocumentId { get; set; } - /// Document Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentName { get; set; } -#nullable restore -#else - public string DocumentName { get; set; } -#endif - /// Document Template Identifier - public int? DocumentTemplateId { get; set; } - /// Document Template Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentTemplateName { get; set; } -#nullable restore -#else - public string DocumentTemplateName { get; set; } -#endif - /// Document Last Updated - public double? DocumentUpdateTime { get; set; } - /// Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// Organization Identifier - public int? OrganizationId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Archive() - { - 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::NinjaOne.Client.V2.Organization.Documents.Archive.Archive CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Documents.Archive.Archive(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "documentDescription", n => { DocumentDescription = n.GetStringValue(); } }, - { "documentId", n => { DocumentId = n.GetIntValue(); } }, - { "documentName", n => { DocumentName = n.GetStringValue(); } }, - { "documentTemplateId", n => { DocumentTemplateId = n.GetIntValue(); } }, - { "documentTemplateName", n => { DocumentTemplateName = n.GetStringValue(); } }, - { "documentUpdateTime", n => { DocumentUpdateTime = n.GetDoubleValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organization.Documents.Archive.Archive_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("documentDescription", DocumentDescription); - writer.WriteIntValue("documentId", DocumentId); - writer.WriteStringValue("documentName", DocumentName); - writer.WriteIntValue("documentTemplateId", DocumentTemplateId); - writer.WriteStringValue("documentTemplateName", DocumentTemplateName); - writer.WriteDoubleValue("documentUpdateTime", DocumentUpdateTime); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Documents/Archive/ArchiveRequestBuilder.cs b/V2/Organization/Documents/Archive/ArchiveRequestBuilder.cs deleted file mode 100644 index c2beaff..0000000 --- a/V2/Organization/Documents/Archive/ArchiveRequestBuilder.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Documents.Archive -{ - /// - /// Builds and executes requests for operations under \v2\organization\documents\archive - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchiveRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ArchiveRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/documents/archive", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ArchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/documents/archive", rawUrl) - { - } - /// - /// Archives multiple organization documents by id - /// - /// A List<global::NinjaOne.Client.V2.Organization.Documents.Archive.Archive> - /// The request body - /// 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?> PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Documents.Archive.Archive.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Archives multiple organization documents by id - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromScalarCollection(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Documents.Archive.ArchiveRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Documents.Archive.ArchiveRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ArchiveRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Documents/Archive/Archive_fields.cs b/V2/Organization/Documents/Archive/Archive_fields.cs deleted file mode 100644 index eb1fc90..0000000 --- a/V2/Organization/Documents/Archive/Archive_fields.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Documents.Archive -{ - /// - /// Updated Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Archive_fields : 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; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Documents.Archive.Archive_fields_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Documents.Archive.Archive_fields_value Value { get; set; } -#endif - /// Value Last Updated - public double? ValueUpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Archive_fields() - { - 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::NinjaOne.Client.V2.Organization.Documents.Archive.Archive_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Documents.Archive.Archive_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "name", n => { Name = n.GetStringValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Documents.Archive.Archive_fields_value.CreateFromDiscriminatorValue); } }, - { "valueUpdateTime", n => { ValueUpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("name", Name); - writer.WriteObjectValue("value", Value); - writer.WriteDoubleValue("valueUpdateTime", ValueUpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Documents/Archive/Archive_fields_value.cs b/V2/Organization/Documents/Archive/Archive_fields_value.cs deleted file mode 100644 index 6f96d24..0000000 --- a/V2/Organization/Documents/Archive/Archive_fields_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Documents.Archive -{ - /// - /// Value - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Archive_fields_value : 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. - /// - public Archive_fields_value() - { - 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::NinjaOne.Client.V2.Organization.Documents.Archive.Archive_fields_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Documents.Archive.Archive_fields_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Documents/Documents.cs b/V2/Organization/Documents/Documents.cs deleted file mode 100644 index 8371e2e..0000000 --- a/V2/Organization/Documents/Documents.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Documents -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Documents : 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; } - /// Document Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentDescription { get; set; } -#nullable restore -#else - public string DocumentDescription { get; set; } -#endif - /// Document Identifier - public int? DocumentId { get; set; } - /// Document Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentName { get; set; } -#nullable restore -#else - public string DocumentName { get; set; } -#endif - /// Document Template Identifier - public int? DocumentTemplateId { get; set; } - /// Document Template Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentTemplateName { get; set; } -#nullable restore -#else - public string DocumentTemplateName { get; set; } -#endif - /// Document Last Updated - public double? DocumentUpdateTime { get; set; } - /// Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// Organization Identifier - public int? OrganizationId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Documents() - { - 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::NinjaOne.Client.V2.Organization.Documents.Documents CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Documents.Documents(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "documentDescription", n => { DocumentDescription = n.GetStringValue(); } }, - { "documentId", n => { DocumentId = n.GetIntValue(); } }, - { "documentName", n => { DocumentName = n.GetStringValue(); } }, - { "documentTemplateId", n => { DocumentTemplateId = n.GetIntValue(); } }, - { "documentTemplateName", n => { DocumentTemplateName = n.GetStringValue(); } }, - { "documentUpdateTime", n => { DocumentUpdateTime = n.GetDoubleValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organization.Documents.Documents_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("documentDescription", DocumentDescription); - writer.WriteIntValue("documentId", DocumentId); - writer.WriteStringValue("documentName", DocumentName); - writer.WriteIntValue("documentTemplateId", DocumentTemplateId); - writer.WriteStringValue("documentTemplateName", DocumentTemplateName); - writer.WriteDoubleValue("documentUpdateTime", DocumentUpdateTime); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Documents/DocumentsRequestBuilder.cs b/V2/Organization/Documents/DocumentsRequestBuilder.cs deleted file mode 100644 index 0f4a0b1..0000000 --- a/V2/Organization/Documents/DocumentsRequestBuilder.cs +++ /dev/null @@ -1,261 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Organization.Documents.Archive; -using NinjaOne.Client.V2.Organization.Documents.Restore; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Documents -{ - /// - /// Builds and executes requests for operations under \v2\organization\documents - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentsRequestBuilder : BaseRequestBuilder - { - /// The archive property - public global::NinjaOne.Client.V2.Organization.Documents.Archive.ArchiveRequestBuilder Archive - { - get => new global::NinjaOne.Client.V2.Organization.Documents.Archive.ArchiveRequestBuilder(PathParameters, RequestAdapter); - } - /// The restore property - public global::NinjaOne.Client.V2.Organization.Documents.Restore.RestoreRequestBuilder Restore - { - get => new global::NinjaOne.Client.V2.Organization.Documents.Restore.RestoreRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DocumentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/documents{?documentName*,groupBy*,organizationIds*,templateIds*,templateName*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DocumentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/documents{?documentName*,groupBy*,organizationIds*,templateIds*,templateName*}", rawUrl) - { - } - /// - /// List all organization documents with field values - /// - /// A List<global::NinjaOne.Client.V2.Organization.Documents.Documents> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Documents.Documents.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Updates organization documents and returns the documents updated - /// - /// A List<global::NinjaOne.Client.V2.Organization.Documents.Documents> - /// The request body - /// 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?> PatchAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PatchAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Documents.Documents.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Creates organization documents and returns the documents created - /// - /// A List<global::NinjaOne.Client.V2.Organization.Documents.Documents> - /// The request body - /// 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?> PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Documents.Documents.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// List all organization documents with field values - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Updates organization documents and returns the documents updated - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Creates organization documents and returns the documents created - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Documents.DocumentsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Documents.DocumentsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// List all organization documents with field values - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentsRequestBuilderGetQueryParameters - { -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("documentName")] - public string? DocumentName { get; set; } -#nullable restore -#else - [QueryParameter("documentName")] - public string DocumentName { get; set; } -#endif - [Obsolete("This property is deprecated, use GroupByAsGetGroupByQueryParameterType instead")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("groupBy")] - public string? GroupBy { get; set; } -#nullable restore -#else - [QueryParameter("groupBy")] - public string GroupBy { get; set; } -#endif - [QueryParameter("groupBy")] - public global::NinjaOne.Client.V2.Organization.Documents.GetGroupByQueryParameterType? GroupByAsGetGroupByQueryParameterType { get; set; } -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("organizationIds")] - public string? OrganizationIds { get; set; } -#nullable restore -#else - [QueryParameter("organizationIds")] - public string OrganizationIds { get; set; } -#endif -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("templateIds")] - public string? TemplateIds { get; set; } -#nullable restore -#else - [QueryParameter("templateIds")] - public string TemplateIds { get; set; } -#endif -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("templateName")] - public string? TemplateName { get; set; } -#nullable restore -#else - [QueryParameter("templateName")] - public string TemplateName { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentsRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentsRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Documents/Documents_fields.cs b/V2/Organization/Documents/Documents_fields.cs deleted file mode 100644 index f0c7476..0000000 --- a/V2/Organization/Documents/Documents_fields.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Documents -{ - /// - /// Updated Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Documents_fields : 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; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Documents.Documents_fields_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Documents.Documents_fields_value Value { get; set; } -#endif - /// Value Last Updated - public double? ValueUpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Documents_fields() - { - 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::NinjaOne.Client.V2.Organization.Documents.Documents_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Documents.Documents_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "name", n => { Name = n.GetStringValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Documents.Documents_fields_value.CreateFromDiscriminatorValue); } }, - { "valueUpdateTime", n => { ValueUpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("name", Name); - writer.WriteObjectValue("value", Value); - writer.WriteDoubleValue("valueUpdateTime", ValueUpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Documents/Documents_fields_value.cs b/V2/Organization/Documents/Documents_fields_value.cs deleted file mode 100644 index ef99a0c..0000000 --- a/V2/Organization/Documents/Documents_fields_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Documents -{ - /// - /// Value - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Documents_fields_value : 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. - /// - public Documents_fields_value() - { - 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::NinjaOne.Client.V2.Organization.Documents.Documents_fields_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Documents.Documents_fields_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Documents/GetGroupByQueryParameterType.cs b/V2/Organization/Documents/GetGroupByQueryParameterType.cs deleted file mode 100644 index ed1f356..0000000 --- a/V2/Organization/Documents/GetGroupByQueryParameterType.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organization.Documents -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum GetGroupByQueryParameterType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TEMPLATE")] - #pragma warning disable CS1591 - TEMPLATE, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/Documents/Restore/Restore.cs b/V2/Organization/Documents/Restore/Restore.cs deleted file mode 100644 index ea2dc11..0000000 --- a/V2/Organization/Documents/Restore/Restore.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Documents.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Restore : 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; } - /// Document Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentDescription { get; set; } -#nullable restore -#else - public string DocumentDescription { get; set; } -#endif - /// Document Identifier - public int? DocumentId { get; set; } - /// Document Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentName { get; set; } -#nullable restore -#else - public string DocumentName { get; set; } -#endif - /// Document Template Identifier - public int? DocumentTemplateId { get; set; } - /// Document Template Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentTemplateName { get; set; } -#nullable restore -#else - public string DocumentTemplateName { get; set; } -#endif - /// Document Last Updated - public double? DocumentUpdateTime { get; set; } - /// Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// Organization Identifier - public int? OrganizationId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Restore() - { - 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::NinjaOne.Client.V2.Organization.Documents.Restore.Restore CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Documents.Restore.Restore(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "documentDescription", n => { DocumentDescription = n.GetStringValue(); } }, - { "documentId", n => { DocumentId = n.GetIntValue(); } }, - { "documentName", n => { DocumentName = n.GetStringValue(); } }, - { "documentTemplateId", n => { DocumentTemplateId = n.GetIntValue(); } }, - { "documentTemplateName", n => { DocumentTemplateName = n.GetStringValue(); } }, - { "documentUpdateTime", n => { DocumentUpdateTime = n.GetDoubleValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organization.Documents.Restore.Restore_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("documentDescription", DocumentDescription); - writer.WriteIntValue("documentId", DocumentId); - writer.WriteStringValue("documentName", DocumentName); - writer.WriteIntValue("documentTemplateId", DocumentTemplateId); - writer.WriteStringValue("documentTemplateName", DocumentTemplateName); - writer.WriteDoubleValue("documentUpdateTime", DocumentUpdateTime); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Documents/Restore/RestoreRequestBuilder.cs b/V2/Organization/Documents/Restore/RestoreRequestBuilder.cs deleted file mode 100644 index 5d214ba..0000000 --- a/V2/Organization/Documents/Restore/RestoreRequestBuilder.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Documents.Restore -{ - /// - /// Builds and executes requests for operations under \v2\organization\documents\restore - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestoreRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/documents/restore", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/documents/restore", rawUrl) - { - } - /// - /// Restores multiple organization documents by id - /// - /// A List<global::NinjaOne.Client.V2.Organization.Documents.Restore.Restore> - /// The request body - /// 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?> PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Documents.Restore.Restore.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Restores multiple organization documents by id - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromScalarCollection(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Documents.Restore.RestoreRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Documents.Restore.RestoreRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestoreRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Documents/Restore/Restore_fields.cs b/V2/Organization/Documents/Restore/Restore_fields.cs deleted file mode 100644 index 5efaeaa..0000000 --- a/V2/Organization/Documents/Restore/Restore_fields.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Documents.Restore -{ - /// - /// Updated Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Restore_fields : 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; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Documents.Restore.Restore_fields_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Documents.Restore.Restore_fields_value Value { get; set; } -#endif - /// Value Last Updated - public double? ValueUpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Restore_fields() - { - 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::NinjaOne.Client.V2.Organization.Documents.Restore.Restore_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Documents.Restore.Restore_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "name", n => { Name = n.GetStringValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Documents.Restore.Restore_fields_value.CreateFromDiscriminatorValue); } }, - { "valueUpdateTime", n => { ValueUpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("name", Name); - writer.WriteObjectValue("value", Value); - writer.WriteDoubleValue("valueUpdateTime", ValueUpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Documents/Restore/Restore_fields_value.cs b/V2/Organization/Documents/Restore/Restore_fields_value.cs deleted file mode 100644 index 45badf3..0000000 --- a/V2/Organization/Documents/Restore/Restore_fields_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Documents.Restore -{ - /// - /// Value - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Restore_fields_value : 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. - /// - public Restore_fields_value() - { - 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::NinjaOne.Client.V2.Organization.Documents.Restore.Restore_fields_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Documents.Restore.Restore_fields_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/GenerateInstaller/GenerateInstaller4XXError.cs b/V2/Organization/GenerateInstaller/GenerateInstaller4XXError.cs deleted file mode 100644 index 4eb1859..0000000 --- a/V2/Organization/GenerateInstaller/GenerateInstaller4XXError.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.GenerateInstaller -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class GenerateInstaller4XXError : 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 primary error message. - public override string Message { get => base.Message; } - /// URL -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Url { get; set; } -#nullable restore -#else - public string Url { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public GenerateInstaller4XXError() - { - 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::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstaller4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstaller4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "url", n => { Url = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("url", Url); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/GenerateInstaller/GenerateInstaller5XXError.cs b/V2/Organization/GenerateInstaller/GenerateInstaller5XXError.cs deleted file mode 100644 index 327f351..0000000 --- a/V2/Organization/GenerateInstaller/GenerateInstaller5XXError.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.GenerateInstaller -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class GenerateInstaller5XXError : 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 primary error message. - public override string Message { get => base.Message; } - /// URL -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Url { get; set; } -#nullable restore -#else - public string Url { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public GenerateInstaller5XXError() - { - 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::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstaller5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstaller5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "url", n => { Url = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("url", Url); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/GenerateInstaller/GenerateInstallerPostRequestBody.cs b/V2/Organization/GenerateInstaller/GenerateInstallerPostRequestBody.cs deleted file mode 100644 index 34ccdf8..0000000 --- a/V2/Organization/GenerateInstaller/GenerateInstallerPostRequestBody.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.GenerateInstaller -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class GenerateInstallerPostRequestBody : 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; } - /// content -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstallerPostRequestBody_content? Content { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstallerPostRequestBody_content Content { get; set; } -#endif - /// Agent installer type - public global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstallerPostRequestBody_installerType? InstallerType { get; set; } - /// Location identifier - public int? LocationId { get; set; } - /// Organization identifier - public int? OrganizationId { get; set; } - /// Usage limit - public int? UsageLimit { get; private set; } - /// - /// Instantiates a new and sets the default values. - /// - public GenerateInstallerPostRequestBody() - { - 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::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstallerPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstallerPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "content", n => { Content = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstallerPostRequestBody_content.CreateFromDiscriminatorValue); } }, - { "installerType", n => { InstallerType = n.GetEnumValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "usageLimit", n => { UsageLimit = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("content", Content); - writer.WriteEnumValue("installerType", InstallerType); - writer.WriteIntValue("locationId", LocationId); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/GenerateInstaller/GenerateInstallerPostRequestBody_content.cs b/V2/Organization/GenerateInstaller/GenerateInstallerPostRequestBody_content.cs deleted file mode 100644 index 16d3d29..0000000 --- a/V2/Organization/GenerateInstaller/GenerateInstallerPostRequestBody_content.cs +++ /dev/null @@ -1,67 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.GenerateInstaller -{ - /// - /// content - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class GenerateInstallerPostRequestBody_content : 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; } - /// Identifier for the nodeRole target of this installer. Acceptable values include integers, 'auto', or an empty string. If the value is omitted, or an empty string, it defaults to 'auto'. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NodeRoleId { get; set; } -#nullable restore -#else - public string NodeRoleId { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public GenerateInstallerPostRequestBody_content() - { - AdditionalData = new Dictionary(); - NodeRoleId = "auto"; - } - /// - /// 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::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstallerPostRequestBody_content CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstallerPostRequestBody_content(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "nodeRoleId", n => { NodeRoleId = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("nodeRoleId", NodeRoleId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/GenerateInstaller/GenerateInstallerPostRequestBody_installerType.cs b/V2/Organization/GenerateInstaller/GenerateInstallerPostRequestBody_installerType.cs deleted file mode 100644 index 8bc3794..0000000 --- a/V2/Organization/GenerateInstaller/GenerateInstallerPostRequestBody_installerType.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organization.GenerateInstaller -{ - /// Agent installer type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum GenerateInstallerPostRequestBody_installerType - { - [EnumMember(Value = "WINDOWS_MSI")] - #pragma warning disable CS1591 - WINDOWS_MSI, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_DMG")] - #pragma warning disable CS1591 - MAC_DMG, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_PKG")] - #pragma warning disable CS1591 - MAC_PKG, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_DEB")] - #pragma warning disable CS1591 - LINUX_DEB, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_RPM")] - #pragma warning disable CS1591 - LINUX_RPM, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_ARM64_DEB")] - #pragma warning disable CS1591 - LINUX_ARM64_DEB, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_ARMV7A_DEB")] - #pragma warning disable CS1591 - LINUX_ARMV7A_DEB, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_ARM64_RPM")] - #pragma warning disable CS1591 - LINUX_ARM64_RPM, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_ARMV7A_RPM")] - #pragma warning disable CS1591 - LINUX_ARMV7A_RPM, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/GenerateInstaller/GenerateInstallerRequestBuilder.cs b/V2/Organization/GenerateInstaller/GenerateInstallerRequestBuilder.cs deleted file mode 100644 index c72d7e3..0000000 --- a/V2/Organization/GenerateInstaller/GenerateInstallerRequestBuilder.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.GenerateInstaller -{ - /// - /// Builds and executes requests for operations under \v2\organization\generate-installer - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class GenerateInstallerRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public GenerateInstallerRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/generate-installer", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public GenerateInstallerRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/generate-installer", rawUrl) - { - } - /// - /// Generates and returns URL for installer with specified settings - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstallerPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstallerPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstaller4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstaller5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Generates and returns URL for installer with specified settings - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstallerPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstallerPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstallerRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstallerRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class GenerateInstallerRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates.cs b/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates.cs deleted file mode 100644 index 88532b8..0000000 --- a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates.cs +++ /dev/null @@ -1,169 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ChecklistsFromTemplates : 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; } - /// Indicates if the checklist is archived - public bool? Archived { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_archivedBy? ArchivedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_archivedBy ArchivedBy { get; set; } -#endif - /// Archive time - public double? ArchiveTime { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_assignedTo? AssignedTo { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_assignedTo AssignedTo { get; set; } -#endif - /// Client name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ClientName { get; set; } -#nullable restore -#else - public string ClientName { get; set; } -#endif - /// Indicates if the checklist is completed - public bool? Completed { get; set; } - /// Date of completion - public double? CompletedOn { get; set; } - /// Last updated by user - public int? CompletedTaskCount { get; set; } - /// Task description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_description? Description { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_description Description { get; set; } -#endif - /// Due date - public double? DueDate { get; set; } - /// Identifier - public int? Id { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_lastUpdatedBy? LastUpdatedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_lastUpdatedBy LastUpdatedBy { get; set; } -#endif - /// Last updated on - public double? LastUpdatedOn { get; set; } - /// Checklist name (must be unique) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// Indicates if the checklist completion is required - public bool? Required { get; set; } - /// Checklist's tasks -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tasks { get; set; } -#nullable restore -#else - public List Tasks { get; set; } -#endif - /// Checklist's total tasks count - public int? TotalTaskCount { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ChecklistsFromTemplates() - { - 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::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "archiveTime", n => { ArchiveTime = n.GetDoubleValue(); } }, - { "archived", n => { Archived = n.GetBoolValue(); } }, - { "archivedBy", n => { ArchivedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_archivedBy.CreateFromDiscriminatorValue); } }, - { "assignedTo", n => { AssignedTo = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_assignedTo.CreateFromDiscriminatorValue); } }, - { "clientName", n => { ClientName = n.GetStringValue(); } }, - { "completed", n => { Completed = n.GetBoolValue(); } }, - { "completedOn", n => { CompletedOn = n.GetDoubleValue(); } }, - { "completedTaskCount", n => { CompletedTaskCount = n.GetIntValue(); } }, - { "description", n => { Description = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_description.CreateFromDiscriminatorValue); } }, - { "dueDate", n => { DueDate = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastUpdatedBy", n => { LastUpdatedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_lastUpdatedBy.CreateFromDiscriminatorValue); } }, - { "lastUpdatedOn", n => { LastUpdatedOn = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tasks", n => { Tasks = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks.CreateFromDiscriminatorValue)?.AsList(); } }, - { "totalTaskCount", n => { TotalTaskCount = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("archived", Archived); - writer.WriteObjectValue("archivedBy", ArchivedBy); - writer.WriteDoubleValue("archiveTime", ArchiveTime); - writer.WriteObjectValue("assignedTo", AssignedTo); - writer.WriteStringValue("clientName", ClientName); - writer.WriteBoolValue("completed", Completed); - writer.WriteDoubleValue("completedOn", CompletedOn); - writer.WriteIntValue("completedTaskCount", CompletedTaskCount); - writer.WriteObjectValue("description", Description); - writer.WriteDoubleValue("dueDate", DueDate); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("lastUpdatedBy", LastUpdatedBy); - writer.WriteDoubleValue("lastUpdatedOn", LastUpdatedOn); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteBoolValue("required", Required); - writer.WriteCollectionOfObjectValues("tasks", Tasks); - writer.WriteIntValue("totalTaskCount", TotalTaskCount); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplatesRequestBuilder.cs b/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplatesRequestBuilder.cs deleted file mode 100644 index dc2d2de..0000000 --- a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplatesRequestBuilder.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\checklists-from-templates - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ChecklistsFromTemplatesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ChecklistsFromTemplatesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/checklists-from-templates", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ChecklistsFromTemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/checklists-from-templates", rawUrl) - { - } - /// - /// Creates multiple organization checklists from templates - /// - /// A List<global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates> - /// The request body - /// 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?> PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Creates multiple organization checklists from templates - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromScalarCollection(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplatesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplatesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ChecklistsFromTemplatesRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_archivedBy.cs b/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_archivedBy.cs deleted file mode 100644 index 50779cd..0000000 --- a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_archivedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ChecklistsFromTemplates_archivedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ChecklistsFromTemplates_archivedBy() - { - 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::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_archivedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_archivedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_assignedTo.cs b/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_assignedTo.cs deleted file mode 100644 index 62721ec..0000000 --- a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_assignedTo.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ChecklistsFromTemplates_assignedTo : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ChecklistsFromTemplates_assignedTo() - { - 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::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_assignedTo CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_assignedTo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_description.cs b/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_description.cs deleted file mode 100644 index bbe50e4..0000000 --- a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_description.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates -{ - /// - /// Task description - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ChecklistsFromTemplates_description : 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; } - /// The html property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// The text property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ChecklistsFromTemplates_description() - { - 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::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_description CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_description(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_lastUpdatedBy.cs b/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_lastUpdatedBy.cs deleted file mode 100644 index 6d457fc..0000000 --- a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_lastUpdatedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ChecklistsFromTemplates_lastUpdatedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ChecklistsFromTemplates_lastUpdatedBy() - { - 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::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_lastUpdatedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_lastUpdatedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_tasks.cs b/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_tasks.cs deleted file mode 100644 index 63eec11..0000000 --- a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_tasks.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates -{ - /// - /// Checklist's tasks - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ChecklistsFromTemplates_tasks : 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; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks_assignedTo? AssignedTo { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks_assignedTo AssignedTo { get; set; } -#endif - /// Indicates if the checklist is completed - public bool? Completed { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks_completedBy? CompletedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks_completedBy CompletedBy { get; set; } -#endif - /// Date of completion - public double? CompletedOn { get; set; } - /// Task description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks_description? Description { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks_description Description { get; set; } -#endif - /// Due date - public double? DueDate { get; set; } - /// Identifier - public int? Id { get; set; } - /// Task name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Position of the task - public int? Position { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ChecklistsFromTemplates_tasks() - { - 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::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignedTo", n => { AssignedTo = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks_assignedTo.CreateFromDiscriminatorValue); } }, - { "completed", n => { Completed = n.GetBoolValue(); } }, - { "completedBy", n => { CompletedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks_completedBy.CreateFromDiscriminatorValue); } }, - { "completedOn", n => { CompletedOn = n.GetDoubleValue(); } }, - { "description", n => { Description = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks_description.CreateFromDiscriminatorValue); } }, - { "dueDate", n => { DueDate = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "position", n => { Position = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assignedTo", AssignedTo); - writer.WriteBoolValue("completed", Completed); - writer.WriteObjectValue("completedBy", CompletedBy); - writer.WriteDoubleValue("completedOn", CompletedOn); - writer.WriteObjectValue("description", Description); - writer.WriteDoubleValue("dueDate", DueDate); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("position", Position); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_tasks_assignedTo.cs b/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_tasks_assignedTo.cs deleted file mode 100644 index 9e725fb..0000000 --- a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_tasks_assignedTo.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ChecklistsFromTemplates_tasks_assignedTo : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ChecklistsFromTemplates_tasks_assignedTo() - { - 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::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks_assignedTo CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks_assignedTo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_tasks_completedBy.cs b/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_tasks_completedBy.cs deleted file mode 100644 index 5391d63..0000000 --- a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_tasks_completedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ChecklistsFromTemplates_tasks_completedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ChecklistsFromTemplates_tasks_completedBy() - { - 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::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks_completedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks_completedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_tasks_description.cs b/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_tasks_description.cs deleted file mode 100644 index b4ca2de..0000000 --- a/V2/Organization/Item/ChecklistsFromTemplates/ChecklistsFromTemplates_tasks_description.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates -{ - /// - /// Task description - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ChecklistsFromTemplates_tasks_description : 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; } - /// The html property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// The text property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ChecklistsFromTemplates_tasks_description() - { - 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::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks_description CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplates_tasks_description(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/CustomFields/CustomFields4XXError.cs b/V2/Organization/Item/CustomFields/CustomFields4XXError.cs deleted file mode 100644 index dd454b4..0000000 --- a/V2/Organization/Item/CustomFields/CustomFields4XXError.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFields4XXError : 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 primary error message. - public override string Message { get => base.Message; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields4XXError() - { - 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::NinjaOne.Client.V2.Organization.Item.CustomFields.CustomFields4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.CustomFields.CustomFields4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/CustomFields/CustomFields5XXError.cs b/V2/Organization/Item/CustomFields/CustomFields5XXError.cs deleted file mode 100644 index 743425b..0000000 --- a/V2/Organization/Item/CustomFields/CustomFields5XXError.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFields5XXError : 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 primary error message. - public override string Message { get => base.Message; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields5XXError() - { - 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::NinjaOne.Client.V2.Organization.Item.CustomFields.CustomFields5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.CustomFields.CustomFields5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/CustomFields/CustomFieldsPatchRequestBody.cs b/V2/Organization/Item/CustomFields/CustomFieldsPatchRequestBody.cs deleted file mode 100644 index 2dfa63c..0000000 --- a/V2/Organization/Item/CustomFields/CustomFieldsPatchRequestBody.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFieldsPatchRequestBody : 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. - /// - public CustomFieldsPatchRequestBody() - { - 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::NinjaOne.Client.V2.Organization.Item.CustomFields.CustomFieldsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.CustomFields.CustomFieldsPatchRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/CustomFields/CustomFieldsRequestBuilder.cs b/V2/Organization/Item/CustomFields/CustomFieldsRequestBuilder.cs deleted file mode 100644 index 786c4fe..0000000 --- a/V2/Organization/Item/CustomFields/CustomFieldsRequestBuilder.cs +++ /dev/null @@ -1,147 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Item.CustomFields -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\custom-fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public CustomFieldsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/custom-fields", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public CustomFieldsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/custom-fields", rawUrl) - { - } - /// - /// Returns list of organization custom fields - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Organization.Item.CustomFields.CustomFields4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Organization.Item.CustomFields.CustomFields5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Update organization custom field values - /// - /// A - /// The request body - /// 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 PatchAsync(global::NinjaOne.Client.V2.Organization.Item.CustomFields.CustomFieldsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::NinjaOne.Client.V2.Organization.Item.CustomFields.CustomFieldsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of organization custom fields - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Update organization custom field values - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Organization.Item.CustomFields.CustomFieldsPatchRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Organization.Item.CustomFields.CustomFieldsPatchRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Item.CustomFields.CustomFieldsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Item.CustomFields.CustomFieldsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices.cs b/V2/Organization/Item/Devices/Devices.cs deleted file mode 100644 index d8e2745..0000000 --- a/V2/Organization/Item/Devices/Devices.cs +++ /dev/null @@ -1,209 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Device information. - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices : ApiException, 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; } - /// Approval Status - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_approvalStatus? ApprovalStatus { get; set; } - /// Node (Device) Owner UUID - public Guid? AssignedOwnerUid { get; set; } - /// Created - public double? Created { get; set; } - /// Display Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// DNS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DnsName { get; set; } -#nullable restore -#else - public string DnsName { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_fields Fields { get; set; } -#endif - /// Node (Device) identifier - public int? Id { get; set; } - /// Last Contact - public double? LastContact { get; set; } - /// Last data submission timestamp - public double? LastUpdate { get; set; } - /// Location identifier - public int? LocationId { get; set; } - /// Maintenance mode status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_maintenance? Maintenance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_maintenance Maintenance { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// NETBIOS Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NetbiosName { get; set; } -#nullable restore -#else - public string NetbiosName { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_nodeClass? NodeClass { get; set; } - /// Node Role identifier - public int? NodeRoleId { get; set; } - /// Is Offline? - public bool? Offline { get; set; } - /// Organization identifier - public int? OrganizationId { get; set; } - /// Parent Node identifier - public int? ParentDeviceId { get; set; } - /// Assigned policy ID (overrides organization and location policy mapping) - public int? PolicyId { get; set; } - /// Expanded entity references -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references? References { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references References { get; set; } -#endif - /// Node Role policy ID based on organization and location Policy Mapping - public int? RolePolicyId { get; set; } - /// System Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SystemName { get; set; } -#nullable restore -#else - public string SystemName { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Node (Device) UUID - public Guid? Uid { get; set; } - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Devices() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "approvalStatus", n => { ApprovalStatus = n.GetEnumValue(); } }, - { "assignedOwnerUid", n => { AssignedOwnerUid = n.GetGuidValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "dnsName", n => { DnsName = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastContact", n => { LastContact = n.GetDoubleValue(); } }, - { "lastUpdate", n => { LastUpdate = n.GetDoubleValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "maintenance", n => { Maintenance = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_maintenance.CreateFromDiscriminatorValue); } }, - { "netbiosName", n => { NetbiosName = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "offline", n => { Offline = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "parentDeviceId", n => { ParentDeviceId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - { "references", n => { References = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references.CreateFromDiscriminatorValue); } }, - { "rolePolicyId", n => { RolePolicyId = n.GetIntValue(); } }, - { "systemName", n => { SystemName = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("approvalStatus", ApprovalStatus); - writer.WriteGuidValue("assignedOwnerUid", AssignedOwnerUid); - writer.WriteDoubleValue("created", Created); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("dnsName", DnsName); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteDoubleValue("lastContact", LastContact); - writer.WriteDoubleValue("lastUpdate", LastUpdate); - writer.WriteIntValue("locationId", LocationId); - writer.WriteObjectValue("maintenance", Maintenance); - writer.WriteStringValue("netbiosName", NetbiosName); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteBoolValue("offline", Offline); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteIntValue("parentDeviceId", ParentDeviceId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteObjectValue("references", References); - writer.WriteIntValue("rolePolicyId", RolePolicyId); - writer.WriteStringValue("systemName", SystemName); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/DevicesRequestBuilder.cs b/V2/Organization/Item/Devices/DevicesRequestBuilder.cs deleted file mode 100644 index c4d8043..0000000 --- a/V2/Organization/Item/Devices/DevicesRequestBuilder.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\devices - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DevicesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/devices{?after*,pageSize*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DevicesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/devices{?after*,pageSize*}", rawUrl) - { - } - /// - /// Returns list of devices for organization - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Organization.Item.Devices.Devices.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of devices for organization - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Item.Devices.DevicesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Item.Devices.DevicesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of devices for organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesRequestBuilderGetQueryParameters - { - /// Last Node ID from previous page - [QueryParameter("after")] - public int? After { get; set; } - /// Limit number of devices to return - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DevicesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_approvalStatus.cs b/V2/Organization/Item/Devices/Devices_approvalStatus.cs deleted file mode 100644 index ed24849..0000000 --- a/V2/Organization/Item/Devices/Devices_approvalStatus.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// Approval Status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Devices_approvalStatus - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "APPROVED")] - #pragma warning disable CS1591 - APPROVED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/Item/Devices/Devices_fields.cs b/V2/Organization/Item/Devices/Devices_fields.cs deleted file mode 100644 index 5a79de4..0000000 --- a/V2/Organization/Item/Devices/Devices_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_fields : 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. - /// - public Devices_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_maintenance.cs b/V2/Organization/Item/Devices/Devices_maintenance.cs deleted file mode 100644 index 80650fc..0000000 --- a/V2/Organization/Item/Devices/Devices_maintenance.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Maintenance mode status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_maintenance : 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; } - /// Maintenance mode end time - public double? End { get; set; } - /// Maintenance reason message -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ReasonMessage { get; set; } -#nullable restore -#else - public string ReasonMessage { get; set; } -#endif - /// Maintenance mode start time - public double? Start { get; set; } - /// Maintenance mode status - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_maintenance_status? Status { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Devices_maintenance() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_maintenance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_maintenance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "end", n => { End = n.GetDoubleValue(); } }, - { "reasonMessage", n => { ReasonMessage = n.GetStringValue(); } }, - { "start", n => { Start = n.GetDoubleValue(); } }, - { "status", n => { Status = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("end", End); - writer.WriteStringValue("reasonMessage", ReasonMessage); - writer.WriteDoubleValue("start", Start); - writer.WriteEnumValue("status", Status); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_maintenance_status.cs b/V2/Organization/Item/Devices/Devices_maintenance_status.cs deleted file mode 100644 index 707340f..0000000 --- a/V2/Organization/Item/Devices/Devices_maintenance_status.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// Maintenance mode status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Devices_maintenance_status - { - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_MAINTENANCE")] - #pragma warning disable CS1591 - IN_MAINTENANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILED")] - #pragma warning disable CS1591 - FAILED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/Item/Devices/Devices_nodeClass.cs b/V2/Organization/Item/Devices/Devices_nodeClass.cs deleted file mode 100644 index 23b8421..0000000 --- a/V2/Organization/Item/Devices/Devices_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Devices_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/Item/Devices/Devices_references.cs b/V2/Organization/Item/Devices/Devices_references.cs deleted file mode 100644 index 5b4c631..0000000 --- a/V2/Organization/Item/Devices/Devices_references.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Expanded entity references - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references : 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; } - /// Assigned device owner -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_assignedOwner? AssignedOwner { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_assignedOwner AssignedOwner { get; set; } -#endif - /// Device Backup Bandwidth Throttle -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_backupBandwidthThrottle? BackupBandwidthThrottle { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_backupBandwidthThrottle BackupBandwidthThrottle { get; set; } -#endif - /// Device Backup Usage -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_backupUsage? BackupUsage { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_backupUsage BackupUsage { get; set; } -#endif - /// Location -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_location? Location { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_location Location { get; set; } -#endif - /// Organization -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_organization? Organization { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_organization Organization { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_policy? Policy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_policy Policy { get; set; } -#endif - /// Device Role -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_role? Role { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_role Role { get; set; } -#endif - /// Assigned policy (overrides organization and location policy mapping) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_rolePolicy? RolePolicy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_rolePolicy RolePolicy { get; set; } -#endif - /// Warranty Info -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_warranty? Warranty { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_warranty Warranty { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignedOwner", n => { AssignedOwner = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_assignedOwner.CreateFromDiscriminatorValue); } }, - { "backupBandwidthThrottle", n => { BackupBandwidthThrottle = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_backupBandwidthThrottle.CreateFromDiscriminatorValue); } }, - { "backupUsage", n => { BackupUsage = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_backupUsage.CreateFromDiscriminatorValue); } }, - { "location", n => { Location = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_location.CreateFromDiscriminatorValue); } }, - { "organization", n => { Organization = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_organization.CreateFromDiscriminatorValue); } }, - { "policy", n => { Policy = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_policy.CreateFromDiscriminatorValue); } }, - { "role", n => { Role = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_role.CreateFromDiscriminatorValue); } }, - { "rolePolicy", n => { RolePolicy = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_rolePolicy.CreateFromDiscriminatorValue); } }, - { "warranty", n => { Warranty = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_warranty.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assignedOwner", AssignedOwner); - writer.WriteObjectValue("backupBandwidthThrottle", BackupBandwidthThrottle); - writer.WriteObjectValue("backupUsage", BackupUsage); - writer.WriteObjectValue("location", Location); - writer.WriteObjectValue("organization", Organization); - writer.WriteObjectValue("policy", Policy); - writer.WriteObjectValue("role", Role); - writer.WriteObjectValue("rolePolicy", RolePolicy); - writer.WriteObjectValue("warranty", Warranty); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_assignedOwner.cs b/V2/Organization/Item/Devices/Devices_references_assignedOwner.cs deleted file mode 100644 index 529718e..0000000 --- a/V2/Organization/Item/Devices/Devices_references_assignedOwner.cs +++ /dev/null @@ -1,190 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Assigned device owner - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_assignedOwner : 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; } - /// The administrator property - public bool? Administrator { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Device IDs which end-user is authorized to access -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DeviceIds { get; set; } -#nullable restore -#else - public List DeviceIds { get; set; } -#endif - /// The email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The enabled property - public bool? Enabled { get; set; } - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_assignedOwner_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_assignedOwner_fields Fields { get; set; } -#endif - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// The invitationStatus property - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_assignedOwner_invitationStatus? InvitationStatus { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// The mfaConfigured property - public bool? MfaConfigured { get; set; } - /// The mustChangePw property - public bool? MustChangePw { get; set; } - /// The notifyAllClients property - public bool? NotifyAllClients { get; set; } - /// Identifier of organization for end-users - public int? OrganizationId { get; set; } - /// The permitAllClients property - public bool? PermitAllClients { get; set; } - /// The phone property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the user. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// User universally unique identifier - public Guid? Uid { get; set; } - /// The userType property - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_assignedOwner_userType? UserType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_assignedOwner() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_assignedOwner CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_assignedOwner(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "administrator", n => { Administrator = n.GetBoolValue(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "deviceIds", n => { DeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_assignedOwner_fields.CreateFromDiscriminatorValue); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "notifyAllClients", n => { NotifyAllClients = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "permitAllClients", n => { PermitAllClients = n.GetBoolValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userType", n => { UserType = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("administrator", Administrator); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteCollectionOfPrimitiveValues("deviceIds", DeviceIds); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteBoolValue("notifyAllClients", NotifyAllClients); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteBoolValue("permitAllClients", PermitAllClients); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteEnumValue("userType", UserType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_assignedOwner_fields.cs b/V2/Organization/Item/Devices/Devices_references_assignedOwner_fields.cs deleted file mode 100644 index b9fb885..0000000 --- a/V2/Organization/Item/Devices/Devices_references_assignedOwner_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_assignedOwner_fields : 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. - /// - public Devices_references_assignedOwner_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_assignedOwner_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_assignedOwner_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_assignedOwner_invitationStatus.cs b/V2/Organization/Item/Devices/Devices_references_assignedOwner_invitationStatus.cs deleted file mode 100644 index 942f06c..0000000 --- a/V2/Organization/Item/Devices/Devices_references_assignedOwner_invitationStatus.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Devices_references_assignedOwner_invitationStatus - #pragma warning restore CS1591 - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/Item/Devices/Devices_references_assignedOwner_userType.cs b/V2/Organization/Item/Devices/Devices_references_assignedOwner_userType.cs deleted file mode 100644 index 0a0f9a0..0000000 --- a/V2/Organization/Item/Devices/Devices_references_assignedOwner_userType.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Devices_references_assignedOwner_userType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/Item/Devices/Devices_references_backupBandwidthThrottle.cs b/V2/Organization/Item/Devices/Devices_references_backupBandwidthThrottle.cs deleted file mode 100644 index 9964733..0000000 --- a/V2/Organization/Item/Devices/Devices_references_backupBandwidthThrottle.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Device Backup Bandwidth Throttle - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_backupBandwidthThrottle : 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; } - /// Whether bandwidth throttle is enabled/true or disabled/false - public bool? Enabled { get; set; } - /// Bandwidth nonwork hours limit - public int? NonWorkHoursKbps { get; set; } - /// Bandwidth nonwork hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NonWorkHoursUserUnit { get; set; } -#nullable restore -#else - public string NonWorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work hours limit - public int? WorkHoursKbps { get; set; } - /// Bandwidth work hours unit -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? WorkHoursUserUnit { get; set; } -#nullable restore -#else - public string WorkHoursUserUnit { get; set; } -#endif - /// Bandwidth work schedule -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_backupBandwidthThrottle_workSchedule? WorkSchedule { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_backupBandwidthThrottle_workSchedule WorkSchedule { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_backupBandwidthThrottle() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_backupBandwidthThrottle CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_backupBandwidthThrottle(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "nonWorkHoursKbps", n => { NonWorkHoursKbps = n.GetIntValue(); } }, - { "nonWorkHoursUserUnit", n => { NonWorkHoursUserUnit = n.GetStringValue(); } }, - { "workHoursKbps", n => { WorkHoursKbps = n.GetIntValue(); } }, - { "workHoursUserUnit", n => { WorkHoursUserUnit = n.GetStringValue(); } }, - { "workSchedule", n => { WorkSchedule = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_backupBandwidthThrottle_workSchedule.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("nonWorkHoursKbps", NonWorkHoursKbps); - writer.WriteStringValue("nonWorkHoursUserUnit", NonWorkHoursUserUnit); - writer.WriteIntValue("workHoursKbps", WorkHoursKbps); - writer.WriteStringValue("workHoursUserUnit", WorkHoursUserUnit); - writer.WriteObjectValue("workSchedule", WorkSchedule); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_backupBandwidthThrottle_workSchedule.cs b/V2/Organization/Item/Devices/Devices_references_backupBandwidthThrottle_workSchedule.cs deleted file mode 100644 index d9df19a..0000000 --- a/V2/Organization/Item/Devices/Devices_references_backupBandwidthThrottle_workSchedule.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Bandwidth work schedule - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_backupBandwidthThrottle_workSchedule : 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; } - /// Work schedule end hour (0 to 23) - public int? EndHour { get; set; } - /// Work schedule end minute (0 to 59) - public int? EndMinute { get; set; } - /// Work schedule start hour (0 to 23) - public int? StartHour { get; set; } - /// Work schedule start minute (0 to 59) - public int? StartMinute { get; set; } - /// Work schedule week days list -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? WeekDays { get; set; } -#nullable restore -#else - public List WeekDays { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_backupBandwidthThrottle_workSchedule() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_backupBandwidthThrottle_workSchedule CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_backupBandwidthThrottle_workSchedule(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endHour", n => { EndHour = n.GetIntValue(); } }, - { "endMinute", n => { EndMinute = n.GetIntValue(); } }, - { "startHour", n => { StartHour = n.GetIntValue(); } }, - { "startMinute", n => { StartMinute = n.GetIntValue(); } }, - { "weekDays", n => { WeekDays = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("endHour", EndHour); - writer.WriteIntValue("endMinute", EndMinute); - writer.WriteIntValue("startHour", StartHour); - writer.WriteIntValue("startMinute", StartMinute); - writer.WriteCollectionOfPrimitiveValues("weekDays", WeekDays); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_backupUsage.cs b/V2/Organization/Item/Devices/Devices_references_backupUsage.cs deleted file mode 100644 index 1db7269..0000000 --- a/V2/Organization/Item/Devices/Devices_references_backupUsage.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Device Backup Usage - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_backupUsage : 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; } - /// Revisions cloud file folder size - public long? CloudFileFolderSize { get; set; } - /// Revisions cloud image size - public long? CloudImageSize { get; set; } - /// Revisions cloud image v2 size - public long? CloudImageV2Size { get; set; } - /// Revisions cloud network share size - public long? CloudNetworkShareSize { get; set; } - /// Revisions cloud total size - public long? CloudTotalSize { get; private set; } - /// Last failed job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastFailedBackupJob { get; set; } - /// Last successful job. This is provided when the 'includeLastBackupJobTimes' query parameter is set to 'true' - public double? LastSuccessfulBackupJob { get; set; } - /// Revisions local file folder size - public long? LocalFileFolderSize { get; set; } - /// Revisions local image size - public long? LocalImageSize { get; set; } - /// Revisions local image v2 size - public long? LocalImageV2Size { get; set; } - /// Revisions local total size - public long? LocalTotalSize { get; private set; } - /// Revisions current size - public long? RevisionsCurrentSize { get; set; } - /// Revisions deleted size - public long? RevisionsDeletedSize { get; set; } - /// Revisions previous size - public long? RevisionsPreviousSize { get; set; } - /// Revisions total size - public long? RevisionsTotalSize { get; private set; } - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_backupUsage() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_backupUsage CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_backupUsage(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cloudFileFolderSize", n => { CloudFileFolderSize = n.GetLongValue(); } }, - { "cloudImageSize", n => { CloudImageSize = n.GetLongValue(); } }, - { "cloudImageV2Size", n => { CloudImageV2Size = n.GetLongValue(); } }, - { "cloudNetworkShareSize", n => { CloudNetworkShareSize = n.GetLongValue(); } }, - { "cloudTotalSize", n => { CloudTotalSize = n.GetLongValue(); } }, - { "lastFailedBackupJob", n => { LastFailedBackupJob = n.GetDoubleValue(); } }, - { "lastSuccessfulBackupJob", n => { LastSuccessfulBackupJob = n.GetDoubleValue(); } }, - { "localFileFolderSize", n => { LocalFileFolderSize = n.GetLongValue(); } }, - { "localImageSize", n => { LocalImageSize = n.GetLongValue(); } }, - { "localImageV2Size", n => { LocalImageV2Size = n.GetLongValue(); } }, - { "localTotalSize", n => { LocalTotalSize = n.GetLongValue(); } }, - { "revisionsCurrentSize", n => { RevisionsCurrentSize = n.GetLongValue(); } }, - { "revisionsDeletedSize", n => { RevisionsDeletedSize = n.GetLongValue(); } }, - { "revisionsPreviousSize", n => { RevisionsPreviousSize = n.GetLongValue(); } }, - { "revisionsTotalSize", n => { RevisionsTotalSize = n.GetLongValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteLongValue("cloudFileFolderSize", CloudFileFolderSize); - writer.WriteLongValue("cloudImageSize", CloudImageSize); - writer.WriteLongValue("cloudImageV2Size", CloudImageV2Size); - writer.WriteLongValue("cloudNetworkShareSize", CloudNetworkShareSize); - writer.WriteDoubleValue("lastFailedBackupJob", LastFailedBackupJob); - writer.WriteDoubleValue("lastSuccessfulBackupJob", LastSuccessfulBackupJob); - writer.WriteLongValue("localFileFolderSize", LocalFileFolderSize); - writer.WriteLongValue("localImageSize", LocalImageSize); - writer.WriteLongValue("localImageV2Size", LocalImageV2Size); - writer.WriteLongValue("revisionsCurrentSize", RevisionsCurrentSize); - writer.WriteLongValue("revisionsDeletedSize", RevisionsDeletedSize); - writer.WriteLongValue("revisionsPreviousSize", RevisionsPreviousSize); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_location.cs b/V2/Organization/Item/Devices/Devices_references_location.cs deleted file mode 100644 index ea00b06..0000000 --- a/V2/Organization/Item/Devices/Devices_references_location.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_location : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_location_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_location_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_location_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_location_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_location() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_location CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_location(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_location_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_location_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_location_fields.cs b/V2/Organization/Item/Devices/Devices_references_location_fields.cs deleted file mode 100644 index 4458816..0000000 --- a/V2/Organization/Item/Devices/Devices_references_location_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_location_fields : 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. - /// - public Devices_references_location_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_location_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_location_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_location_userData.cs b/V2/Organization/Item/Devices/Devices_references_location_userData.cs deleted file mode 100644 index 24ee6a7..0000000 --- a/V2/Organization/Item/Devices/Devices_references_location_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_location_userData : 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. - /// - public Devices_references_location_userData() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_location_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_location_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_organization.cs b/V2/Organization/Item/Devices/Devices_references_organization.cs deleted file mode 100644 index ed8acbe..0000000 --- a/V2/Organization/Item/Devices/Devices_references_organization.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_organization : 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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_organization_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_organization_fields Fields { get; set; } -#endif - /// Organization identifier - public int? Id { get; set; } - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_organization_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_organization_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_organization_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_organization() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_organization CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_organization(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_organization_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_organization_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_organization_fields.cs b/V2/Organization/Item/Devices/Devices_references_organization_fields.cs deleted file mode 100644 index 52e2a54..0000000 --- a/V2/Organization/Item/Devices/Devices_references_organization_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_organization_fields : 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. - /// - public Devices_references_organization_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_organization_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_organization_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_organization_nodeApprovalMode.cs b/V2/Organization/Item/Devices/Devices_references_organization_nodeApprovalMode.cs deleted file mode 100644 index 1060453..0000000 --- a/V2/Organization/Item/Devices/Devices_references_organization_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Devices_references_organization_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/Item/Devices/Devices_references_organization_userData.cs b/V2/Organization/Item/Devices/Devices_references_organization_userData.cs deleted file mode 100644 index 8612506..0000000 --- a/V2/Organization/Item/Devices/Devices_references_organization_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_organization_userData : 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. - /// - public Devices_references_organization_userData() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_organization_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_organization_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_policy.cs b/V2/Organization/Item/Devices/Devices_references_policy.cs deleted file mode 100644 index a7bbc03..0000000 --- a/V2/Organization/Item/Devices/Devices_references_policy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_policy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_policy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_policy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_policy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_policy() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_policy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_policy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_policy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_policy_fields.cs b/V2/Organization/Item/Devices/Devices_references_policy_fields.cs deleted file mode 100644 index c078ab4..0000000 --- a/V2/Organization/Item/Devices/Devices_references_policy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_policy_fields : 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. - /// - public Devices_references_policy_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_policy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_policy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_policy_nodeClass.cs b/V2/Organization/Item/Devices/Devices_references_policy_nodeClass.cs deleted file mode 100644 index adf1e10..0000000 --- a/V2/Organization/Item/Devices/Devices_references_policy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Devices_references_policy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/Item/Devices/Devices_references_role.cs b/V2/Organization/Item/Devices/Devices_references_role.cs deleted file mode 100644 index aeeada2..0000000 --- a/V2/Organization/Item/Devices/Devices_references_role.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Device Role - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_role : 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; } - /// Chassis Type - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_role_chassisType? ChassisType { get; set; } - /// Date created - public double? Created { get; set; } - /// Is custom node role? - public bool? Custom { get; set; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_role_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_role_fields Fields { get; set; } -#endif - /// Icon -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Icon { get; set; } -#nullable restore -#else - public string Icon { get; set; } -#endif - /// Device Role identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_role_nodeClass? NodeClass { get; set; } - /// Node Role Parent Id - public int? NodeRoleParentId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_role() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_role CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_role(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "chassisType", n => { ChassisType = n.GetEnumValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "custom", n => { Custom = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_role_fields.CreateFromDiscriminatorValue); } }, - { "icon", n => { Icon = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleParentId", n => { NodeRoleParentId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("chassisType", ChassisType); - writer.WriteDoubleValue("created", Created); - writer.WriteBoolValue("custom", Custom); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("icon", Icon); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleParentId", NodeRoleParentId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_rolePolicy.cs b/V2/Organization/Item/Devices/Devices_references_rolePolicy.cs deleted file mode 100644 index 69db5b2..0000000 --- a/V2/Organization/Item/Devices/Devices_references_rolePolicy.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_rolePolicy : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_rolePolicy_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_rolePolicy_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_rolePolicy_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_rolePolicy() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_rolePolicy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_rolePolicy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_rolePolicy_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_rolePolicy_fields.cs b/V2/Organization/Item/Devices/Devices_references_rolePolicy_fields.cs deleted file mode 100644 index cdad2e3..0000000 --- a/V2/Organization/Item/Devices/Devices_references_rolePolicy_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_rolePolicy_fields : 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. - /// - public Devices_references_rolePolicy_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_rolePolicy_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_rolePolicy_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_rolePolicy_nodeClass.cs b/V2/Organization/Item/Devices/Devices_references_rolePolicy_nodeClass.cs deleted file mode 100644 index 1150e35..0000000 --- a/V2/Organization/Item/Devices/Devices_references_rolePolicy_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Devices_references_rolePolicy_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/Item/Devices/Devices_references_role_chassisType.cs b/V2/Organization/Item/Devices/Devices_references_role_chassisType.cs deleted file mode 100644 index bf356ad..0000000 --- a/V2/Organization/Item/Devices/Devices_references_role_chassisType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// Chassis Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Devices_references_role_chassisType - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "DESKTOP")] - #pragma warning disable CS1591 - DESKTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "LAPTOP")] - #pragma warning disable CS1591 - LAPTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "MOBILE")] - #pragma warning disable CS1591 - MOBILE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/Item/Devices/Devices_references_role_fields.cs b/V2/Organization/Item/Devices/Devices_references_role_fields.cs deleted file mode 100644 index 463eba0..0000000 --- a/V2/Organization/Item/Devices/Devices_references_role_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_role_fields : 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. - /// - public Devices_references_role_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_role_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_role_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_references_role_nodeClass.cs b/V2/Organization/Item/Devices/Devices_references_role_nodeClass.cs deleted file mode 100644 index a280eef..0000000 --- a/V2/Organization/Item/Devices/Devices_references_role_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Devices_references_role_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/Item/Devices/Devices_references_warranty.cs b/V2/Organization/Item/Devices/Devices_references_warranty.cs deleted file mode 100644 index 61978a0..0000000 --- a/V2/Organization/Item/Devices/Devices_references_warranty.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Warranty Info - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_references_warranty : 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; } - /// Warranty End Date (Seconds) - public double? EndDate { get; set; } - /// Manufacturer Fulfillment Date - public double? ManufacturerFulfillmentDate { get; set; } - /// Warranty Start Date (Seconds) - public double? StartDate { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Devices_references_warranty() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_warranty CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_references_warranty(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "endDate", n => { EndDate = n.GetDoubleValue(); } }, - { "manufacturerFulfillmentDate", n => { ManufacturerFulfillmentDate = n.GetDoubleValue(); } }, - { "startDate", n => { StartDate = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("endDate", EndDate); - writer.WriteDoubleValue("manufacturerFulfillmentDate", ManufacturerFulfillmentDate); - writer.WriteDoubleValue("startDate", StartDate); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Devices/Devices_userData.cs b/V2/Organization/Item/Devices/Devices_userData.cs deleted file mode 100644 index f871a4c..0000000 --- a/V2/Organization/Item/Devices/Devices_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Devices -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Devices_userData : 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. - /// - public Devices_userData() - { - 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::NinjaOne.Client.V2.Organization.Item.Devices.Devices_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Devices.Devices_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Document/DocumentRequestBuilder.cs b/V2/Organization/Item/Document/DocumentRequestBuilder.cs deleted file mode 100644 index c33f742..0000000 --- a/V2/Organization/Item/Document/DocumentRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Organization.Item.Document.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Document -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\document - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.organization.item.document.item collection - /// Organization document identifier - /// A - public global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("clientDocumentId", position); - return new global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.organization.item.document.item collection - /// Organization document identifier - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("clientDocumentId", position); - return new global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DocumentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/document", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DocumentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/document", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Document/Item/WithClientDocumentItemRequestBuilder.cs b/V2/Organization/Item/Document/Item/WithClientDocumentItemRequestBuilder.cs deleted file mode 100644 index 7d139e8..0000000 --- a/V2/Organization/Item/Document/Item/WithClientDocumentItemRequestBuilder.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Document.Item -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\document\{clientDocumentId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithClientDocumentItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithClientDocumentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/document/{clientDocumentId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithClientDocumentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/document/{clientDocumentId}", rawUrl) - { - } - /// - /// Updates an organization document and returns the updated version - /// - /// A - /// The request body - /// 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 PostAsWithClientDocumentPostResponseAsync(global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsWithClientDocumentPostResponseAsync(global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Updates an organization document and returns the updated version - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsWithClientDocumentPostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Updates an organization document and returns the updated version - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithClientDocumentItemRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Document/Item/WithClientDocumentPostRequestBody.cs b/V2/Organization/Item/Document/Item/WithClientDocumentPostRequestBody.cs deleted file mode 100644 index 333a186..0000000 --- a/V2/Organization/Item/Document/Item/WithClientDocumentPostRequestBody.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Document.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithClientDocumentPostRequestBody : 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; } - /// Document Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentDescription { get; set; } -#nullable restore -#else - public string DocumentDescription { get; set; } -#endif - /// Document Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentName { get; set; } -#nullable restore -#else - public string DocumentName { get; set; } -#endif - /// Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostRequestBody_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostRequestBody_fields Fields { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithClientDocumentPostRequestBody() - { - 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::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "documentDescription", n => { DocumentDescription = n.GetStringValue(); } }, - { "documentName", n => { DocumentName = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostRequestBody_fields.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("documentDescription", DocumentDescription); - writer.WriteStringValue("documentName", DocumentName); - writer.WriteObjectValue("fields", Fields); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Document/Item/WithClientDocumentPostRequestBody_fields.cs b/V2/Organization/Item/Document/Item/WithClientDocumentPostRequestBody_fields.cs deleted file mode 100644 index e54010a..0000000 --- a/V2/Organization/Item/Document/Item/WithClientDocumentPostRequestBody_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Document.Item -{ - /// - /// Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithClientDocumentPostRequestBody_fields : 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. - /// - public WithClientDocumentPostRequestBody_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostRequestBody_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostRequestBody_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Document/Item/WithClientDocumentPostResponse.cs b/V2/Organization/Item/Document/Item/WithClientDocumentPostResponse.cs deleted file mode 100644 index f0d846a..0000000 --- a/V2/Organization/Item/Document/Item/WithClientDocumentPostResponse.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Document.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithClientDocumentPostResponse : 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; } - /// Document Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentDescription { get; set; } -#nullable restore -#else - public string DocumentDescription { get; set; } -#endif - /// Document Identifier - public int? DocumentId { get; set; } - /// Document Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentName { get; set; } -#nullable restore -#else - public string DocumentName { get; set; } -#endif - /// Document Template Identifier - public int? DocumentTemplateId { get; set; } - /// Document Template Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentTemplateName { get; set; } -#nullable restore -#else - public string DocumentTemplateName { get; set; } -#endif - /// Document Last Updated - public double? DocumentUpdateTime { get; set; } - /// Organization Identifier - public int? OrganizationId { get; set; } - /// Updated Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? UpdatedFields { get; set; } -#nullable restore -#else - public List UpdatedFields { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithClientDocumentPostResponse() - { - 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::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "documentDescription", n => { DocumentDescription = n.GetStringValue(); } }, - { "documentId", n => { DocumentId = n.GetIntValue(); } }, - { "documentName", n => { DocumentName = n.GetStringValue(); } }, - { "documentTemplateId", n => { DocumentTemplateId = n.GetIntValue(); } }, - { "documentTemplateName", n => { DocumentTemplateName = n.GetStringValue(); } }, - { "documentUpdateTime", n => { DocumentUpdateTime = n.GetDoubleValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "updatedFields", n => { UpdatedFields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostResponse_updatedFields.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("documentDescription", DocumentDescription); - writer.WriteIntValue("documentId", DocumentId); - writer.WriteStringValue("documentName", DocumentName); - writer.WriteIntValue("documentTemplateId", DocumentTemplateId); - writer.WriteStringValue("documentTemplateName", DocumentTemplateName); - writer.WriteDoubleValue("documentUpdateTime", DocumentUpdateTime); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteCollectionOfObjectValues("updatedFields", UpdatedFields); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Document/Item/WithClientDocumentPostResponse_updatedFields.cs b/V2/Organization/Item/Document/Item/WithClientDocumentPostResponse_updatedFields.cs deleted file mode 100644 index 02ceb7a..0000000 --- a/V2/Organization/Item/Document/Item/WithClientDocumentPostResponse_updatedFields.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Document.Item -{ - /// - /// Updated Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithClientDocumentPostResponse_updatedFields : 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; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostResponse_updatedFields_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostResponse_updatedFields_value Value { get; set; } -#endif - /// Value Last Updated - public double? ValueUpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithClientDocumentPostResponse_updatedFields() - { - 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::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostResponse_updatedFields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostResponse_updatedFields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "name", n => { Name = n.GetStringValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostResponse_updatedFields_value.CreateFromDiscriminatorValue); } }, - { "valueUpdateTime", n => { ValueUpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("name", Name); - writer.WriteObjectValue("value", Value); - writer.WriteDoubleValue("valueUpdateTime", ValueUpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Document/Item/WithClientDocumentPostResponse_updatedFields_value.cs b/V2/Organization/Item/Document/Item/WithClientDocumentPostResponse_updatedFields_value.cs deleted file mode 100644 index 073fcff..0000000 --- a/V2/Organization/Item/Document/Item/WithClientDocumentPostResponse_updatedFields_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Document.Item -{ - /// - /// Value - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithClientDocumentPostResponse_updatedFields_value : 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. - /// - public WithClientDocumentPostResponse_updatedFields_value() - { - 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::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostResponse_updatedFields_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostResponse_updatedFields_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Document/Item/WithClientDocumentResponse.cs b/V2/Organization/Item/Document/Item/WithClientDocumentResponse.cs deleted file mode 100644 index d5d1a0d..0000000 --- a/V2/Organization/Item/Document/Item/WithClientDocumentResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Document.Item -{ - [Obsolete("This class is obsolete. Use WithClientDocumentPostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithClientDocumentResponse : global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentPostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Document.Item.WithClientDocumentResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Documents/Documents.cs b/V2/Organization/Item/Documents/Documents.cs deleted file mode 100644 index 0faf409..0000000 --- a/V2/Organization/Item/Documents/Documents.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Documents -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Documents : 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; } - /// Document Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentDescription { get; set; } -#nullable restore -#else - public string DocumentDescription { get; set; } -#endif - /// Document Identifier - public int? DocumentId { get; set; } - /// Document Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentName { get; set; } -#nullable restore -#else - public string DocumentName { get; set; } -#endif - /// Document Template Identifier - public int? DocumentTemplateId { get; set; } - /// Document Template Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentTemplateName { get; set; } -#nullable restore -#else - public string DocumentTemplateName { get; set; } -#endif - /// Document Last Updated - public double? DocumentUpdateTime { get; set; } - /// Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// Organization Identifier - public int? OrganizationId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Documents() - { - 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::NinjaOne.Client.V2.Organization.Item.Documents.Documents CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Documents.Documents(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "documentDescription", n => { DocumentDescription = n.GetStringValue(); } }, - { "documentId", n => { DocumentId = n.GetIntValue(); } }, - { "documentName", n => { DocumentName = n.GetStringValue(); } }, - { "documentTemplateId", n => { DocumentTemplateId = n.GetIntValue(); } }, - { "documentTemplateName", n => { DocumentTemplateName = n.GetStringValue(); } }, - { "documentUpdateTime", n => { DocumentUpdateTime = n.GetDoubleValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organization.Item.Documents.Documents_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("documentDescription", DocumentDescription); - writer.WriteIntValue("documentId", DocumentId); - writer.WriteStringValue("documentName", DocumentName); - writer.WriteIntValue("documentTemplateId", DocumentTemplateId); - writer.WriteStringValue("documentTemplateName", DocumentTemplateName); - writer.WriteDoubleValue("documentUpdateTime", DocumentUpdateTime); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Documents/DocumentsRequestBuilder.cs b/V2/Organization/Item/Documents/DocumentsRequestBuilder.cs deleted file mode 100644 index e5e37b0..0000000 --- a/V2/Organization/Item/Documents/DocumentsRequestBuilder.cs +++ /dev/null @@ -1,92 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Documents -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\documents - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DocumentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/documents", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DocumentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/documents", rawUrl) - { - } - /// - /// List organization documents with field values - /// - /// A List<global::NinjaOne.Client.V2.Organization.Item.Documents.Documents> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Item.Documents.Documents.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// List organization documents with field values - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Item.Documents.DocumentsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Item.Documents.DocumentsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Documents/Documents_fields.cs b/V2/Organization/Item/Documents/Documents_fields.cs deleted file mode 100644 index 2182a57..0000000 --- a/V2/Organization/Item/Documents/Documents_fields.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Documents -{ - /// - /// Updated Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Documents_fields : 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; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Documents.Documents_fields_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Documents.Documents_fields_value Value { get; set; } -#endif - /// Value Last Updated - public double? ValueUpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Documents_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Documents.Documents_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Documents.Documents_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "name", n => { Name = n.GetStringValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Documents.Documents_fields_value.CreateFromDiscriminatorValue); } }, - { "valueUpdateTime", n => { ValueUpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("name", Name); - writer.WriteObjectValue("value", Value); - writer.WriteDoubleValue("valueUpdateTime", ValueUpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Documents/Documents_fields_value.cs b/V2/Organization/Item/Documents/Documents_fields_value.cs deleted file mode 100644 index 40caabd..0000000 --- a/V2/Organization/Item/Documents/Documents_fields_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Documents -{ - /// - /// Value - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Documents_fields_value : 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. - /// - public Documents_fields_value() - { - 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::NinjaOne.Client.V2.Organization.Item.Documents.Documents_fields_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Documents.Documents_fields_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/EndUsers/EndUsers.cs b/V2/Organization/Item/EndUsers/EndUsers.cs deleted file mode 100644 index c45f8b9..0000000 --- a/V2/Organization/Item/EndUsers/EndUsers.cs +++ /dev/null @@ -1,193 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.EndUsers -{ - /// - /// Assigned device owner - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUsers : ApiException, 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; } - /// The administrator property - public bool? Administrator { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Device IDs which end-user is authorized to access -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DeviceIds { get; set; } -#nullable restore -#else - public List DeviceIds { get; set; } -#endif - /// The email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The enabled property - public bool? Enabled { get; set; } - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.EndUsers.EndUsers_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.EndUsers.EndUsers_fields Fields { get; set; } -#endif - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// The invitationStatus property - public global::NinjaOne.Client.V2.Organization.Item.EndUsers.EndUsers_invitationStatus? InvitationStatus { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The mfaConfigured property - public bool? MfaConfigured { get; set; } - /// The mustChangePw property - public bool? MustChangePw { get; set; } - /// The notifyAllClients property - public bool? NotifyAllClients { get; set; } - /// Identifier of organization for end-users - public int? OrganizationId { get; set; } - /// The permitAllClients property - public bool? PermitAllClients { get; set; } - /// The phone property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the user. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// User universally unique identifier - public Guid? Uid { get; set; } - /// The userType property - public global::NinjaOne.Client.V2.Organization.Item.EndUsers.EndUsers_userType? UserType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public EndUsers() - { - 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::NinjaOne.Client.V2.Organization.Item.EndUsers.EndUsers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.EndUsers.EndUsers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "administrator", n => { Administrator = n.GetBoolValue(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "deviceIds", n => { DeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.EndUsers.EndUsers_fields.CreateFromDiscriminatorValue); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "notifyAllClients", n => { NotifyAllClients = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "permitAllClients", n => { PermitAllClients = n.GetBoolValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userType", n => { UserType = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("administrator", Administrator); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteCollectionOfPrimitiveValues("deviceIds", DeviceIds); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteBoolValue("notifyAllClients", NotifyAllClients); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteBoolValue("permitAllClients", PermitAllClients); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteEnumValue("userType", UserType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/EndUsers/EndUsersRequestBuilder.cs b/V2/Organization/Item/EndUsers/EndUsersRequestBuilder.cs deleted file mode 100644 index b8e6e57..0000000 --- a/V2/Organization/Item/EndUsers/EndUsersRequestBuilder.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Item.EndUsers -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\end-users - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUsersRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public EndUsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/end-users{?includeRoles*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public EndUsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/end-users{?includeRoles*}", rawUrl) - { - } - /// - /// Returns list of end-users for organization - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Organization.Item.EndUsers.EndUsers.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of end-users for organization - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Item.EndUsers.EndUsersRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Item.EndUsers.EndUsersRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of end-users for organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUsersRequestBuilderGetQueryParameters - { - /// Includes user role information - [QueryParameter("includeRoles")] - public bool? IncludeRoles { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUsersRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/EndUsers/EndUsers_fields.cs b/V2/Organization/Item/EndUsers/EndUsers_fields.cs deleted file mode 100644 index afdde09..0000000 --- a/V2/Organization/Item/EndUsers/EndUsers_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.EndUsers -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUsers_fields : 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. - /// - public EndUsers_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.EndUsers.EndUsers_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.EndUsers.EndUsers_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/EndUsers/EndUsers_invitationStatus.cs b/V2/Organization/Item/EndUsers/EndUsers_invitationStatus.cs deleted file mode 100644 index 7415e4a..0000000 --- a/V2/Organization/Item/EndUsers/EndUsers_invitationStatus.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organization.Item.EndUsers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum EndUsers_invitationStatus - #pragma warning restore CS1591 - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/Item/EndUsers/EndUsers_userType.cs b/V2/Organization/Item/EndUsers/EndUsers_userType.cs deleted file mode 100644 index 59b8721..0000000 --- a/V2/Organization/Item/EndUsers/EndUsers_userType.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organization.Item.EndUsers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum EndUsers_userType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/Item/FiveXXError.cs b/V2/Organization/Item/FiveXXError.cs deleted file mode 100644 index 935d444..0000000 --- a/V2/Organization/Item/FiveXXError.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class FiveXXError : 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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_fields Fields { get; set; } -#endif - /// Organization identifier - public int? Id { get; set; } - /// List of locations -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Locations { get; set; } -#nullable restore -#else - public List Locations { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Node role policy assignments -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Policies { get; set; } -#nullable restore -#else - public List Policies { get; set; } -#endif - /// Organization settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings? Settings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings Settings { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FiveXXError() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FiveXXError_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "locations", n => { Locations = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organization.Item.FiveXXError_locations.CreateFromDiscriminatorValue)?.AsList(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "policies", n => { Policies = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organization.Item.FiveXXError_policies.CreateFromDiscriminatorValue)?.AsList(); } }, - { "settings", n => { Settings = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings.CreateFromDiscriminatorValue); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FiveXXError_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteCollectionOfObjectValues("locations", Locations); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfObjectValues("policies", Policies); - writer.WriteObjectValue("settings", Settings); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FiveXXError_fields.cs b/V2/Organization/Item/FiveXXError_fields.cs deleted file mode 100644 index 0ecc336..0000000 --- a/V2/Organization/Item/FiveXXError_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FiveXXError_fields : 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. - /// - public FiveXXError_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FiveXXError_locations.cs b/V2/Organization/Item/FiveXXError_locations.cs deleted file mode 100644 index f80ad52..0000000 --- a/V2/Organization/Item/FiveXXError_locations.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FiveXXError_locations : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_locations_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_locations_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_locations_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_locations_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FiveXXError_locations() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError_locations CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError_locations(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FiveXXError_locations_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FiveXXError_locations_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FiveXXError_locations_fields.cs b/V2/Organization/Item/FiveXXError_locations_fields.cs deleted file mode 100644 index b19c610..0000000 --- a/V2/Organization/Item/FiveXXError_locations_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FiveXXError_locations_fields : 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. - /// - public FiveXXError_locations_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError_locations_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError_locations_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FiveXXError_locations_userData.cs b/V2/Organization/Item/FiveXXError_locations_userData.cs deleted file mode 100644 index 4996062..0000000 --- a/V2/Organization/Item/FiveXXError_locations_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FiveXXError_locations_userData : 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. - /// - public FiveXXError_locations_userData() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError_locations_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError_locations_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FiveXXError_nodeApprovalMode.cs b/V2/Organization/Item/FiveXXError_nodeApprovalMode.cs deleted file mode 100644 index 82af945..0000000 --- a/V2/Organization/Item/FiveXXError_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum FiveXXError_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/Item/FiveXXError_policies.cs b/V2/Organization/Item/FiveXXError_policies.cs deleted file mode 100644 index 17edc28..0000000 --- a/V2/Organization/Item/FiveXXError_policies.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Node role policy assignments - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FiveXXError_policies : 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; } - /// Node Role Identifier - public int? NodeRoleId { get; set; } - /// Policy Identifier - public int? PolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public FiveXXError_policies() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError_policies CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError_policies(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FiveXXError_settings.cs b/V2/Organization/Item/FiveXXError_settings.cs deleted file mode 100644 index 8a2ca80..0000000 --- a/V2/Organization/Item/FiveXXError_settings.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Organization settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FiveXXError_settings : 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; } - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_backup? Backup { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_backup Backup { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_psa? Psa { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_psa Psa { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_splashtop? Splashtop { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_splashtop Splashtop { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_teamviewer? Teamviewer { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_teamviewer Teamviewer { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_trayicon? Trayicon { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_trayicon Trayicon { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FiveXXError_settings() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "backup", n => { Backup = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_backup.CreateFromDiscriminatorValue); } }, - { "psa", n => { Psa = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_psa.CreateFromDiscriminatorValue); } }, - { "splashtop", n => { Splashtop = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_splashtop.CreateFromDiscriminatorValue); } }, - { "teamviewer", n => { Teamviewer = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_teamviewer.CreateFromDiscriminatorValue); } }, - { "trayicon", n => { Trayicon = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_trayicon.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("backup", Backup); - writer.WriteObjectValue("psa", Psa); - writer.WriteObjectValue("splashtop", Splashtop); - writer.WriteObjectValue("teamviewer", Teamviewer); - writer.WriteObjectValue("trayicon", Trayicon); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FiveXXError_settings_backup.cs b/V2/Organization/Item/FiveXXError_settings_backup.cs deleted file mode 100644 index ba3a196..0000000 --- a/V2/Organization/Item/FiveXXError_settings_backup.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FiveXXError_settings_backup : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_backup_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_backup_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FiveXXError_settings_backup() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_backup CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_backup(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_backup_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FiveXXError_settings_backup_options.cs b/V2/Organization/Item/FiveXXError_settings_backup_options.cs deleted file mode 100644 index a7b8f3d..0000000 --- a/V2/Organization/Item/FiveXXError_settings_backup_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FiveXXError_settings_backup_options : 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. - /// - public FiveXXError_settings_backup_options() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_backup_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_backup_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FiveXXError_settings_psa.cs b/V2/Organization/Item/FiveXXError_settings_psa.cs deleted file mode 100644 index 1337f10..0000000 --- a/V2/Organization/Item/FiveXXError_settings_psa.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FiveXXError_settings_psa : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_psa_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_psa_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FiveXXError_settings_psa() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_psa CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_psa(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_psa_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FiveXXError_settings_psa_options.cs b/V2/Organization/Item/FiveXXError_settings_psa_options.cs deleted file mode 100644 index ef901d0..0000000 --- a/V2/Organization/Item/FiveXXError_settings_psa_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FiveXXError_settings_psa_options : 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. - /// - public FiveXXError_settings_psa_options() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_psa_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_psa_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FiveXXError_settings_splashtop.cs b/V2/Organization/Item/FiveXXError_settings_splashtop.cs deleted file mode 100644 index 9758083..0000000 --- a/V2/Organization/Item/FiveXXError_settings_splashtop.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FiveXXError_settings_splashtop : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_splashtop_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_splashtop_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FiveXXError_settings_splashtop() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_splashtop CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_splashtop(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_splashtop_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FiveXXError_settings_splashtop_options.cs b/V2/Organization/Item/FiveXXError_settings_splashtop_options.cs deleted file mode 100644 index 86da1ec..0000000 --- a/V2/Organization/Item/FiveXXError_settings_splashtop_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FiveXXError_settings_splashtop_options : 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. - /// - public FiveXXError_settings_splashtop_options() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_splashtop_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_splashtop_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FiveXXError_settings_teamviewer.cs b/V2/Organization/Item/FiveXXError_settings_teamviewer.cs deleted file mode 100644 index 04584e6..0000000 --- a/V2/Organization/Item/FiveXXError_settings_teamviewer.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FiveXXError_settings_teamviewer : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_teamviewer_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_teamviewer_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FiveXXError_settings_teamviewer() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_teamviewer CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_teamviewer(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_teamviewer_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FiveXXError_settings_teamviewer_options.cs b/V2/Organization/Item/FiveXXError_settings_teamviewer_options.cs deleted file mode 100644 index 818afc1..0000000 --- a/V2/Organization/Item/FiveXXError_settings_teamviewer_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FiveXXError_settings_teamviewer_options : 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. - /// - public FiveXXError_settings_teamviewer_options() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_teamviewer_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_teamviewer_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FiveXXError_settings_trayicon.cs b/V2/Organization/Item/FiveXXError_settings_trayicon.cs deleted file mode 100644 index e623556..0000000 --- a/V2/Organization/Item/FiveXXError_settings_trayicon.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FiveXXError_settings_trayicon : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_trayicon_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_trayicon_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FiveXXError_settings_trayicon() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_trayicon CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_trayicon(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_trayicon_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FiveXXError_settings_trayicon_options.cs b/V2/Organization/Item/FiveXXError_settings_trayicon_options.cs deleted file mode 100644 index 84f3199..0000000 --- a/V2/Organization/Item/FiveXXError_settings_trayicon_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FiveXXError_settings_trayicon_options : 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. - /// - public FiveXXError_settings_trayicon_options() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_trayicon_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError_settings_trayicon_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FiveXXError_userData.cs b/V2/Organization/Item/FiveXXError_userData.cs deleted file mode 100644 index 52d88bc..0000000 --- a/V2/Organization/Item/FiveXXError_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FiveXXError_userData : 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. - /// - public FiveXXError_userData() - { - 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::NinjaOne.Client.V2.Organization.Item.FiveXXError_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FiveXXError_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError.cs b/V2/Organization/Item/FourXXError.cs deleted file mode 100644 index 7c7fb15..0000000 --- a/V2/Organization/Item/FourXXError.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class FourXXError : 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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_fields Fields { get; set; } -#endif - /// Organization identifier - public int? Id { get; set; } - /// List of locations -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Locations { get; set; } -#nullable restore -#else - public List Locations { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Node role policy assignments -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Policies { get; set; } -#nullable restore -#else - public List Policies { get; set; } -#endif - /// Organization settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings? Settings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings Settings { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FourXXError() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FourXXError_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "locations", n => { Locations = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organization.Item.FourXXError_locations.CreateFromDiscriminatorValue)?.AsList(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "policies", n => { Policies = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organization.Item.FourXXError_policies.CreateFromDiscriminatorValue)?.AsList(); } }, - { "settings", n => { Settings = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings.CreateFromDiscriminatorValue); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FourXXError_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteCollectionOfObjectValues("locations", Locations); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfObjectValues("policies", Policies); - writer.WriteObjectValue("settings", Settings); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError_fields.cs b/V2/Organization/Item/FourXXError_fields.cs deleted file mode 100644 index 7b2d89a..0000000 --- a/V2/Organization/Item/FourXXError_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FourXXError_fields : 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. - /// - public FourXXError_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError_locations.cs b/V2/Organization/Item/FourXXError_locations.cs deleted file mode 100644 index d55657d..0000000 --- a/V2/Organization/Item/FourXXError_locations.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FourXXError_locations : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_locations_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_locations_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_locations_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_locations_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FourXXError_locations() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError_locations CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError_locations(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FourXXError_locations_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FourXXError_locations_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError_locations_fields.cs b/V2/Organization/Item/FourXXError_locations_fields.cs deleted file mode 100644 index f32bf31..0000000 --- a/V2/Organization/Item/FourXXError_locations_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FourXXError_locations_fields : 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. - /// - public FourXXError_locations_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError_locations_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError_locations_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError_locations_userData.cs b/V2/Organization/Item/FourXXError_locations_userData.cs deleted file mode 100644 index 104ae20..0000000 --- a/V2/Organization/Item/FourXXError_locations_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FourXXError_locations_userData : 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. - /// - public FourXXError_locations_userData() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError_locations_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError_locations_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError_nodeApprovalMode.cs b/V2/Organization/Item/FourXXError_nodeApprovalMode.cs deleted file mode 100644 index c856523..0000000 --- a/V2/Organization/Item/FourXXError_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum FourXXError_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/Item/FourXXError_policies.cs b/V2/Organization/Item/FourXXError_policies.cs deleted file mode 100644 index 2b2af90..0000000 --- a/V2/Organization/Item/FourXXError_policies.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Node role policy assignments - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FourXXError_policies : 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; } - /// Node Role Identifier - public int? NodeRoleId { get; set; } - /// Policy Identifier - public int? PolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public FourXXError_policies() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError_policies CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError_policies(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError_settings.cs b/V2/Organization/Item/FourXXError_settings.cs deleted file mode 100644 index f3a5ef2..0000000 --- a/V2/Organization/Item/FourXXError_settings.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Organization settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FourXXError_settings : 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; } - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_backup? Backup { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_backup Backup { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_psa? Psa { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_psa Psa { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_splashtop? Splashtop { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_splashtop Splashtop { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_teamviewer? Teamviewer { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_teamviewer Teamviewer { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_trayicon? Trayicon { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_trayicon Trayicon { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FourXXError_settings() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError_settings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "backup", n => { Backup = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_backup.CreateFromDiscriminatorValue); } }, - { "psa", n => { Psa = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_psa.CreateFromDiscriminatorValue); } }, - { "splashtop", n => { Splashtop = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_splashtop.CreateFromDiscriminatorValue); } }, - { "teamviewer", n => { Teamviewer = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_teamviewer.CreateFromDiscriminatorValue); } }, - { "trayicon", n => { Trayicon = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_trayicon.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("backup", Backup); - writer.WriteObjectValue("psa", Psa); - writer.WriteObjectValue("splashtop", Splashtop); - writer.WriteObjectValue("teamviewer", Teamviewer); - writer.WriteObjectValue("trayicon", Trayicon); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError_settings_backup.cs b/V2/Organization/Item/FourXXError_settings_backup.cs deleted file mode 100644 index a2bb97d..0000000 --- a/V2/Organization/Item/FourXXError_settings_backup.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FourXXError_settings_backup : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_backup_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_backup_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FourXXError_settings_backup() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_backup CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_backup(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_backup_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError_settings_backup_options.cs b/V2/Organization/Item/FourXXError_settings_backup_options.cs deleted file mode 100644 index 4c7a614..0000000 --- a/V2/Organization/Item/FourXXError_settings_backup_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FourXXError_settings_backup_options : 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. - /// - public FourXXError_settings_backup_options() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_backup_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_backup_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError_settings_psa.cs b/V2/Organization/Item/FourXXError_settings_psa.cs deleted file mode 100644 index 970f4bc..0000000 --- a/V2/Organization/Item/FourXXError_settings_psa.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FourXXError_settings_psa : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_psa_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_psa_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FourXXError_settings_psa() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_psa CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_psa(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_psa_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError_settings_psa_options.cs b/V2/Organization/Item/FourXXError_settings_psa_options.cs deleted file mode 100644 index 0131c61..0000000 --- a/V2/Organization/Item/FourXXError_settings_psa_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FourXXError_settings_psa_options : 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. - /// - public FourXXError_settings_psa_options() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_psa_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_psa_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError_settings_splashtop.cs b/V2/Organization/Item/FourXXError_settings_splashtop.cs deleted file mode 100644 index 0e965ab..0000000 --- a/V2/Organization/Item/FourXXError_settings_splashtop.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FourXXError_settings_splashtop : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_splashtop_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_splashtop_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FourXXError_settings_splashtop() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_splashtop CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_splashtop(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_splashtop_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError_settings_splashtop_options.cs b/V2/Organization/Item/FourXXError_settings_splashtop_options.cs deleted file mode 100644 index 0d535d8..0000000 --- a/V2/Organization/Item/FourXXError_settings_splashtop_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FourXXError_settings_splashtop_options : 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. - /// - public FourXXError_settings_splashtop_options() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_splashtop_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_splashtop_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError_settings_teamviewer.cs b/V2/Organization/Item/FourXXError_settings_teamviewer.cs deleted file mode 100644 index aae4ad2..0000000 --- a/V2/Organization/Item/FourXXError_settings_teamviewer.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FourXXError_settings_teamviewer : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_teamviewer_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_teamviewer_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FourXXError_settings_teamviewer() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_teamviewer CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_teamviewer(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_teamviewer_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError_settings_teamviewer_options.cs b/V2/Organization/Item/FourXXError_settings_teamviewer_options.cs deleted file mode 100644 index 2d6f5a6..0000000 --- a/V2/Organization/Item/FourXXError_settings_teamviewer_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FourXXError_settings_teamviewer_options : 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. - /// - public FourXXError_settings_teamviewer_options() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_teamviewer_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_teamviewer_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError_settings_trayicon.cs b/V2/Organization/Item/FourXXError_settings_trayicon.cs deleted file mode 100644 index b0585c8..0000000 --- a/V2/Organization/Item/FourXXError_settings_trayicon.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FourXXError_settings_trayicon : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_trayicon_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_trayicon_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FourXXError_settings_trayicon() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_trayicon CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_trayicon(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_trayicon_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError_settings_trayicon_options.cs b/V2/Organization/Item/FourXXError_settings_trayicon_options.cs deleted file mode 100644 index 4a5b88a..0000000 --- a/V2/Organization/Item/FourXXError_settings_trayicon_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FourXXError_settings_trayicon_options : 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. - /// - public FourXXError_settings_trayicon_options() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_trayicon_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError_settings_trayicon_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/FourXXError_userData.cs b/V2/Organization/Item/FourXXError_userData.cs deleted file mode 100644 index f9a96a5..0000000 --- a/V2/Organization/Item/FourXXError_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class FourXXError_userData : 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. - /// - public FourXXError_userData() - { - 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::NinjaOne.Client.V2.Organization.Item.FourXXError_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.FourXXError_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/ItemRequestBuilder.cs b/V2/Organization/Item/ItemRequestBuilder.cs deleted file mode 100644 index 7ffe8cb..0000000 --- a/V2/Organization/Item/ItemRequestBuilder.cs +++ /dev/null @@ -1,207 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates; -using NinjaOne.Client.V2.Organization.Item.CustomFields; -using NinjaOne.Client.V2.Organization.Item.Devices; -using NinjaOne.Client.V2.Organization.Item.Document; -using NinjaOne.Client.V2.Organization.Item.Documents; -using NinjaOne.Client.V2.Organization.Item.EndUsers; -using NinjaOne.Client.V2.Organization.Item.Location; -using NinjaOne.Client.V2.Organization.Item.Locations; -using NinjaOne.Client.V2.Organization.Item.Policies; -using NinjaOne.Client.V2.Organization.Item.Template; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ItemRequestBuilder : BaseRequestBuilder - { - /// The checklistsFromTemplates property - public global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplatesRequestBuilder ChecklistsFromTemplates - { - get => new global::NinjaOne.Client.V2.Organization.Item.ChecklistsFromTemplates.ChecklistsFromTemplatesRequestBuilder(PathParameters, RequestAdapter); - } - /// The customFields property - public global::NinjaOne.Client.V2.Organization.Item.CustomFields.CustomFieldsRequestBuilder CustomFields - { - get => new global::NinjaOne.Client.V2.Organization.Item.CustomFields.CustomFieldsRequestBuilder(PathParameters, RequestAdapter); - } - /// The devices property - public global::NinjaOne.Client.V2.Organization.Item.Devices.DevicesRequestBuilder Devices - { - get => new global::NinjaOne.Client.V2.Organization.Item.Devices.DevicesRequestBuilder(PathParameters, RequestAdapter); - } - /// The document property - public global::NinjaOne.Client.V2.Organization.Item.Document.DocumentRequestBuilder Document - { - get => new global::NinjaOne.Client.V2.Organization.Item.Document.DocumentRequestBuilder(PathParameters, RequestAdapter); - } - /// The documents property - public global::NinjaOne.Client.V2.Organization.Item.Documents.DocumentsRequestBuilder Documents - { - get => new global::NinjaOne.Client.V2.Organization.Item.Documents.DocumentsRequestBuilder(PathParameters, RequestAdapter); - } - /// The endUsers property - public global::NinjaOne.Client.V2.Organization.Item.EndUsers.EndUsersRequestBuilder EndUsers - { - get => new global::NinjaOne.Client.V2.Organization.Item.EndUsers.EndUsersRequestBuilder(PathParameters, RequestAdapter); - } - /// The location property - public global::NinjaOne.Client.V2.Organization.Item.Location.LocationRequestBuilder Location - { - get => new global::NinjaOne.Client.V2.Organization.Item.Location.LocationRequestBuilder(PathParameters, RequestAdapter); - } - /// The locations property - public global::NinjaOne.Client.V2.Organization.Item.Locations.LocationsRequestBuilder Locations - { - get => new global::NinjaOne.Client.V2.Organization.Item.Locations.LocationsRequestBuilder(PathParameters, RequestAdapter); - } - /// The policies property - public global::NinjaOne.Client.V2.Organization.Item.Policies.PoliciesRequestBuilder Policies - { - get => new global::NinjaOne.Client.V2.Organization.Item.Policies.PoliciesRequestBuilder(PathParameters, RequestAdapter); - } - /// The template property - public global::NinjaOne.Client.V2.Organization.Item.Template.TemplateRequestBuilder Template - { - get => new global::NinjaOne.Client.V2.Organization.Item.Template.TemplateRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}", rawUrl) - { - } - /// - /// Returns organization details (policy mappings, locations) - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Organization.Item.FourXXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Organization.Item.FiveXXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Change organization name, description and policy mappings - /// - /// A - /// The request body - /// 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 PatchAsync(global::NinjaOne.Client.V2.Organization.Item.PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::NinjaOne.Client.V2.Organization.Item.PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns organization details (policy mappings, locations) - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Change organization name, description and policy mappings - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Organization.Item.PatchRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Organization.Item.PatchRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Item.ItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Item.ItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ItemRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Location/Item/CustomFields/CustomFields4XXError.cs b/V2/Organization/Item/Location/Item/CustomFields/CustomFields4XXError.cs deleted file mode 100644 index 2e78769..0000000 --- a/V2/Organization/Item/Location/Item/CustomFields/CustomFields4XXError.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFields4XXError : 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 primary error message. - public override string Message { get => base.Message; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields4XXError() - { - 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::NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields.CustomFields4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields.CustomFields4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Location/Item/CustomFields/CustomFields5XXError.cs b/V2/Organization/Item/Location/Item/CustomFields/CustomFields5XXError.cs deleted file mode 100644 index 8adfb80..0000000 --- a/V2/Organization/Item/Location/Item/CustomFields/CustomFields5XXError.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFields5XXError : 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 primary error message. - public override string Message { get => base.Message; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields5XXError() - { - 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::NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields.CustomFields5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields.CustomFields5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Location/Item/CustomFields/CustomFieldsPatchRequestBody.cs b/V2/Organization/Item/Location/Item/CustomFields/CustomFieldsPatchRequestBody.cs deleted file mode 100644 index 60ae092..0000000 --- a/V2/Organization/Item/Location/Item/CustomFields/CustomFieldsPatchRequestBody.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFieldsPatchRequestBody : 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. - /// - public CustomFieldsPatchRequestBody() - { - 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::NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields.CustomFieldsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields.CustomFieldsPatchRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Location/Item/CustomFields/CustomFieldsRequestBuilder.cs b/V2/Organization/Item/Location/Item/CustomFields/CustomFieldsRequestBuilder.cs deleted file mode 100644 index 101ad00..0000000 --- a/V2/Organization/Item/Location/Item/CustomFields/CustomFieldsRequestBuilder.cs +++ /dev/null @@ -1,157 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\location\{location-id}\custom-fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public CustomFieldsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/location/{location%2Did}/custom-fields{?withInheritance*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public CustomFieldsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/location/{location%2Did}/custom-fields{?withInheritance*}", rawUrl) - { - } - /// - /// Returns list of location custom fields - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields.CustomFields4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields.CustomFields5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Update location custom field values - /// - /// A - /// The request body - /// 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 PatchAsync(global::NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields.CustomFieldsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields.CustomFieldsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of location custom fields - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Update location custom field values - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields.CustomFieldsPatchRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields.CustomFieldsPatchRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields.CustomFieldsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields.CustomFieldsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of location custom fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilderGetQueryParameters - { - /// Retrieve values using definition scope hierarchy - [QueryParameter("withInheritance")] - public bool? WithInheritance { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Location/Item/Installer/InstallerRequestBuilder.cs b/V2/Organization/Item/Location/Item/Installer/InstallerRequestBuilder.cs deleted file mode 100644 index 85da368..0000000 --- a/V2/Organization/Item/Location/Item/Installer/InstallerRequestBuilder.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Organization.Item.Location.Item.Installer.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Location.Item.Installer -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\location\{location-id}\installer - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class InstallerRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.organization.item.location.item.installer.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Organization.Item.Location.Item.Installer.Item.WithInstaller_typeItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("installer_type", position); - return new global::NinjaOne.Client.V2.Organization.Item.Location.Item.Installer.Item.WithInstaller_typeItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public InstallerRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/location/{location%2Did}/installer", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public InstallerRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/location/{location%2Did}/installer", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Location/Item/Installer/Item/WithInstaller_type4XXError.cs b/V2/Organization/Item/Location/Item/Installer/Item/WithInstaller_type4XXError.cs deleted file mode 100644 index 08aaca0..0000000 --- a/V2/Organization/Item/Location/Item/Installer/Item/WithInstaller_type4XXError.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Location.Item.Installer.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithInstaller_type4XXError : 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 primary error message. - public override string Message { get => base.Message; } - /// URL -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Url { get; set; } -#nullable restore -#else - public string Url { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithInstaller_type4XXError() - { - 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::NinjaOne.Client.V2.Organization.Item.Location.Item.Installer.Item.WithInstaller_type4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Location.Item.Installer.Item.WithInstaller_type4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "url", n => { Url = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("url", Url); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Location/Item/Installer/Item/WithInstaller_type5XXError.cs b/V2/Organization/Item/Location/Item/Installer/Item/WithInstaller_type5XXError.cs deleted file mode 100644 index 22cd2fb..0000000 --- a/V2/Organization/Item/Location/Item/Installer/Item/WithInstaller_type5XXError.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Location.Item.Installer.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithInstaller_type5XXError : 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 primary error message. - public override string Message { get => base.Message; } - /// URL -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Url { get; set; } -#nullable restore -#else - public string Url { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithInstaller_type5XXError() - { - 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::NinjaOne.Client.V2.Organization.Item.Location.Item.Installer.Item.WithInstaller_type5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Location.Item.Installer.Item.WithInstaller_type5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "url", n => { Url = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("url", Url); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Location/Item/Installer/Item/WithInstaller_typeItemRequestBuilder.cs b/V2/Organization/Item/Location/Item/Installer/Item/WithInstaller_typeItemRequestBuilder.cs deleted file mode 100644 index 0659b54..0000000 --- a/V2/Organization/Item/Location/Item/Installer/Item/WithInstaller_typeItemRequestBuilder.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Location.Item.Installer.Item -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\location\{location-id}\installer\{installer_type} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithInstaller_typeItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithInstaller_typeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/location/{location%2Did}/installer/{installer_type}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithInstaller_typeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/location/{location%2Did}/installer/{installer_type}", rawUrl) - { - } - /// - /// Generates and returns URL for installer for specified organization/location - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Organization.Item.Location.Item.Installer.Item.WithInstaller_type4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Organization.Item.Location.Item.Installer.Item.WithInstaller_type5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Generates and returns URL for installer for specified organization/location - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Item.Location.Item.Installer.Item.WithInstaller_typeItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Item.Location.Item.Installer.Item.WithInstaller_typeItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithInstaller_typeItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Location/Item/LocationItemRequestBuilder.cs b/V2/Organization/Item/Location/Item/LocationItemRequestBuilder.cs deleted file mode 100644 index 279fe1c..0000000 --- a/V2/Organization/Item/Location/Item/LocationItemRequestBuilder.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields; -using NinjaOne.Client.V2.Organization.Item.Location.Item.Installer; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Location.Item -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\location\{location-id} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LocationItemRequestBuilder : BaseRequestBuilder - { - /// The customFields property - public global::NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields.CustomFieldsRequestBuilder CustomFields - { - get => new global::NinjaOne.Client.V2.Organization.Item.Location.Item.CustomFields.CustomFieldsRequestBuilder(PathParameters, RequestAdapter); - } - /// The installer property - public global::NinjaOne.Client.V2.Organization.Item.Location.Item.Installer.InstallerRequestBuilder Installer - { - get => new global::NinjaOne.Client.V2.Organization.Item.Location.Item.Installer.InstallerRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public LocationItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/location/{location%2Did}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public LocationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/location/{location%2Did}", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Location/LocationRequestBuilder.cs b/V2/Organization/Item/Location/LocationRequestBuilder.cs deleted file mode 100644 index f2e86fc..0000000 --- a/V2/Organization/Item/Location/LocationRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Organization.Item.Location.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Location -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LocationRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.organization.item.location.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Organization.Item.Location.Item.LocationItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("location%2Did", position); - return new global::NinjaOne.Client.V2.Organization.Item.Location.Item.LocationItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.organization.item.location.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Organization.Item.Location.Item.LocationItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("location%2Did", position); - return new global::NinjaOne.Client.V2.Organization.Item.Location.Item.LocationItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public LocationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/location", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public LocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/location", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Item/WithLocation4XXError.cs b/V2/Organization/Item/Locations/Item/WithLocation4XXError.cs deleted file mode 100644 index 36e2e3c..0000000 --- a/V2/Organization/Item/Locations/Item/WithLocation4XXError.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations.Item -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithLocation4XXError : ApiException, 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation4XXError_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation4XXError_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation4XXError_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation4XXError_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithLocation4XXError() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation4XXError_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation4XXError_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Item/WithLocation4XXError_fields.cs b/V2/Organization/Item/Locations/Item/WithLocation4XXError_fields.cs deleted file mode 100644 index fda8a04..0000000 --- a/V2/Organization/Item/Locations/Item/WithLocation4XXError_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations.Item -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithLocation4XXError_fields : 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. - /// - public WithLocation4XXError_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation4XXError_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation4XXError_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Item/WithLocation4XXError_userData.cs b/V2/Organization/Item/Locations/Item/WithLocation4XXError_userData.cs deleted file mode 100644 index 57a6abc..0000000 --- a/V2/Organization/Item/Locations/Item/WithLocation4XXError_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations.Item -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithLocation4XXError_userData : 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. - /// - public WithLocation4XXError_userData() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation4XXError_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation4XXError_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Item/WithLocation5XXError.cs b/V2/Organization/Item/Locations/Item/WithLocation5XXError.cs deleted file mode 100644 index 444d18b..0000000 --- a/V2/Organization/Item/Locations/Item/WithLocation5XXError.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations.Item -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithLocation5XXError : ApiException, 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation5XXError_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation5XXError_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation5XXError_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation5XXError_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithLocation5XXError() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation5XXError_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation5XXError_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Item/WithLocation5XXError_fields.cs b/V2/Organization/Item/Locations/Item/WithLocation5XXError_fields.cs deleted file mode 100644 index e0b7c44..0000000 --- a/V2/Organization/Item/Locations/Item/WithLocation5XXError_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations.Item -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithLocation5XXError_fields : 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. - /// - public WithLocation5XXError_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation5XXError_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation5XXError_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Item/WithLocation5XXError_userData.cs b/V2/Organization/Item/Locations/Item/WithLocation5XXError_userData.cs deleted file mode 100644 index 00c310f..0000000 --- a/V2/Organization/Item/Locations/Item/WithLocation5XXError_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations.Item -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithLocation5XXError_userData : 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. - /// - public WithLocation5XXError_userData() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation5XXError_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation5XXError_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Item/WithLocationItemRequestBuilder.cs b/V2/Organization/Item/Locations/Item/WithLocationItemRequestBuilder.cs deleted file mode 100644 index 5fe78f8..0000000 --- a/V2/Organization/Item/Locations/Item/WithLocationItemRequestBuilder.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Organization.Item.Locations.Item.Backup; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations.Item -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\locations\{locationId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithLocationItemRequestBuilder : BaseRequestBuilder - { - /// The backup property - public global::NinjaOne.Client.V2.Organization.Item.Locations.Item.Backup.BackupRequestBuilder Backup - { - get => new global::NinjaOne.Client.V2.Organization.Item.Locations.Item.Backup.BackupRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithLocationItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/locations/{locationId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithLocationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/locations/{locationId}", rawUrl) - { - } - /// - /// Change location name, address, description, custom data - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PatchAsync(global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocation5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Change location name, address, description, custom data - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationPatchRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationPatchRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithLocationItemRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Item/WithLocationPatchRequestBody.cs b/V2/Organization/Item/Locations/Item/WithLocationPatchRequestBody.cs deleted file mode 100644 index d2cf8a2..0000000 --- a/V2/Organization/Item/Locations/Item/WithLocationPatchRequestBody.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLocationPatchRequestBody : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationPatchRequestBody_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationPatchRequestBody_fields Fields { get; set; } -#endif - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationPatchRequestBody_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationPatchRequestBody_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithLocationPatchRequestBody() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationPatchRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationPatchRequestBody_fields.CreateFromDiscriminatorValue); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationPatchRequestBody_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Item/WithLocationPatchRequestBody_fields.cs b/V2/Organization/Item/Locations/Item/WithLocationPatchRequestBody_fields.cs deleted file mode 100644 index d09cf49..0000000 --- a/V2/Organization/Item/Locations/Item/WithLocationPatchRequestBody_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations.Item -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithLocationPatchRequestBody_fields : 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. - /// - public WithLocationPatchRequestBody_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationPatchRequestBody_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationPatchRequestBody_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Item/WithLocationPatchRequestBody_userData.cs b/V2/Organization/Item/Locations/Item/WithLocationPatchRequestBody_userData.cs deleted file mode 100644 index b1a3cac..0000000 --- a/V2/Organization/Item/Locations/Item/WithLocationPatchRequestBody_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations.Item -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithLocationPatchRequestBody_userData : 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. - /// - public WithLocationPatchRequestBody_userData() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationPatchRequestBody_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationPatchRequestBody_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Locations.cs b/V2/Organization/Item/Locations/Locations.cs deleted file mode 100644 index 6e8cd11..0000000 --- a/V2/Organization/Item/Locations/Locations.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Locations : ApiException, 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Locations.Locations_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Locations.Locations_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Locations.Locations_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Locations.Locations_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Locations() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Locations CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Locations(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Locations.Locations_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Locations.Locations_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Locations4XXError.cs b/V2/Organization/Item/Locations/Locations4XXError.cs deleted file mode 100644 index f205ca3..0000000 --- a/V2/Organization/Item/Locations/Locations4XXError.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Locations4XXError : ApiException, 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Locations.Locations4XXError_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Locations.Locations4XXError_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Locations.Locations4XXError_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Locations.Locations4XXError_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Locations4XXError() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Locations4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Locations4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Locations.Locations4XXError_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Locations.Locations4XXError_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Locations4XXError_fields.cs b/V2/Organization/Item/Locations/Locations4XXError_fields.cs deleted file mode 100644 index ee61841..0000000 --- a/V2/Organization/Item/Locations/Locations4XXError_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Locations4XXError_fields : 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. - /// - public Locations4XXError_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Locations4XXError_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Locations4XXError_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Locations4XXError_userData.cs b/V2/Organization/Item/Locations/Locations4XXError_userData.cs deleted file mode 100644 index af7b594..0000000 --- a/V2/Organization/Item/Locations/Locations4XXError_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Locations4XXError_userData : 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. - /// - public Locations4XXError_userData() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Locations4XXError_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Locations4XXError_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Locations5XXError.cs b/V2/Organization/Item/Locations/Locations5XXError.cs deleted file mode 100644 index 4c53dc1..0000000 --- a/V2/Organization/Item/Locations/Locations5XXError.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Locations5XXError : ApiException, 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Locations.Locations5XXError_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Locations.Locations5XXError_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Locations.Locations5XXError_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Locations.Locations5XXError_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Locations5XXError() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Locations5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Locations5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Locations.Locations5XXError_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Locations.Locations5XXError_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Locations5XXError_fields.cs b/V2/Organization/Item/Locations/Locations5XXError_fields.cs deleted file mode 100644 index 15c5706..0000000 --- a/V2/Organization/Item/Locations/Locations5XXError_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Locations5XXError_fields : 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. - /// - public Locations5XXError_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Locations5XXError_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Locations5XXError_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Locations5XXError_userData.cs b/V2/Organization/Item/Locations/Locations5XXError_userData.cs deleted file mode 100644 index 0b788fb..0000000 --- a/V2/Organization/Item/Locations/Locations5XXError_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Locations5XXError_userData : 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. - /// - public Locations5XXError_userData() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Locations5XXError_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Locations5XXError_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/LocationsPostRequestBody.cs b/V2/Organization/Item/Locations/LocationsPostRequestBody.cs deleted file mode 100644 index 2bdf152..0000000 --- a/V2/Organization/Item/Locations/LocationsPostRequestBody.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LocationsPostRequestBody : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Locations.LocationsPostRequestBody_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Locations.LocationsPostRequestBody_fields Fields { get; set; } -#endif - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Locations.LocationsPostRequestBody_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Locations.LocationsPostRequestBody_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public LocationsPostRequestBody() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.LocationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.LocationsPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Locations.LocationsPostRequestBody_fields.CreateFromDiscriminatorValue); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Locations.LocationsPostRequestBody_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/LocationsPostRequestBody_fields.cs b/V2/Organization/Item/Locations/LocationsPostRequestBody_fields.cs deleted file mode 100644 index ef587c9..0000000 --- a/V2/Organization/Item/Locations/LocationsPostRequestBody_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LocationsPostRequestBody_fields : 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. - /// - public LocationsPostRequestBody_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.LocationsPostRequestBody_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.LocationsPostRequestBody_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/LocationsPostRequestBody_userData.cs b/V2/Organization/Item/Locations/LocationsPostRequestBody_userData.cs deleted file mode 100644 index 2c73320..0000000 --- a/V2/Organization/Item/Locations/LocationsPostRequestBody_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LocationsPostRequestBody_userData : 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. - /// - public LocationsPostRequestBody_userData() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.LocationsPostRequestBody_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.LocationsPostRequestBody_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/LocationsRequestBuilder.cs b/V2/Organization/Item/Locations/LocationsRequestBuilder.cs deleted file mode 100644 index 82eae4e..0000000 --- a/V2/Organization/Item/Locations/LocationsRequestBuilder.cs +++ /dev/null @@ -1,185 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Organization.Item.Locations.Backup; -using NinjaOne.Client.V2.Organization.Item.Locations.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\locations - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LocationsRequestBuilder : BaseRequestBuilder - { - /// The backup property - public global::NinjaOne.Client.V2.Organization.Item.Locations.Backup.BackupRequestBuilder Backup - { - get => new global::NinjaOne.Client.V2.Organization.Item.Locations.Backup.BackupRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the NinjaOne.Client.v2.organization.item.locations.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("locationId", position); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.organization.item.locations.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("locationId", position); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Item.WithLocationItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public LocationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/locations", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public LocationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/locations", rawUrl) - { - } - /// - /// Returns list of locations for organization - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Organization.Item.Locations.Locations.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Creates new location for organization - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.Organization.Item.Locations.LocationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Organization.Item.Locations.LocationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Organization.Item.Locations.Locations4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Organization.Item.Locations.Locations5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of locations for organization - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Creates new location for organization - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Organization.Item.Locations.LocationsPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Organization.Item.Locations.LocationsPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Item.Locations.LocationsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Item.Locations.LocationsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LocationsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LocationsRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Locations_fields.cs b/V2/Organization/Item/Locations/Locations_fields.cs deleted file mode 100644 index 9f42a17..0000000 --- a/V2/Organization/Item/Locations/Locations_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Locations_fields : 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. - /// - public Locations_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Locations_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Locations_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Locations/Locations_userData.cs b/V2/Organization/Item/Locations/Locations_userData.cs deleted file mode 100644 index 9315d3a..0000000 --- a/V2/Organization/Item/Locations/Locations_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Locations -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Locations_userData : 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. - /// - public Locations_userData() - { - 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::NinjaOne.Client.V2.Organization.Item.Locations.Locations_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Locations.Locations_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/PatchRequestBody.cs b/V2/Organization/Item/PatchRequestBody.cs deleted file mode 100644 index dce6156..0000000 --- a/V2/Organization/Item/PatchRequestBody.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class 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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.PatchRequestBody_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.PatchRequestBody_fields Fields { get; set; } -#endif - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.Organization.Item.PatchRequestBody_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.PatchRequestBody_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.PatchRequestBody_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public PatchRequestBody() - { - 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::NinjaOne.Client.V2.Organization.Item.PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.PatchRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.PatchRequestBody_fields.CreateFromDiscriminatorValue); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.PatchRequestBody_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/PatchRequestBody_fields.cs b/V2/Organization/Item/PatchRequestBody_fields.cs deleted file mode 100644 index 5a66080..0000000 --- a/V2/Organization/Item/PatchRequestBody_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class PatchRequestBody_fields : 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. - /// - public PatchRequestBody_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.PatchRequestBody_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.PatchRequestBody_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/PatchRequestBody_nodeApprovalMode.cs b/V2/Organization/Item/PatchRequestBody_nodeApprovalMode.cs deleted file mode 100644 index 3e9cc1c..0000000 --- a/V2/Organization/Item/PatchRequestBody_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum PatchRequestBody_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organization/Item/PatchRequestBody_userData.cs b/V2/Organization/Item/PatchRequestBody_userData.cs deleted file mode 100644 index 3dd60a5..0000000 --- a/V2/Organization/Item/PatchRequestBody_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class PatchRequestBody_userData : 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. - /// - public PatchRequestBody_userData() - { - 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::NinjaOne.Client.V2.Organization.Item.PatchRequestBody_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.PatchRequestBody_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Policies/Policies.cs b/V2/Organization/Item/Policies/Policies.cs deleted file mode 100644 index 2de46fc..0000000 --- a/V2/Organization/Item/Policies/Policies.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Policies -{ - /// - /// Node role policy assignments - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Policies : 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; } - /// Node Role Identifier - public int? NodeRoleId { get; set; } - /// Policy Identifier - public int? PolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Policies() - { - 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::NinjaOne.Client.V2.Organization.Item.Policies.Policies CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Policies.Policies(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Policies/PoliciesRequestBuilder.cs b/V2/Organization/Item/Policies/PoliciesRequestBuilder.cs deleted file mode 100644 index b52c18b..0000000 --- a/V2/Organization/Item/Policies/PoliciesRequestBuilder.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Policies -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\policies - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class PoliciesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public PoliciesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/policies", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public PoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/policies", rawUrl) - { - } - /// - /// Update policy assignment for node role(s). Returns list of affected device IDs - /// - /// A - /// The request body - /// 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 PutAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PutAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Update policy assignment for node role(s). Returns list of affected device IDs - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Item.Policies.PoliciesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Item.Policies.PoliciesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class PoliciesRequestBuilderPutRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Template/Item/Document/DocumentPostRequestBody.cs b/V2/Organization/Item/Template/Item/Document/DocumentPostRequestBody.cs deleted file mode 100644 index c86e08f..0000000 --- a/V2/Organization/Item/Template/Item/Document/DocumentPostRequestBody.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Template.Item.Document -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentPostRequestBody : 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; } - /// Document Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentDescription { get; set; } -#nullable restore -#else - public string DocumentDescription { get; set; } -#endif - /// Document Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentName { get; set; } -#nullable restore -#else - public string DocumentName { get; set; } -#endif - /// Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostRequestBody_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostRequestBody_fields Fields { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DocumentPostRequestBody() - { - 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::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "documentDescription", n => { DocumentDescription = n.GetStringValue(); } }, - { "documentName", n => { DocumentName = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostRequestBody_fields.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("documentDescription", DocumentDescription); - writer.WriteStringValue("documentName", DocumentName); - writer.WriteObjectValue("fields", Fields); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Template/Item/Document/DocumentPostRequestBody_fields.cs b/V2/Organization/Item/Template/Item/Document/DocumentPostRequestBody_fields.cs deleted file mode 100644 index cce81b2..0000000 --- a/V2/Organization/Item/Template/Item/Document/DocumentPostRequestBody_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Template.Item.Document -{ - /// - /// Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentPostRequestBody_fields : 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. - /// - public DocumentPostRequestBody_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostRequestBody_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostRequestBody_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Template/Item/Document/DocumentPostResponse.cs b/V2/Organization/Item/Template/Item/Document/DocumentPostResponse.cs deleted file mode 100644 index 6855805..0000000 --- a/V2/Organization/Item/Template/Item/Document/DocumentPostResponse.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Template.Item.Document -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentPostResponse : 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; } - /// Document Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentDescription { get; set; } -#nullable restore -#else - public string DocumentDescription { get; set; } -#endif - /// Document Identifier - public int? DocumentId { get; set; } - /// Document Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentName { get; set; } -#nullable restore -#else - public string DocumentName { get; set; } -#endif - /// Document Template Identifier - public int? DocumentTemplateId { get; set; } - /// Document Template Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DocumentTemplateName { get; set; } -#nullable restore -#else - public string DocumentTemplateName { get; set; } -#endif - /// Document Last Updated - public double? DocumentUpdateTime { get; set; } - /// Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// Organization Identifier - public int? OrganizationId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentPostResponse() - { - 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::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "documentDescription", n => { DocumentDescription = n.GetStringValue(); } }, - { "documentId", n => { DocumentId = n.GetIntValue(); } }, - { "documentName", n => { DocumentName = n.GetStringValue(); } }, - { "documentTemplateId", n => { DocumentTemplateId = n.GetIntValue(); } }, - { "documentTemplateName", n => { DocumentTemplateName = n.GetStringValue(); } }, - { "documentUpdateTime", n => { DocumentUpdateTime = n.GetDoubleValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostResponse_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("documentDescription", DocumentDescription); - writer.WriteIntValue("documentId", DocumentId); - writer.WriteStringValue("documentName", DocumentName); - writer.WriteIntValue("documentTemplateId", DocumentTemplateId); - writer.WriteStringValue("documentTemplateName", DocumentTemplateName); - writer.WriteDoubleValue("documentUpdateTime", DocumentUpdateTime); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Template/Item/Document/DocumentPostResponse_fields.cs b/V2/Organization/Item/Template/Item/Document/DocumentPostResponse_fields.cs deleted file mode 100644 index 5757b2f..0000000 --- a/V2/Organization/Item/Template/Item/Document/DocumentPostResponse_fields.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Template.Item.Document -{ - /// - /// Updated Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentPostResponse_fields : 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; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostResponse_fields_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostResponse_fields_value Value { get; set; } -#endif - /// Value Last Updated - public double? ValueUpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DocumentPostResponse_fields() - { - 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::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostResponse_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostResponse_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "name", n => { Name = n.GetStringValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostResponse_fields_value.CreateFromDiscriminatorValue); } }, - { "valueUpdateTime", n => { ValueUpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("name", Name); - writer.WriteObjectValue("value", Value); - writer.WriteDoubleValue("valueUpdateTime", ValueUpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Template/Item/Document/DocumentPostResponse_fields_value.cs b/V2/Organization/Item/Template/Item/Document/DocumentPostResponse_fields_value.cs deleted file mode 100644 index 8216570..0000000 --- a/V2/Organization/Item/Template/Item/Document/DocumentPostResponse_fields_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Template.Item.Document -{ - /// - /// Value - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentPostResponse_fields_value : 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. - /// - public DocumentPostResponse_fields_value() - { - 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::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostResponse_fields_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostResponse_fields_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Template/Item/Document/DocumentRequestBuilder.cs b/V2/Organization/Item/Template/Item/Document/DocumentRequestBuilder.cs deleted file mode 100644 index fc523aa..0000000 --- a/V2/Organization/Item/Template/Item/Document/DocumentRequestBuilder.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Template.Item.Document -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\template\{documentTemplateId}\document - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DocumentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/template/{documentTemplateId}/document", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DocumentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/template/{documentTemplateId}/document", rawUrl) - { - } - /// - /// Creates an organization document and returns the document created - /// - /// A - /// The request body - /// 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 PostAsDocumentPostResponseAsync(global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsDocumentPostResponseAsync(global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Creates an organization document and returns the document created - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsDocumentPostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Creates an organization document and returns the document created - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DocumentRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Template/Item/Document/DocumentResponse.cs b/V2/Organization/Item/Template/Item/Document/DocumentResponse.cs deleted file mode 100644 index 4e84831..0000000 --- a/V2/Organization/Item/Template/Item/Document/DocumentResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Template.Item.Document -{ - [Obsolete("This class is obsolete. Use DocumentPostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DocumentResponse : global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentPostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Template/Item/WithDocumentTemplateItemRequestBuilder.cs b/V2/Organization/Item/Template/Item/WithDocumentTemplateItemRequestBuilder.cs deleted file mode 100644 index 35e889b..0000000 --- a/V2/Organization/Item/Template/Item/WithDocumentTemplateItemRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Organization.Item.Template.Item.Document; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Template.Item -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\template\{documentTemplateId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithDocumentTemplateItemRequestBuilder : BaseRequestBuilder - { - /// The document property - public global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentRequestBuilder Document - { - get => new global::NinjaOne.Client.V2.Organization.Item.Template.Item.Document.DocumentRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithDocumentTemplateItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/template/{documentTemplateId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithDocumentTemplateItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/template/{documentTemplateId}", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Item/Template/TemplateRequestBuilder.cs b/V2/Organization/Item/Template/TemplateRequestBuilder.cs deleted file mode 100644 index 8bc22c6..0000000 --- a/V2/Organization/Item/Template/TemplateRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Organization.Item.Template.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Organization.Item.Template -{ - /// - /// Builds and executes requests for operations under \v2\organization\{-id}\template - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TemplateRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.organization.item.template.item collection - /// Document template identifier - /// A - public global::NinjaOne.Client.V2.Organization.Item.Template.Item.WithDocumentTemplateItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("documentTemplateId", position); - return new global::NinjaOne.Client.V2.Organization.Item.Template.Item.WithDocumentTemplateItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.organization.item.template.item collection - /// Document template identifier - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Organization.Item.Template.Item.WithDocumentTemplateItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("documentTemplateId", position); - return new global::NinjaOne.Client.V2.Organization.Item.Template.Item.WithDocumentTemplateItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public TemplateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/template", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TemplateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/{%2Did}/template", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/OrganizationRequestBuilder.cs b/V2/Organization/OrganizationRequestBuilder.cs deleted file mode 100644 index b3a8aed..0000000 --- a/V2/Organization/OrganizationRequestBuilder.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Organization.Archive; -using NinjaOne.Client.V2.Organization.Checklist; -using NinjaOne.Client.V2.Organization.Checklists; -using NinjaOne.Client.V2.Organization.Document; -using NinjaOne.Client.V2.Organization.Documents; -using NinjaOne.Client.V2.Organization.GenerateInstaller; -using NinjaOne.Client.V2.Organization.Item; -using NinjaOne.Client.V2.Organization.Restore; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Organization -{ - /// - /// Builds and executes requests for operations under \v2\organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationRequestBuilder : BaseRequestBuilder - { - /// The archive property - public global::NinjaOne.Client.V2.Organization.Archive.ArchiveRequestBuilder Archive - { - get => new global::NinjaOne.Client.V2.Organization.Archive.ArchiveRequestBuilder(PathParameters, RequestAdapter); - } - /// The checklist property - public global::NinjaOne.Client.V2.Organization.Checklist.ChecklistRequestBuilder Checklist - { - get => new global::NinjaOne.Client.V2.Organization.Checklist.ChecklistRequestBuilder(PathParameters, RequestAdapter); - } - /// The checklists property - public global::NinjaOne.Client.V2.Organization.Checklists.ChecklistsRequestBuilder Checklists - { - get => new global::NinjaOne.Client.V2.Organization.Checklists.ChecklistsRequestBuilder(PathParameters, RequestAdapter); - } - /// The document property - public global::NinjaOne.Client.V2.Organization.Document.DocumentRequestBuilder Document - { - get => new global::NinjaOne.Client.V2.Organization.Document.DocumentRequestBuilder(PathParameters, RequestAdapter); - } - /// The documents property - public global::NinjaOne.Client.V2.Organization.Documents.DocumentsRequestBuilder Documents - { - get => new global::NinjaOne.Client.V2.Organization.Documents.DocumentsRequestBuilder(PathParameters, RequestAdapter); - } - /// The generateInstaller property - public global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstallerRequestBuilder GenerateInstaller - { - get => new global::NinjaOne.Client.V2.Organization.GenerateInstaller.GenerateInstallerRequestBuilder(PathParameters, RequestAdapter); - } - /// The restore property - public global::NinjaOne.Client.V2.Organization.Restore.RestoreRequestBuilder Restore - { - get => new global::NinjaOne.Client.V2.Organization.Restore.RestoreRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the NinjaOne.Client.v2.organization.item collection - /// Organization identifier - /// A - public global::NinjaOne.Client.V2.Organization.Item.ItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("%2Did", position); - return new global::NinjaOne.Client.V2.Organization.Item.ItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.organization.item collection - /// Organization identifier - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Organization.Item.ItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("%2Did", position); - return new global::NinjaOne.Client.V2.Organization.Item.ItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OrganizationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OrganizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Restore/Restore.cs b/V2/Organization/Restore/Restore.cs deleted file mode 100644 index 82e5a79..0000000 --- a/V2/Organization/Restore/Restore.cs +++ /dev/null @@ -1,169 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Restore : 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; } - /// Indicates if the checklist is archived - public bool? Archived { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Restore.Restore_archivedBy? ArchivedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Restore.Restore_archivedBy ArchivedBy { get; set; } -#endif - /// Archive time - public double? ArchiveTime { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Restore.Restore_assignedTo? AssignedTo { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Restore.Restore_assignedTo AssignedTo { get; set; } -#endif - /// Client name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ClientName { get; set; } -#nullable restore -#else - public string ClientName { get; set; } -#endif - /// Indicates if the checklist is completed - public bool? Completed { get; set; } - /// Date of completion - public double? CompletedOn { get; set; } - /// Last updated by user - public int? CompletedTaskCount { get; set; } - /// Task description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Restore.Restore_description? Description { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Restore.Restore_description Description { get; set; } -#endif - /// Due date - public double? DueDate { get; set; } - /// Identifier - public int? Id { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Restore.Restore_lastUpdatedBy? LastUpdatedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Restore.Restore_lastUpdatedBy LastUpdatedBy { get; set; } -#endif - /// Last updated on - public double? LastUpdatedOn { get; set; } - /// Checklist name (must be unique) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// Indicates if the checklist completion is required - public bool? Required { get; set; } - /// Checklist's tasks -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tasks { get; set; } -#nullable restore -#else - public List Tasks { get; set; } -#endif - /// Checklist's total tasks count - public int? TotalTaskCount { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Restore() - { - 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::NinjaOne.Client.V2.Organization.Restore.Restore CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Restore.Restore(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "archiveTime", n => { ArchiveTime = n.GetDoubleValue(); } }, - { "archived", n => { Archived = n.GetBoolValue(); } }, - { "archivedBy", n => { ArchivedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Restore.Restore_archivedBy.CreateFromDiscriminatorValue); } }, - { "assignedTo", n => { AssignedTo = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Restore.Restore_assignedTo.CreateFromDiscriminatorValue); } }, - { "clientName", n => { ClientName = n.GetStringValue(); } }, - { "completed", n => { Completed = n.GetBoolValue(); } }, - { "completedOn", n => { CompletedOn = n.GetDoubleValue(); } }, - { "completedTaskCount", n => { CompletedTaskCount = n.GetIntValue(); } }, - { "description", n => { Description = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Restore.Restore_description.CreateFromDiscriminatorValue); } }, - { "dueDate", n => { DueDate = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastUpdatedBy", n => { LastUpdatedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Restore.Restore_lastUpdatedBy.CreateFromDiscriminatorValue); } }, - { "lastUpdatedOn", n => { LastUpdatedOn = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tasks", n => { Tasks = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organization.Restore.Restore_tasks.CreateFromDiscriminatorValue)?.AsList(); } }, - { "totalTaskCount", n => { TotalTaskCount = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("archived", Archived); - writer.WriteObjectValue("archivedBy", ArchivedBy); - writer.WriteDoubleValue("archiveTime", ArchiveTime); - writer.WriteObjectValue("assignedTo", AssignedTo); - writer.WriteStringValue("clientName", ClientName); - writer.WriteBoolValue("completed", Completed); - writer.WriteDoubleValue("completedOn", CompletedOn); - writer.WriteIntValue("completedTaskCount", CompletedTaskCount); - writer.WriteObjectValue("description", Description); - writer.WriteDoubleValue("dueDate", DueDate); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("lastUpdatedBy", LastUpdatedBy); - writer.WriteDoubleValue("lastUpdatedOn", LastUpdatedOn); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteBoolValue("required", Required); - writer.WriteCollectionOfObjectValues("tasks", Tasks); - writer.WriteIntValue("totalTaskCount", TotalTaskCount); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Restore/RestorePostRequestBody.cs b/V2/Organization/Restore/RestorePostRequestBody.cs deleted file mode 100644 index c449c3f..0000000 --- a/V2/Organization/Restore/RestorePostRequestBody.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Restore -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RestorePostRequestBody : 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 clientChecklistIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ClientChecklistIds { get; set; } -#nullable restore -#else - public List ClientChecklistIds { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RestorePostRequestBody() - { - 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::NinjaOne.Client.V2.Organization.Restore.RestorePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Restore.RestorePostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "clientChecklistIds", n => { ClientChecklistIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("clientChecklistIds", ClientChecklistIds); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Restore/RestoreRequestBuilder.cs b/V2/Organization/Restore/RestoreRequestBuilder.cs deleted file mode 100644 index b1c5a4c..0000000 --- a/V2/Organization/Restore/RestoreRequestBuilder.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organization.Restore -{ - /// - /// Builds and executes requests for operations under \v2\organization\restore - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestoreRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/restore", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organization/restore", rawUrl) - { - } - /// - /// Restore multiple organization checklists - /// - /// A List<global::NinjaOne.Client.V2.Organization.Restore.Restore> - /// The request body - /// 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?> PostAsync(global::NinjaOne.Client.V2.Organization.Restore.RestorePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PostAsync(global::NinjaOne.Client.V2.Organization.Restore.RestorePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Organization.Restore.Restore.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Restore multiple organization checklists - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Organization.Restore.RestorePostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Organization.Restore.RestorePostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organization.Restore.RestoreRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organization.Restore.RestoreRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RestoreRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Restore/Restore_archivedBy.cs b/V2/Organization/Restore/Restore_archivedBy.cs deleted file mode 100644 index 4e261d3..0000000 --- a/V2/Organization/Restore/Restore_archivedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Restore -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Restore_archivedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Restore_archivedBy() - { - 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::NinjaOne.Client.V2.Organization.Restore.Restore_archivedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Restore.Restore_archivedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Restore/Restore_assignedTo.cs b/V2/Organization/Restore/Restore_assignedTo.cs deleted file mode 100644 index c02caad..0000000 --- a/V2/Organization/Restore/Restore_assignedTo.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Restore -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Restore_assignedTo : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Restore_assignedTo() - { - 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::NinjaOne.Client.V2.Organization.Restore.Restore_assignedTo CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Restore.Restore_assignedTo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Restore/Restore_description.cs b/V2/Organization/Restore/Restore_description.cs deleted file mode 100644 index 53f4891..0000000 --- a/V2/Organization/Restore/Restore_description.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Restore -{ - /// - /// Task description - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Restore_description : 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; } - /// The html property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// The text property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Restore_description() - { - 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::NinjaOne.Client.V2.Organization.Restore.Restore_description CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Restore.Restore_description(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Restore/Restore_lastUpdatedBy.cs b/V2/Organization/Restore/Restore_lastUpdatedBy.cs deleted file mode 100644 index 96c8a1a..0000000 --- a/V2/Organization/Restore/Restore_lastUpdatedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Restore -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Restore_lastUpdatedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Restore_lastUpdatedBy() - { - 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::NinjaOne.Client.V2.Organization.Restore.Restore_lastUpdatedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Restore.Restore_lastUpdatedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Restore/Restore_tasks.cs b/V2/Organization/Restore/Restore_tasks.cs deleted file mode 100644 index 7861180..0000000 --- a/V2/Organization/Restore/Restore_tasks.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Restore -{ - /// - /// Checklist's tasks - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Restore_tasks : 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; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Restore.Restore_tasks_assignedTo? AssignedTo { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Restore.Restore_tasks_assignedTo AssignedTo { get; set; } -#endif - /// Indicates if the checklist is completed - public bool? Completed { get; set; } - /// Archive by user -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Restore.Restore_tasks_completedBy? CompletedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Restore.Restore_tasks_completedBy CompletedBy { get; set; } -#endif - /// Date of completion - public double? CompletedOn { get; set; } - /// Task description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organization.Restore.Restore_tasks_description? Description { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organization.Restore.Restore_tasks_description Description { get; set; } -#endif - /// Due date - public double? DueDate { get; set; } - /// Identifier - public int? Id { get; set; } - /// Task name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Position of the task - public int? Position { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Restore_tasks() - { - 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::NinjaOne.Client.V2.Organization.Restore.Restore_tasks CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Restore.Restore_tasks(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignedTo", n => { AssignedTo = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Restore.Restore_tasks_assignedTo.CreateFromDiscriminatorValue); } }, - { "completed", n => { Completed = n.GetBoolValue(); } }, - { "completedBy", n => { CompletedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Restore.Restore_tasks_completedBy.CreateFromDiscriminatorValue); } }, - { "completedOn", n => { CompletedOn = n.GetDoubleValue(); } }, - { "description", n => { Description = n.GetObjectValue(global::NinjaOne.Client.V2.Organization.Restore.Restore_tasks_description.CreateFromDiscriminatorValue); } }, - { "dueDate", n => { DueDate = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "position", n => { Position = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assignedTo", AssignedTo); - writer.WriteBoolValue("completed", Completed); - writer.WriteObjectValue("completedBy", CompletedBy); - writer.WriteDoubleValue("completedOn", CompletedOn); - writer.WriteObjectValue("description", Description); - writer.WriteDoubleValue("dueDate", DueDate); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("position", Position); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Restore/Restore_tasks_assignedTo.cs b/V2/Organization/Restore/Restore_tasks_assignedTo.cs deleted file mode 100644 index 7d0bdd5..0000000 --- a/V2/Organization/Restore/Restore_tasks_assignedTo.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Restore -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Restore_tasks_assignedTo : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Restore_tasks_assignedTo() - { - 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::NinjaOne.Client.V2.Organization.Restore.Restore_tasks_assignedTo CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Restore.Restore_tasks_assignedTo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Restore/Restore_tasks_completedBy.cs b/V2/Organization/Restore/Restore_tasks_completedBy.cs deleted file mode 100644 index dcd47fb..0000000 --- a/V2/Organization/Restore/Restore_tasks_completedBy.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Restore -{ - /// - /// Archive by user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Restore_tasks_completedBy : 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; } - /// The deleted property - public bool? Deleted { get; set; } - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Restore_tasks_completedBy() - { - 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::NinjaOne.Client.V2.Organization.Restore.Restore_tasks_completedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Restore.Restore_tasks_completedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organization/Restore/Restore_tasks_description.cs b/V2/Organization/Restore/Restore_tasks_description.cs deleted file mode 100644 index 188b422..0000000 --- a/V2/Organization/Restore/Restore_tasks_description.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organization.Restore -{ - /// - /// Task description - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Restore_tasks_description : 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; } - /// The html property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Html { get; set; } -#nullable restore -#else - public string Html { get; set; } -#endif - /// The text property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Text { get; set; } -#nullable restore -#else - public string Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Restore_tasks_description() - { - 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::NinjaOne.Client.V2.Organization.Restore.Restore_tasks_description CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organization.Restore.Restore_tasks_description(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "html", n => { Html = n.GetStringValue(); } }, - { "text", n => { Text = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("html", Html); - writer.WriteStringValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations.cs b/V2/Organizations/Organizations.cs deleted file mode 100644 index 7dce025..0000000 --- a/V2/Organizations/Organizations.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations : ApiException, 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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations_fields Fields { get; set; } -#endif - /// Organization identifier - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.Organizations.Organizations_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Organizations() - { - 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::NinjaOne.Client.V2.Organizations.Organizations CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError.cs b/V2/Organizations/Organizations4XXError.cs deleted file mode 100644 index ae3e478..0000000 --- a/V2/Organizations/Organizations4XXError.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Organizations4XXError : 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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_fields Fields { get; set; } -#endif - /// Organization identifier - public int? Id { get; set; } - /// List of locations -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Locations { get; set; } -#nullable restore -#else - public List Locations { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Node role policy assignments -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Policies { get; set; } -#nullable restore -#else - public List Policies { get; set; } -#endif - /// Organization settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings? Settings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings Settings { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Organizations4XXError() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations4XXError_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "locations", n => { Locations = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organizations.Organizations4XXError_locations.CreateFromDiscriminatorValue)?.AsList(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "policies", n => { Policies = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organizations.Organizations4XXError_policies.CreateFromDiscriminatorValue)?.AsList(); } }, - { "settings", n => { Settings = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings.CreateFromDiscriminatorValue); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations4XXError_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteCollectionOfObjectValues("locations", Locations); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfObjectValues("policies", Policies); - writer.WriteObjectValue("settings", Settings); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError_fields.cs b/V2/Organizations/Organizations4XXError_fields.cs deleted file mode 100644 index 495c3a6..0000000 --- a/V2/Organizations/Organizations4XXError_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations4XXError_fields : 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. - /// - public Organizations4XXError_fields() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError_locations.cs b/V2/Organizations/Organizations4XXError_locations.cs deleted file mode 100644 index c42ba70..0000000 --- a/V2/Organizations/Organizations4XXError_locations.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations4XXError_locations : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_locations_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_locations_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_locations_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_locations_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Organizations4XXError_locations() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError_locations CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError_locations(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations4XXError_locations_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations4XXError_locations_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError_locations_fields.cs b/V2/Organizations/Organizations4XXError_locations_fields.cs deleted file mode 100644 index 890e066..0000000 --- a/V2/Organizations/Organizations4XXError_locations_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations4XXError_locations_fields : 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. - /// - public Organizations4XXError_locations_fields() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError_locations_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError_locations_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError_locations_userData.cs b/V2/Organizations/Organizations4XXError_locations_userData.cs deleted file mode 100644 index f4ef173..0000000 --- a/V2/Organizations/Organizations4XXError_locations_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations4XXError_locations_userData : 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. - /// - public Organizations4XXError_locations_userData() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError_locations_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError_locations_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError_nodeApprovalMode.cs b/V2/Organizations/Organizations4XXError_nodeApprovalMode.cs deleted file mode 100644 index b4cafb9..0000000 --- a/V2/Organizations/Organizations4XXError_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Organizations4XXError_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organizations/Organizations4XXError_policies.cs b/V2/Organizations/Organizations4XXError_policies.cs deleted file mode 100644 index 65d51af..0000000 --- a/V2/Organizations/Organizations4XXError_policies.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Node role policy assignments - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations4XXError_policies : 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; } - /// Node Role Identifier - public int? NodeRoleId { get; set; } - /// Policy Identifier - public int? PolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Organizations4XXError_policies() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError_policies CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError_policies(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError_settings.cs b/V2/Organizations/Organizations4XXError_settings.cs deleted file mode 100644 index 7a72195..0000000 --- a/V2/Organizations/Organizations4XXError_settings.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Organization settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations4XXError_settings : 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; } - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_backup? Backup { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_backup Backup { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_psa? Psa { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_psa Psa { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_splashtop? Splashtop { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_splashtop Splashtop { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_teamviewer? Teamviewer { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_teamviewer Teamviewer { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_trayicon? Trayicon { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_trayicon Trayicon { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Organizations4XXError_settings() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "backup", n => { Backup = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_backup.CreateFromDiscriminatorValue); } }, - { "psa", n => { Psa = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_psa.CreateFromDiscriminatorValue); } }, - { "splashtop", n => { Splashtop = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_splashtop.CreateFromDiscriminatorValue); } }, - { "teamviewer", n => { Teamviewer = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_teamviewer.CreateFromDiscriminatorValue); } }, - { "trayicon", n => { Trayicon = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_trayicon.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("backup", Backup); - writer.WriteObjectValue("psa", Psa); - writer.WriteObjectValue("splashtop", Splashtop); - writer.WriteObjectValue("teamviewer", Teamviewer); - writer.WriteObjectValue("trayicon", Trayicon); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError_settings_backup.cs b/V2/Organizations/Organizations4XXError_settings_backup.cs deleted file mode 100644 index 6d50d17..0000000 --- a/V2/Organizations/Organizations4XXError_settings_backup.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations4XXError_settings_backup : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_backup_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_backup_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Organizations4XXError_settings_backup() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_backup CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_backup(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_backup_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError_settings_backup_options.cs b/V2/Organizations/Organizations4XXError_settings_backup_options.cs deleted file mode 100644 index 0f857a2..0000000 --- a/V2/Organizations/Organizations4XXError_settings_backup_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations4XXError_settings_backup_options : 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. - /// - public Organizations4XXError_settings_backup_options() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_backup_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_backup_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError_settings_psa.cs b/V2/Organizations/Organizations4XXError_settings_psa.cs deleted file mode 100644 index 6737af4..0000000 --- a/V2/Organizations/Organizations4XXError_settings_psa.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations4XXError_settings_psa : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_psa_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_psa_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Organizations4XXError_settings_psa() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_psa CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_psa(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_psa_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError_settings_psa_options.cs b/V2/Organizations/Organizations4XXError_settings_psa_options.cs deleted file mode 100644 index 5497294..0000000 --- a/V2/Organizations/Organizations4XXError_settings_psa_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations4XXError_settings_psa_options : 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. - /// - public Organizations4XXError_settings_psa_options() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_psa_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_psa_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError_settings_splashtop.cs b/V2/Organizations/Organizations4XXError_settings_splashtop.cs deleted file mode 100644 index 6b38068..0000000 --- a/V2/Organizations/Organizations4XXError_settings_splashtop.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations4XXError_settings_splashtop : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_splashtop_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_splashtop_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Organizations4XXError_settings_splashtop() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_splashtop CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_splashtop(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_splashtop_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError_settings_splashtop_options.cs b/V2/Organizations/Organizations4XXError_settings_splashtop_options.cs deleted file mode 100644 index cd1189d..0000000 --- a/V2/Organizations/Organizations4XXError_settings_splashtop_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations4XXError_settings_splashtop_options : 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. - /// - public Organizations4XXError_settings_splashtop_options() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_splashtop_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_splashtop_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError_settings_teamviewer.cs b/V2/Organizations/Organizations4XXError_settings_teamviewer.cs deleted file mode 100644 index 7b69391..0000000 --- a/V2/Organizations/Organizations4XXError_settings_teamviewer.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations4XXError_settings_teamviewer : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_teamviewer_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_teamviewer_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Organizations4XXError_settings_teamviewer() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_teamviewer CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_teamviewer(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_teamviewer_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError_settings_teamviewer_options.cs b/V2/Organizations/Organizations4XXError_settings_teamviewer_options.cs deleted file mode 100644 index c21afe1..0000000 --- a/V2/Organizations/Organizations4XXError_settings_teamviewer_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations4XXError_settings_teamviewer_options : 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. - /// - public Organizations4XXError_settings_teamviewer_options() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_teamviewer_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_teamviewer_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError_settings_trayicon.cs b/V2/Organizations/Organizations4XXError_settings_trayicon.cs deleted file mode 100644 index 4d7eaa1..0000000 --- a/V2/Organizations/Organizations4XXError_settings_trayicon.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations4XXError_settings_trayicon : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_trayicon_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_trayicon_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Organizations4XXError_settings_trayicon() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_trayicon CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_trayicon(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_trayicon_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError_settings_trayicon_options.cs b/V2/Organizations/Organizations4XXError_settings_trayicon_options.cs deleted file mode 100644 index 9b29b7e..0000000 --- a/V2/Organizations/Organizations4XXError_settings_trayicon_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations4XXError_settings_trayicon_options : 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. - /// - public Organizations4XXError_settings_trayicon_options() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_trayicon_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError_settings_trayicon_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations4XXError_userData.cs b/V2/Organizations/Organizations4XXError_userData.cs deleted file mode 100644 index 34e87fc..0000000 --- a/V2/Organizations/Organizations4XXError_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations4XXError_userData : 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. - /// - public Organizations4XXError_userData() - { - 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::NinjaOne.Client.V2.Organizations.Organizations4XXError_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations4XXError_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError.cs b/V2/Organizations/Organizations5XXError.cs deleted file mode 100644 index 903d231..0000000 --- a/V2/Organizations/Organizations5XXError.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Organizations5XXError : 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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_fields Fields { get; set; } -#endif - /// Organization identifier - public int? Id { get; set; } - /// List of locations -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Locations { get; set; } -#nullable restore -#else - public List Locations { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Node role policy assignments -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Policies { get; set; } -#nullable restore -#else - public List Policies { get; set; } -#endif - /// Organization settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings? Settings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings Settings { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Organizations5XXError() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations5XXError_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "locations", n => { Locations = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organizations.Organizations5XXError_locations.CreateFromDiscriminatorValue)?.AsList(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "policies", n => { Policies = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organizations.Organizations5XXError_policies.CreateFromDiscriminatorValue)?.AsList(); } }, - { "settings", n => { Settings = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings.CreateFromDiscriminatorValue); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations5XXError_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteCollectionOfObjectValues("locations", Locations); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfObjectValues("policies", Policies); - writer.WriteObjectValue("settings", Settings); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError_fields.cs b/V2/Organizations/Organizations5XXError_fields.cs deleted file mode 100644 index 5b14837..0000000 --- a/V2/Organizations/Organizations5XXError_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations5XXError_fields : 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. - /// - public Organizations5XXError_fields() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError_locations.cs b/V2/Organizations/Organizations5XXError_locations.cs deleted file mode 100644 index 89e741c..0000000 --- a/V2/Organizations/Organizations5XXError_locations.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations5XXError_locations : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_locations_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_locations_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_locations_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_locations_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Organizations5XXError_locations() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError_locations CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError_locations(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations5XXError_locations_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations5XXError_locations_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError_locations_fields.cs b/V2/Organizations/Organizations5XXError_locations_fields.cs deleted file mode 100644 index 6737372..0000000 --- a/V2/Organizations/Organizations5XXError_locations_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations5XXError_locations_fields : 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. - /// - public Organizations5XXError_locations_fields() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError_locations_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError_locations_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError_locations_userData.cs b/V2/Organizations/Organizations5XXError_locations_userData.cs deleted file mode 100644 index ee4e75f..0000000 --- a/V2/Organizations/Organizations5XXError_locations_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations5XXError_locations_userData : 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. - /// - public Organizations5XXError_locations_userData() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError_locations_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError_locations_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError_nodeApprovalMode.cs b/V2/Organizations/Organizations5XXError_nodeApprovalMode.cs deleted file mode 100644 index 21a7e5e..0000000 --- a/V2/Organizations/Organizations5XXError_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Organizations5XXError_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organizations/Organizations5XXError_policies.cs b/V2/Organizations/Organizations5XXError_policies.cs deleted file mode 100644 index 771c3d8..0000000 --- a/V2/Organizations/Organizations5XXError_policies.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Node role policy assignments - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations5XXError_policies : 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; } - /// Node Role Identifier - public int? NodeRoleId { get; set; } - /// Policy Identifier - public int? PolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Organizations5XXError_policies() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError_policies CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError_policies(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError_settings.cs b/V2/Organizations/Organizations5XXError_settings.cs deleted file mode 100644 index b94bd0a..0000000 --- a/V2/Organizations/Organizations5XXError_settings.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Organization settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations5XXError_settings : 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; } - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_backup? Backup { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_backup Backup { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_psa? Psa { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_psa Psa { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_splashtop? Splashtop { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_splashtop Splashtop { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_teamviewer? Teamviewer { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_teamviewer Teamviewer { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_trayicon? Trayicon { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_trayicon Trayicon { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Organizations5XXError_settings() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "backup", n => { Backup = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_backup.CreateFromDiscriminatorValue); } }, - { "psa", n => { Psa = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_psa.CreateFromDiscriminatorValue); } }, - { "splashtop", n => { Splashtop = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_splashtop.CreateFromDiscriminatorValue); } }, - { "teamviewer", n => { Teamviewer = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_teamviewer.CreateFromDiscriminatorValue); } }, - { "trayicon", n => { Trayicon = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_trayicon.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("backup", Backup); - writer.WriteObjectValue("psa", Psa); - writer.WriteObjectValue("splashtop", Splashtop); - writer.WriteObjectValue("teamviewer", Teamviewer); - writer.WriteObjectValue("trayicon", Trayicon); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError_settings_backup.cs b/V2/Organizations/Organizations5XXError_settings_backup.cs deleted file mode 100644 index 01019aa..0000000 --- a/V2/Organizations/Organizations5XXError_settings_backup.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations5XXError_settings_backup : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_backup_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_backup_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Organizations5XXError_settings_backup() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_backup CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_backup(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_backup_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError_settings_backup_options.cs b/V2/Organizations/Organizations5XXError_settings_backup_options.cs deleted file mode 100644 index da4370f..0000000 --- a/V2/Organizations/Organizations5XXError_settings_backup_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations5XXError_settings_backup_options : 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. - /// - public Organizations5XXError_settings_backup_options() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_backup_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_backup_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError_settings_psa.cs b/V2/Organizations/Organizations5XXError_settings_psa.cs deleted file mode 100644 index a0aa553..0000000 --- a/V2/Organizations/Organizations5XXError_settings_psa.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations5XXError_settings_psa : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_psa_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_psa_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Organizations5XXError_settings_psa() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_psa CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_psa(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_psa_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError_settings_psa_options.cs b/V2/Organizations/Organizations5XXError_settings_psa_options.cs deleted file mode 100644 index 957ff67..0000000 --- a/V2/Organizations/Organizations5XXError_settings_psa_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations5XXError_settings_psa_options : 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. - /// - public Organizations5XXError_settings_psa_options() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_psa_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_psa_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError_settings_splashtop.cs b/V2/Organizations/Organizations5XXError_settings_splashtop.cs deleted file mode 100644 index 0248e56..0000000 --- a/V2/Organizations/Organizations5XXError_settings_splashtop.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations5XXError_settings_splashtop : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_splashtop_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_splashtop_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Organizations5XXError_settings_splashtop() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_splashtop CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_splashtop(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_splashtop_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError_settings_splashtop_options.cs b/V2/Organizations/Organizations5XXError_settings_splashtop_options.cs deleted file mode 100644 index d34cc22..0000000 --- a/V2/Organizations/Organizations5XXError_settings_splashtop_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations5XXError_settings_splashtop_options : 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. - /// - public Organizations5XXError_settings_splashtop_options() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_splashtop_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_splashtop_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError_settings_teamviewer.cs b/V2/Organizations/Organizations5XXError_settings_teamviewer.cs deleted file mode 100644 index 8d18e14..0000000 --- a/V2/Organizations/Organizations5XXError_settings_teamviewer.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations5XXError_settings_teamviewer : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_teamviewer_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_teamviewer_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Organizations5XXError_settings_teamviewer() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_teamviewer CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_teamviewer(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_teamviewer_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError_settings_teamviewer_options.cs b/V2/Organizations/Organizations5XXError_settings_teamviewer_options.cs deleted file mode 100644 index 3f51f0a..0000000 --- a/V2/Organizations/Organizations5XXError_settings_teamviewer_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations5XXError_settings_teamviewer_options : 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. - /// - public Organizations5XXError_settings_teamviewer_options() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_teamviewer_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_teamviewer_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError_settings_trayicon.cs b/V2/Organizations/Organizations5XXError_settings_trayicon.cs deleted file mode 100644 index 41377b4..0000000 --- a/V2/Organizations/Organizations5XXError_settings_trayicon.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations5XXError_settings_trayicon : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_trayicon_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_trayicon_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Organizations5XXError_settings_trayicon() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_trayicon CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_trayicon(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_trayicon_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError_settings_trayicon_options.cs b/V2/Organizations/Organizations5XXError_settings_trayicon_options.cs deleted file mode 100644 index 71bc20b..0000000 --- a/V2/Organizations/Organizations5XXError_settings_trayicon_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations5XXError_settings_trayicon_options : 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. - /// - public Organizations5XXError_settings_trayicon_options() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_trayicon_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError_settings_trayicon_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations5XXError_userData.cs b/V2/Organizations/Organizations5XXError_userData.cs deleted file mode 100644 index 06219f4..0000000 --- a/V2/Organizations/Organizations5XXError_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations5XXError_userData : 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. - /// - public Organizations5XXError_userData() - { - 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::NinjaOne.Client.V2.Organizations.Organizations5XXError_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations5XXError_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/OrganizationsPostRequestBody.cs b/V2/Organizations/OrganizationsPostRequestBody.cs deleted file mode 100644 index 9c97ec2..0000000 --- a/V2/Organizations/OrganizationsPostRequestBody.cs +++ /dev/null @@ -1,129 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_fields Fields { get; set; } -#endif - /// List of locations -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Locations { get; set; } -#nullable restore -#else - public List Locations { get; set; } -#endif - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Node role policy assignments -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Policies { get; set; } -#nullable restore -#else - public List Policies { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OrganizationsPostRequestBody() - { - 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::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_fields.CreateFromDiscriminatorValue); } }, - { "locations", n => { Locations = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_locations.CreateFromDiscriminatorValue)?.AsList(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "policies", n => { Policies = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_policies.CreateFromDiscriminatorValue)?.AsList(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteCollectionOfObjectValues("locations", Locations); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfObjectValues("policies", Policies); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/OrganizationsPostRequestBody_fields.cs b/V2/Organizations/OrganizationsPostRequestBody_fields.cs deleted file mode 100644 index 4d90230..0000000 --- a/V2/Organizations/OrganizationsPostRequestBody_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsPostRequestBody_fields : 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. - /// - public OrganizationsPostRequestBody_fields() - { - 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::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/OrganizationsPostRequestBody_locations.cs b/V2/Organizations/OrganizationsPostRequestBody_locations.cs deleted file mode 100644 index 97f89cb..0000000 --- a/V2/Organizations/OrganizationsPostRequestBody_locations.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OrganizationsPostRequestBody_locations : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_locations_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_locations_fields Fields { get; set; } -#endif - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_locations_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_locations_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OrganizationsPostRequestBody_locations() - { - 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::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_locations CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_locations(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_locations_fields.CreateFromDiscriminatorValue); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_locations_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/OrganizationsPostRequestBody_locations_fields.cs b/V2/Organizations/OrganizationsPostRequestBody_locations_fields.cs deleted file mode 100644 index 8b106f0..0000000 --- a/V2/Organizations/OrganizationsPostRequestBody_locations_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsPostRequestBody_locations_fields : 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. - /// - public OrganizationsPostRequestBody_locations_fields() - { - 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::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_locations_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_locations_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/OrganizationsPostRequestBody_locations_userData.cs b/V2/Organizations/OrganizationsPostRequestBody_locations_userData.cs deleted file mode 100644 index dca7336..0000000 --- a/V2/Organizations/OrganizationsPostRequestBody_locations_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsPostRequestBody_locations_userData : 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. - /// - public OrganizationsPostRequestBody_locations_userData() - { - 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::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_locations_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_locations_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/OrganizationsPostRequestBody_nodeApprovalMode.cs b/V2/Organizations/OrganizationsPostRequestBody_nodeApprovalMode.cs deleted file mode 100644 index 2f737c8..0000000 --- a/V2/Organizations/OrganizationsPostRequestBody_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum OrganizationsPostRequestBody_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organizations/OrganizationsPostRequestBody_policies.cs b/V2/Organizations/OrganizationsPostRequestBody_policies.cs deleted file mode 100644 index 05e942e..0000000 --- a/V2/Organizations/OrganizationsPostRequestBody_policies.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Node role policy assignments - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsPostRequestBody_policies : 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; } - /// Node Role Identifier - public int? NodeRoleId { get; set; } - /// Policy Identifier - public int? PolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public OrganizationsPostRequestBody_policies() - { - 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::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_policies CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_policies(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/OrganizationsPostRequestBody_userData.cs b/V2/Organizations/OrganizationsPostRequestBody_userData.cs deleted file mode 100644 index 89c3f7b..0000000 --- a/V2/Organizations/OrganizationsPostRequestBody_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsPostRequestBody_userData : 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. - /// - public OrganizationsPostRequestBody_userData() - { - 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::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/OrganizationsRequestBuilder.cs b/V2/Organizations/OrganizationsRequestBuilder.cs deleted file mode 100644 index 10a14d9..0000000 --- a/V2/Organizations/OrganizationsRequestBuilder.cs +++ /dev/null @@ -1,185 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Builds and executes requests for operations under \v2\organizations - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OrganizationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organizations{?after*,of*,pageSize*,templateOrganizationId*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organizations{?after*,of*,pageSize*,templateOrganizationId*}", rawUrl) - { - } - /// - /// Returns list of organizations (Brief mode) - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Organizations.Organizations.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Creates new organization with optional list of locations and policy mappings.Template organization ID can be specified to copy various settings - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Organizations.Organizations4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Organizations.Organizations5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of organizations (Brief mode) - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Creates new organization with optional list of locations and policy mappings.Template organization ID can be specified to copy various settings - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Organizations.OrganizationsPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Organizations.OrganizationsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Organizations.OrganizationsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of organizations (Brief mode) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsRequestBuilderGetQueryParameters - { - /// Last Organization Identifier from previous page - [QueryParameter("after")] - public int? After { get; set; } - /// Organization filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("of")] - public string? Of { get; set; } -#nullable restore -#else - [QueryParameter("of")] - public string Of { get; set; } -#endif - /// Limit number of organizations to return - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Creates new organization with optional list of locations and policy mappings.Template organization ID can be specified to copy various settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsRequestBuilderPostQueryParameters - { - [QueryParameter("templateOrganizationId")] - public int? TemplateOrganizationId { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations_fields.cs b/V2/Organizations/Organizations_fields.cs deleted file mode 100644 index df2922f..0000000 --- a/V2/Organizations/Organizations_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations_fields : 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. - /// - public Organizations_fields() - { - 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::NinjaOne.Client.V2.Organizations.Organizations_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Organizations/Organizations_nodeApprovalMode.cs b/V2/Organizations/Organizations_nodeApprovalMode.cs deleted file mode 100644 index 2afbc32..0000000 --- a/V2/Organizations/Organizations_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Organizations_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Organizations/Organizations_userData.cs b/V2/Organizations/Organizations_userData.cs deleted file mode 100644 index c7050e9..0000000 --- a/V2/Organizations/Organizations_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Organizations -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Organizations_userData : 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. - /// - public Organizations_userData() - { - 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::NinjaOne.Client.V2.Organizations.Organizations_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Organizations.Organizations_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed.cs b/V2/OrganizationsDetailed/OrganizationsDetailed.cs deleted file mode 100644 index efcf30e..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OrganizationsDetailed : 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; } - /// Organization Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_fields Fields { get; set; } -#endif - /// Organization identifier - public int? Id { get; set; } - /// List of locations -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Locations { get; set; } -#nullable restore -#else - public List Locations { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Organization full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Device Approval Mode - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_nodeApprovalMode? NodeApprovalMode { get; set; } - /// Node role policy assignments -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Policies { get; set; } -#nullable restore -#else - public List Policies { get; set; } -#endif - /// Organization settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings? Settings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings Settings { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OrganizationsDetailed() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "locations", n => { Locations = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_locations.CreateFromDiscriminatorValue)?.AsList(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeApprovalMode", n => { NodeApprovalMode = n.GetEnumValue(); } }, - { "policies", n => { Policies = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_policies.CreateFromDiscriminatorValue)?.AsList(); } }, - { "settings", n => { Settings = n.GetObjectValue(global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings.CreateFromDiscriminatorValue); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteCollectionOfObjectValues("locations", Locations); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeApprovalMode", NodeApprovalMode); - writer.WriteCollectionOfObjectValues("policies", Policies); - writer.WriteObjectValue("settings", Settings); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailedRequestBuilder.cs b/V2/OrganizationsDetailed/OrganizationsDetailedRequestBuilder.cs deleted file mode 100644 index fa4a884..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailedRequestBuilder.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Builds and executes requests for operations under \v2\organizations-detailed - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailedRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OrganizationsDetailedRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organizations-detailed{?after*,of*,pageSize*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OrganizationsDetailedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/organizations-detailed{?after*,of*,pageSize*}", rawUrl) - { - } - /// - /// Returns list of organizations with locations and policy mappings - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of organizations with locations and policy mappings - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailedRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailedRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of organizations with locations and policy mappings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailedRequestBuilderGetQueryParameters - { - /// Last Organization Identifier from previous page - [QueryParameter("after")] - public int? After { get; set; } - /// Organization filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("of")] - public string? Of { get; set; } -#nullable restore -#else - [QueryParameter("of")] - public string Of { get; set; } -#endif - /// Limit number of organizations to return - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailedRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_fields.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_fields.cs deleted file mode 100644 index 9a0e8f0..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailed_fields : 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. - /// - public OrganizationsDetailed_fields() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_locations.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_locations.cs deleted file mode 100644 index 51ed93f..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_locations.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Location - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailed_locations : 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; } - /// Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Address { get; set; } -#nullable restore -#else - public string Address { get; set; } -#endif - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_locations_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_locations_fields Fields { get; set; } -#endif - /// Location identifier - public int? Id { get; set; } - /// Location name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Custom attributes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_locations_userData? UserData { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_locations_userData UserData { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OrganizationsDetailed_locations() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_locations CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_locations(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "address", n => { Address = n.GetStringValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_locations_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "userData", n => { UserData = n.GetObjectValue(global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_locations_userData.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("address", Address); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteObjectValue("userData", UserData); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_locations_fields.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_locations_fields.cs deleted file mode 100644 index 740214e..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_locations_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailed_locations_fields : 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. - /// - public OrganizationsDetailed_locations_fields() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_locations_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_locations_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_locations_userData.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_locations_userData.cs deleted file mode 100644 index 7b05b3d..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_locations_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailed_locations_userData : 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. - /// - public OrganizationsDetailed_locations_userData() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_locations_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_locations_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_nodeApprovalMode.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_nodeApprovalMode.cs deleted file mode 100644 index 9c9bfd5..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_nodeApprovalMode.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// Device Approval Mode - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum OrganizationsDetailed_nodeApprovalMode - { - [EnumMember(Value = "AUTOMATIC")] - #pragma warning disable CS1591 - AUTOMATIC, - #pragma warning restore CS1591 - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "REJECT")] - #pragma warning disable CS1591 - REJECT, - #pragma warning restore CS1591 - } -} diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_policies.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_policies.cs deleted file mode 100644 index 9cbe4ad..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_policies.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Node role policy assignments - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailed_policies : 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; } - /// Node Role Identifier - public int? NodeRoleId { get; set; } - /// Policy Identifier - public int? PolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public OrganizationsDetailed_policies() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_policies CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_policies(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "nodeRoleId", n => { NodeRoleId = n.GetIntValue(); } }, - { "policyId", n => { PolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("nodeRoleId", NodeRoleId); - writer.WriteIntValue("policyId", PolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_settings.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_settings.cs deleted file mode 100644 index 15fd9f0..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_settings.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Organization settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailed_settings : 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; } - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_backup? Backup { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_backup Backup { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_psa? Psa { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_psa Psa { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_splashtop? Splashtop { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_splashtop Splashtop { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_teamviewer? Teamviewer { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_teamviewer Teamviewer { get; set; } -#endif - /// Feature/product/integration configuration settings -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_trayicon? Trayicon { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_trayicon Trayicon { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OrganizationsDetailed_settings() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "backup", n => { Backup = n.GetObjectValue(global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_backup.CreateFromDiscriminatorValue); } }, - { "psa", n => { Psa = n.GetObjectValue(global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_psa.CreateFromDiscriminatorValue); } }, - { "splashtop", n => { Splashtop = n.GetObjectValue(global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_splashtop.CreateFromDiscriminatorValue); } }, - { "teamviewer", n => { Teamviewer = n.GetObjectValue(global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_teamviewer.CreateFromDiscriminatorValue); } }, - { "trayicon", n => { Trayicon = n.GetObjectValue(global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_trayicon.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("backup", Backup); - writer.WriteObjectValue("psa", Psa); - writer.WriteObjectValue("splashtop", Splashtop); - writer.WriteObjectValue("teamviewer", Teamviewer); - writer.WriteObjectValue("trayicon", Trayicon); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_backup.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_settings_backup.cs deleted file mode 100644 index 41dc7c6..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_backup.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailed_settings_backup : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_backup_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_backup_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OrganizationsDetailed_settings_backup() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_backup CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_backup(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_backup_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_backup_options.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_settings_backup_options.cs deleted file mode 100644 index 92ff54e..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_backup_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailed_settings_backup_options : 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. - /// - public OrganizationsDetailed_settings_backup_options() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_backup_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_backup_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_psa.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_settings_psa.cs deleted file mode 100644 index d74af52..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_psa.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailed_settings_psa : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_psa_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_psa_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OrganizationsDetailed_settings_psa() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_psa CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_psa(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_psa_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_psa_options.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_settings_psa_options.cs deleted file mode 100644 index ee781b6..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_psa_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailed_settings_psa_options : 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. - /// - public OrganizationsDetailed_settings_psa_options() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_psa_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_psa_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_splashtop.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_settings_splashtop.cs deleted file mode 100644 index abbf93d..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_splashtop.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailed_settings_splashtop : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_splashtop_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_splashtop_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OrganizationsDetailed_settings_splashtop() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_splashtop CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_splashtop(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_splashtop_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_splashtop_options.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_settings_splashtop_options.cs deleted file mode 100644 index ed22d1a..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_splashtop_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailed_settings_splashtop_options : 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. - /// - public OrganizationsDetailed_settings_splashtop_options() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_splashtop_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_splashtop_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_teamviewer.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_settings_teamviewer.cs deleted file mode 100644 index cd078fc..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_teamviewer.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailed_settings_teamviewer : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_teamviewer_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_teamviewer_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OrganizationsDetailed_settings_teamviewer() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_teamviewer CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_teamviewer(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_teamviewer_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_teamviewer_options.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_settings_teamviewer_options.cs deleted file mode 100644 index 4c2e4c9..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_teamviewer_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailed_settings_teamviewer_options : 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. - /// - public OrganizationsDetailed_settings_teamviewer_options() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_teamviewer_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_teamviewer_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_trayicon.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_settings_trayicon.cs deleted file mode 100644 index 330ac06..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_trayicon.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Feature/product/integration configuration settings - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailed_settings_trayicon : 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; } - /// Is enabled - public bool? Enabled { get; set; } - /// Feature options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_trayicon_options? Options { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_trayicon_options Options { get; set; } -#endif - /// Configured product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Product { get; set; } -#nullable restore -#else - public string Product { get; set; } -#endif - /// Feature deployment targets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Targets { get; set; } -#nullable restore -#else - public List Targets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OrganizationsDetailed_settings_trayicon() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_trayicon CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_trayicon(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "options", n => { Options = n.GetObjectValue(global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_trayicon_options.CreateFromDiscriminatorValue); } }, - { "product", n => { Product = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("options", Options); - writer.WriteStringValue("product", Product); - writer.WriteCollectionOfPrimitiveValues("targets", Targets); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_trayicon_options.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_settings_trayicon_options.cs deleted file mode 100644 index e683463..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_settings_trayicon_options.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Feature options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailed_settings_trayicon_options : 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. - /// - public OrganizationsDetailed_settings_trayicon_options() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_trayicon_options CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_settings_trayicon_options(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/OrganizationsDetailed/OrganizationsDetailed_userData.cs b/V2/OrganizationsDetailed/OrganizationsDetailed_userData.cs deleted file mode 100644 index d86d689..0000000 --- a/V2/OrganizationsDetailed/OrganizationsDetailed_userData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.OrganizationsDetailed -{ - /// - /// Custom attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationsDetailed_userData : 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. - /// - public OrganizationsDetailed_userData() - { - 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::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_userData CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailed_userData(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/ConditionRequestBuilder.cs b/V2/Policies/Item/Condition/ConditionRequestBuilder.cs deleted file mode 100644 index 4d1c095..0000000 --- a/V2/Policies/Item/Condition/ConditionRequestBuilder.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Policies.Item.Condition.CustomFields; -using NinjaOne.Client.V2.Policies.Item.Condition.Item; -using NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition -{ - /// - /// Builds and executes requests for operations under \v2\policies\{policy_id}\condition - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConditionRequestBuilder : BaseRequestBuilder - { - /// The customFields property - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsRequestBuilder CustomFields - { - get => new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsRequestBuilder(PathParameters, RequestAdapter); - } - /// The windowsEvent property - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventRequestBuilder WindowsEvent - { - get => new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the NinjaOne.Client.v2.policies.item.condition.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Policies.Item.Condition.Item.WithCondition_ItemRequestBuilder this[Guid position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("condition_id", position); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.Item.WithCondition_ItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.policies.item.condition.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Policies.Item.Condition.Item.WithCondition_ItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("condition_id", position); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.Item.WithCondition_ItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ConditionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/policies/{policy_id}/condition", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ConditionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/policies/{policy_id}/condition", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields.cs deleted file mode 100644 index cb1958a..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields.cs +++ /dev/null @@ -1,163 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Custom fields policy condition response payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields : ApiException, 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; } - /// Policy condition notification channels -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Channels { get; set; } -#nullable restore -#else - public List Channels { get; set; } -#endif - /// Policy condition name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ConditionName { get; set; } -#nullable restore -#else - public string ConditionName { get; set; } -#endif - /// Policy condition display name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// Policy condition enabled - public bool? Enabled { get; set; } - /// Policy condition id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition inheritance status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_inheritance? Inheritance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_inheritance Inheritance { get; set; } -#endif - /// Custom field value must meet all conditions -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MatchAll { get; set; } -#nullable restore -#else - public List MatchAll { get; set; } -#endif - /// Custom field value must meet any conditions -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MatchAny { get; set; } -#nullable restore -#else - public List MatchAny { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Policy condition notification action - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_notificationAction? NotificationAction { get; set; } - /// Policy condition notify on reset - public bool? NotifyOnReset { get; set; } - /// Policy condition priority - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_priority? Priority { get; set; } - /// Policy condition reset threshold (seconds) - public int? ResetThreshold { get; set; } - /// Policy condition scripts -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Scripts { get; set; } -#nullable restore -#else - public List Scripts { get; set; } -#endif - /// Policy condition severity - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_severity? Severity { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "channels", n => { Channels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "conditionName", n => { ConditionName = n.GetStringValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetStringValue(); } }, - { "inheritance", n => { Inheritance = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_inheritance.CreateFromDiscriminatorValue); } }, - { "matchAll", n => { MatchAll = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_matchAll.CreateFromDiscriminatorValue)?.AsList(); } }, - { "matchAny", n => { MatchAny = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_matchAny.CreateFromDiscriminatorValue)?.AsList(); } }, - { "notificationAction", n => { NotificationAction = n.GetEnumValue(); } }, - { "notifyOnReset", n => { NotifyOnReset = n.GetBoolValue(); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "resetThreshold", n => { ResetThreshold = n.GetIntValue(); } }, - { "scripts", n => { Scripts = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_scripts.CreateFromDiscriminatorValue)?.AsList(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("channels", Channels); - writer.WriteStringValue("conditionName", ConditionName); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteStringValue("id", Id); - writer.WriteObjectValue("inheritance", Inheritance); - writer.WriteCollectionOfObjectValues("matchAll", MatchAll); - writer.WriteCollectionOfObjectValues("matchAny", MatchAny); - writer.WriteEnumValue("notificationAction", NotificationAction); - writer.WriteBoolValue("notifyOnReset", NotifyOnReset); - writer.WriteEnumValue("priority", Priority); - writer.WriteIntValue("resetThreshold", ResetThreshold); - writer.WriteCollectionOfObjectValues("scripts", Scripts); - writer.WriteEnumValue("severity", Severity); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError.cs deleted file mode 100644 index 6205aeb..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError.cs +++ /dev/null @@ -1,163 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Custom fields policy condition response payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields4XXError : ApiException, 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; } - /// Policy condition notification channels -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Channels { get; set; } -#nullable restore -#else - public List Channels { get; set; } -#endif - /// Policy condition name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ConditionName { get; set; } -#nullable restore -#else - public string ConditionName { get; set; } -#endif - /// Policy condition display name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// Policy condition enabled - public bool? Enabled { get; set; } - /// Policy condition id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition inheritance status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_inheritance? Inheritance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_inheritance Inheritance { get; set; } -#endif - /// Custom field value must meet all conditions -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MatchAll { get; set; } -#nullable restore -#else - public List MatchAll { get; set; } -#endif - /// Custom field value must meet any conditions -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MatchAny { get; set; } -#nullable restore -#else - public List MatchAny { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Policy condition notification action - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_notificationAction? NotificationAction { get; set; } - /// Policy condition notify on reset - public bool? NotifyOnReset { get; set; } - /// Policy condition priority - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_priority? Priority { get; set; } - /// Policy condition reset threshold (seconds) - public int? ResetThreshold { get; set; } - /// Policy condition scripts -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Scripts { get; set; } -#nullable restore -#else - public List Scripts { get; set; } -#endif - /// Policy condition severity - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_severity? Severity { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields4XXError() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "channels", n => { Channels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "conditionName", n => { ConditionName = n.GetStringValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetStringValue(); } }, - { "inheritance", n => { Inheritance = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_inheritance.CreateFromDiscriminatorValue); } }, - { "matchAll", n => { MatchAll = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_matchAll.CreateFromDiscriminatorValue)?.AsList(); } }, - { "matchAny", n => { MatchAny = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_matchAny.CreateFromDiscriminatorValue)?.AsList(); } }, - { "notificationAction", n => { NotificationAction = n.GetEnumValue(); } }, - { "notifyOnReset", n => { NotifyOnReset = n.GetBoolValue(); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "resetThreshold", n => { ResetThreshold = n.GetIntValue(); } }, - { "scripts", n => { Scripts = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_scripts.CreateFromDiscriminatorValue)?.AsList(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("channels", Channels); - writer.WriteStringValue("conditionName", ConditionName); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteStringValue("id", Id); - writer.WriteObjectValue("inheritance", Inheritance); - writer.WriteCollectionOfObjectValues("matchAll", MatchAll); - writer.WriteCollectionOfObjectValues("matchAny", MatchAny); - writer.WriteEnumValue("notificationAction", NotificationAction); - writer.WriteBoolValue("notifyOnReset", NotifyOnReset); - writer.WriteEnumValue("priority", Priority); - writer.WriteIntValue("resetThreshold", ResetThreshold); - writer.WriteCollectionOfObjectValues("scripts", Scripts); - writer.WriteEnumValue("severity", Severity); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_inheritance.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_inheritance.cs deleted file mode 100644 index b7592b9..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_inheritance.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition inheritance status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields4XXError_inheritance : 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; } - /// Is policy condition inherited - public bool? Inherited { get; set; } - /// Is policy condition overridden - public bool? Overridden { get; set; } - /// Parent policy Id - public int? SourcePolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields4XXError_inheritance() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_inheritance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_inheritance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "inherited", n => { Inherited = n.GetBoolValue(); } }, - { "overridden", n => { Overridden = n.GetBoolValue(); } }, - { "sourcePolicyId", n => { SourcePolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("inherited", Inherited); - writer.WriteBoolValue("overridden", Overridden); - writer.WriteIntValue("sourcePolicyId", SourcePolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_matchAll.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_matchAll.cs deleted file mode 100644 index 3b560fa..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_matchAll.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition custom field - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields4XXError_matchAll : 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; } - /// Custom field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Custom field operator - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_matchAll_operator? Operator { get; set; } - /// Custom field value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields4XXError_matchAll() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_matchAll CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_matchAll(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "operator", n => { Operator = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("operator", Operator); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_matchAll_operator.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_matchAll_operator.cs deleted file mode 100644 index 420d006..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_matchAll_operator.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Custom field operator - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields4XXError_matchAll_operator - { - [EnumMember(Value = "EQUALS")] - #pragma warning disable CS1591 - EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_EQUALS")] - #pragma warning disable CS1591 - NOT_EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_THAN")] - #pragma warning disable CS1591 - LESS_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - LESS_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_THAN")] - #pragma warning disable CS1591 - GREATER_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - GREATER_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "IS_NOT_NULL")] - #pragma warning disable CS1591 - IS_NOT_NULL, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_NONE")] - #pragma warning disable CS1591 - CONTAINS_NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_ANY")] - #pragma warning disable CS1591 - CONTAINS_ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_matchAny.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_matchAny.cs deleted file mode 100644 index a2a2a85..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_matchAny.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition custom field - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields4XXError_matchAny : 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; } - /// Custom field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Custom field operator - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_matchAny_operator? Operator { get; set; } - /// Custom field value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields4XXError_matchAny() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_matchAny CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_matchAny(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "operator", n => { Operator = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("operator", Operator); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_matchAny_operator.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_matchAny_operator.cs deleted file mode 100644 index 642663c..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_matchAny_operator.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Custom field operator - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields4XXError_matchAny_operator - { - [EnumMember(Value = "EQUALS")] - #pragma warning disable CS1591 - EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_EQUALS")] - #pragma warning disable CS1591 - NOT_EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_THAN")] - #pragma warning disable CS1591 - LESS_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - LESS_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_THAN")] - #pragma warning disable CS1591 - GREATER_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - GREATER_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "IS_NOT_NULL")] - #pragma warning disable CS1591 - IS_NOT_NULL, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_NONE")] - #pragma warning disable CS1591 - CONTAINS_NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_ANY")] - #pragma warning disable CS1591 - CONTAINS_ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_notificationAction.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_notificationAction.cs deleted file mode 100644 index 809c4c3..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_notificationAction.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Policy condition notification action - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields4XXError_notificationAction - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "SEND")] - #pragma warning disable CS1591 - SEND, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_priority.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_priority.cs deleted file mode 100644 index 2969b04..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_priority.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Policy condition priority - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields4XXError_priority - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_scripts.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_scripts.cs deleted file mode 100644 index 91e48c9..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_scripts.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition script - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields4XXError_scripts : 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; } - /// Policy condition script runAs - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_scripts_runAs? RunAs { get; set; } - /// Policy condition script id - public int? ScriptId { get; set; } - /// Policy condition script parameter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ScriptParam { get; set; } -#nullable restore -#else - public string ScriptParam { get; set; } -#endif - /// Policy condition script variables -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ScriptVariables { get; set; } -#nullable restore -#else - public List ScriptVariables { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields4XXError_scripts() - { - AdditionalData = new Dictionary(); - RunAs = global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_scripts_runAs.SYSTEM; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_scripts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_scripts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "runAs", n => { RunAs = n.GetEnumValue(); } }, - { "scriptId", n => { ScriptId = n.GetIntValue(); } }, - { "scriptParam", n => { ScriptParam = n.GetStringValue(); } }, - { "scriptVariables", n => { ScriptVariables = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_scripts_scriptVariables.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("runAs", RunAs); - writer.WriteIntValue("scriptId", ScriptId); - writer.WriteStringValue("scriptParam", ScriptParam); - writer.WriteCollectionOfObjectValues("scriptVariables", ScriptVariables); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_scripts_runAs.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_scripts_runAs.cs deleted file mode 100644 index e013c70..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_scripts_runAs.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Policy condition script runAs - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields4XXError_scripts_runAs - { - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "LOGGED_ON_USER")] - #pragma warning disable CS1591 - LOGGED_ON_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCAL_ADMIN")] - #pragma warning disable CS1591 - LOCAL_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "DOMAIN_ADMIN")] - #pragma warning disable CS1591 - DOMAIN_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_MAC")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_LINUX")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_LINUX, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_scripts_scriptVariables.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_scripts_scriptVariables.cs deleted file mode 100644 index af5fdb4..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_scripts_scriptVariables.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition script variable - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields4XXError_scripts_scriptVariables : 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; } - /// Policy condition script variable Id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition script variable value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields4XXError_scripts_scriptVariables() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_scripts_scriptVariables CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError_scripts_scriptVariables(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetStringValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_severity.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_severity.cs deleted file mode 100644 index 6f34da7..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields4XXError_severity.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Policy condition severity - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields4XXError_severity - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError.cs deleted file mode 100644 index 0cdcb4b..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError.cs +++ /dev/null @@ -1,163 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Custom fields policy condition response payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields5XXError : ApiException, 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; } - /// Policy condition notification channels -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Channels { get; set; } -#nullable restore -#else - public List Channels { get; set; } -#endif - /// Policy condition name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ConditionName { get; set; } -#nullable restore -#else - public string ConditionName { get; set; } -#endif - /// Policy condition display name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// Policy condition enabled - public bool? Enabled { get; set; } - /// Policy condition id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition inheritance status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_inheritance? Inheritance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_inheritance Inheritance { get; set; } -#endif - /// Custom field value must meet all conditions -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MatchAll { get; set; } -#nullable restore -#else - public List MatchAll { get; set; } -#endif - /// Custom field value must meet any conditions -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MatchAny { get; set; } -#nullable restore -#else - public List MatchAny { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Policy condition notification action - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_notificationAction? NotificationAction { get; set; } - /// Policy condition notify on reset - public bool? NotifyOnReset { get; set; } - /// Policy condition priority - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_priority? Priority { get; set; } - /// Policy condition reset threshold (seconds) - public int? ResetThreshold { get; set; } - /// Policy condition scripts -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Scripts { get; set; } -#nullable restore -#else - public List Scripts { get; set; } -#endif - /// Policy condition severity - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_severity? Severity { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields5XXError() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "channels", n => { Channels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "conditionName", n => { ConditionName = n.GetStringValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetStringValue(); } }, - { "inheritance", n => { Inheritance = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_inheritance.CreateFromDiscriminatorValue); } }, - { "matchAll", n => { MatchAll = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_matchAll.CreateFromDiscriminatorValue)?.AsList(); } }, - { "matchAny", n => { MatchAny = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_matchAny.CreateFromDiscriminatorValue)?.AsList(); } }, - { "notificationAction", n => { NotificationAction = n.GetEnumValue(); } }, - { "notifyOnReset", n => { NotifyOnReset = n.GetBoolValue(); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "resetThreshold", n => { ResetThreshold = n.GetIntValue(); } }, - { "scripts", n => { Scripts = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_scripts.CreateFromDiscriminatorValue)?.AsList(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("channels", Channels); - writer.WriteStringValue("conditionName", ConditionName); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteStringValue("id", Id); - writer.WriteObjectValue("inheritance", Inheritance); - writer.WriteCollectionOfObjectValues("matchAll", MatchAll); - writer.WriteCollectionOfObjectValues("matchAny", MatchAny); - writer.WriteEnumValue("notificationAction", NotificationAction); - writer.WriteBoolValue("notifyOnReset", NotifyOnReset); - writer.WriteEnumValue("priority", Priority); - writer.WriteIntValue("resetThreshold", ResetThreshold); - writer.WriteCollectionOfObjectValues("scripts", Scripts); - writer.WriteEnumValue("severity", Severity); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_inheritance.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_inheritance.cs deleted file mode 100644 index 7329c43..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_inheritance.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition inheritance status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields5XXError_inheritance : 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; } - /// Is policy condition inherited - public bool? Inherited { get; set; } - /// Is policy condition overridden - public bool? Overridden { get; set; } - /// Parent policy Id - public int? SourcePolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields5XXError_inheritance() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_inheritance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_inheritance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "inherited", n => { Inherited = n.GetBoolValue(); } }, - { "overridden", n => { Overridden = n.GetBoolValue(); } }, - { "sourcePolicyId", n => { SourcePolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("inherited", Inherited); - writer.WriteBoolValue("overridden", Overridden); - writer.WriteIntValue("sourcePolicyId", SourcePolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_matchAll.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_matchAll.cs deleted file mode 100644 index e0008c4..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_matchAll.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition custom field - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields5XXError_matchAll : 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; } - /// Custom field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Custom field operator - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_matchAll_operator? Operator { get; set; } - /// Custom field value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields5XXError_matchAll() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_matchAll CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_matchAll(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "operator", n => { Operator = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("operator", Operator); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_matchAll_operator.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_matchAll_operator.cs deleted file mode 100644 index 5717cde..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_matchAll_operator.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Custom field operator - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields5XXError_matchAll_operator - { - [EnumMember(Value = "EQUALS")] - #pragma warning disable CS1591 - EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_EQUALS")] - #pragma warning disable CS1591 - NOT_EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_THAN")] - #pragma warning disable CS1591 - LESS_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - LESS_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_THAN")] - #pragma warning disable CS1591 - GREATER_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - GREATER_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "IS_NOT_NULL")] - #pragma warning disable CS1591 - IS_NOT_NULL, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_NONE")] - #pragma warning disable CS1591 - CONTAINS_NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_ANY")] - #pragma warning disable CS1591 - CONTAINS_ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_matchAny.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_matchAny.cs deleted file mode 100644 index cda7198..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_matchAny.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition custom field - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields5XXError_matchAny : 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; } - /// Custom field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Custom field operator - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_matchAny_operator? Operator { get; set; } - /// Custom field value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields5XXError_matchAny() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_matchAny CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_matchAny(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "operator", n => { Operator = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("operator", Operator); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_matchAny_operator.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_matchAny_operator.cs deleted file mode 100644 index 6d9c290..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_matchAny_operator.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Custom field operator - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields5XXError_matchAny_operator - { - [EnumMember(Value = "EQUALS")] - #pragma warning disable CS1591 - EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_EQUALS")] - #pragma warning disable CS1591 - NOT_EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_THAN")] - #pragma warning disable CS1591 - LESS_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - LESS_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_THAN")] - #pragma warning disable CS1591 - GREATER_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - GREATER_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "IS_NOT_NULL")] - #pragma warning disable CS1591 - IS_NOT_NULL, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_NONE")] - #pragma warning disable CS1591 - CONTAINS_NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_ANY")] - #pragma warning disable CS1591 - CONTAINS_ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_notificationAction.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_notificationAction.cs deleted file mode 100644 index 9bc8bc3..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_notificationAction.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Policy condition notification action - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields5XXError_notificationAction - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "SEND")] - #pragma warning disable CS1591 - SEND, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_priority.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_priority.cs deleted file mode 100644 index d4384e0..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_priority.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Policy condition priority - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields5XXError_priority - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_scripts.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_scripts.cs deleted file mode 100644 index c96eac4..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_scripts.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition script - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields5XXError_scripts : 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; } - /// Policy condition script runAs - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_scripts_runAs? RunAs { get; set; } - /// Policy condition script id - public int? ScriptId { get; set; } - /// Policy condition script parameter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ScriptParam { get; set; } -#nullable restore -#else - public string ScriptParam { get; set; } -#endif - /// Policy condition script variables -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ScriptVariables { get; set; } -#nullable restore -#else - public List ScriptVariables { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields5XXError_scripts() - { - AdditionalData = new Dictionary(); - RunAs = global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_scripts_runAs.SYSTEM; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_scripts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_scripts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "runAs", n => { RunAs = n.GetEnumValue(); } }, - { "scriptId", n => { ScriptId = n.GetIntValue(); } }, - { "scriptParam", n => { ScriptParam = n.GetStringValue(); } }, - { "scriptVariables", n => { ScriptVariables = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_scripts_scriptVariables.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("runAs", RunAs); - writer.WriteIntValue("scriptId", ScriptId); - writer.WriteStringValue("scriptParam", ScriptParam); - writer.WriteCollectionOfObjectValues("scriptVariables", ScriptVariables); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_scripts_runAs.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_scripts_runAs.cs deleted file mode 100644 index 9201b79..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_scripts_runAs.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Policy condition script runAs - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields5XXError_scripts_runAs - { - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "LOGGED_ON_USER")] - #pragma warning disable CS1591 - LOGGED_ON_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCAL_ADMIN")] - #pragma warning disable CS1591 - LOCAL_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "DOMAIN_ADMIN")] - #pragma warning disable CS1591 - DOMAIN_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_MAC")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_LINUX")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_LINUX, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_scripts_scriptVariables.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_scripts_scriptVariables.cs deleted file mode 100644 index 77f2c68..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_scripts_scriptVariables.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition script variable - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields5XXError_scripts_scriptVariables : 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; } - /// Policy condition script variable Id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition script variable value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields5XXError_scripts_scriptVariables() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_scripts_scriptVariables CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError_scripts_scriptVariables(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetStringValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_severity.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_severity.cs deleted file mode 100644 index 7f5ba0a..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields5XXError_severity.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Policy condition severity - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields5XXError_severity - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody.cs b/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody.cs deleted file mode 100644 index b293825..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody.cs +++ /dev/null @@ -1,133 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Custom fields policy condition create request payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsPostRequestBody : 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; } - /// Policy condition notification channels -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Channels { get; set; } -#nullable restore -#else - public List Channels { get; set; } -#endif - /// Policy condition display name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// Policy condition enabled - public bool? Enabled { get; set; } - /// Custom field value must meet all conditions -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MatchAll { get; set; } -#nullable restore -#else - public List MatchAll { get; set; } -#endif - /// Custom field value must meet any conditions -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MatchAny { get; set; } -#nullable restore -#else - public List MatchAny { get; set; } -#endif - /// Policy condition notification action - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_notificationAction? NotificationAction { get; set; } - /// Policy condition notify on reset - public bool? NotifyOnReset { get; set; } - /// Policy condition priority - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_priority? Priority { get; set; } - /// Policy condition reset threshold (seconds) - public int? ResetThreshold { get; set; } - /// Policy condition scripts -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Scripts { get; set; } -#nullable restore -#else - public List Scripts { get; set; } -#endif - /// Policy condition severity - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_severity? Severity { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFieldsPostRequestBody() - { - AdditionalData = new Dictionary(); - NotificationAction = global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_notificationAction.NONE; - Priority = global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_priority.NONE; - Severity = global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_severity.NONE; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "channels", n => { Channels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "matchAll", n => { MatchAll = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_matchAll.CreateFromDiscriminatorValue)?.AsList(); } }, - { "matchAny", n => { MatchAny = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_matchAny.CreateFromDiscriminatorValue)?.AsList(); } }, - { "notificationAction", n => { NotificationAction = n.GetEnumValue(); } }, - { "notifyOnReset", n => { NotifyOnReset = n.GetBoolValue(); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "resetThreshold", n => { ResetThreshold = n.GetIntValue(); } }, - { "scripts", n => { Scripts = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_scripts.CreateFromDiscriminatorValue)?.AsList(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("channels", Channels); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteCollectionOfObjectValues("matchAll", MatchAll); - writer.WriteCollectionOfObjectValues("matchAny", MatchAny); - writer.WriteEnumValue("notificationAction", NotificationAction); - writer.WriteBoolValue("notifyOnReset", NotifyOnReset); - writer.WriteEnumValue("priority", Priority); - writer.WriteIntValue("resetThreshold", ResetThreshold); - writer.WriteCollectionOfObjectValues("scripts", Scripts); - writer.WriteEnumValue("severity", Severity); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_matchAll.cs b/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_matchAll.cs deleted file mode 100644 index e852f90..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_matchAll.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition custom field - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsPostRequestBody_matchAll : 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; } - /// Custom field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Custom field operator - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_matchAll_operator? Operator { get; set; } - /// Custom field value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFieldsPostRequestBody_matchAll() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_matchAll CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_matchAll(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "operator", n => { Operator = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("operator", Operator); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_matchAll_operator.cs b/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_matchAll_operator.cs deleted file mode 100644 index 2242baf..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_matchAll_operator.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Custom field operator - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFieldsPostRequestBody_matchAll_operator - { - [EnumMember(Value = "EQUALS")] - #pragma warning disable CS1591 - EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_EQUALS")] - #pragma warning disable CS1591 - NOT_EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_THAN")] - #pragma warning disable CS1591 - LESS_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - LESS_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_THAN")] - #pragma warning disable CS1591 - GREATER_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - GREATER_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "IS_NOT_NULL")] - #pragma warning disable CS1591 - IS_NOT_NULL, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_NONE")] - #pragma warning disable CS1591 - CONTAINS_NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_ANY")] - #pragma warning disable CS1591 - CONTAINS_ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_matchAny.cs b/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_matchAny.cs deleted file mode 100644 index c2756a8..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_matchAny.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition custom field - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsPostRequestBody_matchAny : 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; } - /// Custom field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Custom field operator - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_matchAny_operator? Operator { get; set; } - /// Custom field value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFieldsPostRequestBody_matchAny() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_matchAny CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_matchAny(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "operator", n => { Operator = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("operator", Operator); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_matchAny_operator.cs b/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_matchAny_operator.cs deleted file mode 100644 index d4612d9..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_matchAny_operator.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Custom field operator - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFieldsPostRequestBody_matchAny_operator - { - [EnumMember(Value = "EQUALS")] - #pragma warning disable CS1591 - EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_EQUALS")] - #pragma warning disable CS1591 - NOT_EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_THAN")] - #pragma warning disable CS1591 - LESS_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - LESS_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_THAN")] - #pragma warning disable CS1591 - GREATER_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - GREATER_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "IS_NOT_NULL")] - #pragma warning disable CS1591 - IS_NOT_NULL, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_NONE")] - #pragma warning disable CS1591 - CONTAINS_NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_ANY")] - #pragma warning disable CS1591 - CONTAINS_ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_notificationAction.cs b/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_notificationAction.cs deleted file mode 100644 index b644447..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_notificationAction.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Policy condition notification action - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFieldsPostRequestBody_notificationAction - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "SEND")] - #pragma warning disable CS1591 - SEND, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_priority.cs b/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_priority.cs deleted file mode 100644 index 7389d52..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_priority.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Policy condition priority - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFieldsPostRequestBody_priority - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_scripts.cs b/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_scripts.cs deleted file mode 100644 index 296d754..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_scripts.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition script - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsPostRequestBody_scripts : 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; } - /// Policy condition script runAs - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_scripts_runAs? RunAs { get; set; } - /// Policy condition script id - public int? ScriptId { get; set; } - /// Policy condition script parameter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ScriptParam { get; set; } -#nullable restore -#else - public string ScriptParam { get; set; } -#endif - /// Policy condition script variables -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ScriptVariables { get; set; } -#nullable restore -#else - public List ScriptVariables { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFieldsPostRequestBody_scripts() - { - AdditionalData = new Dictionary(); - RunAs = global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_scripts_runAs.SYSTEM; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_scripts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_scripts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "runAs", n => { RunAs = n.GetEnumValue(); } }, - { "scriptId", n => { ScriptId = n.GetIntValue(); } }, - { "scriptParam", n => { ScriptParam = n.GetStringValue(); } }, - { "scriptVariables", n => { ScriptVariables = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_scripts_scriptVariables.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("runAs", RunAs); - writer.WriteIntValue("scriptId", ScriptId); - writer.WriteStringValue("scriptParam", ScriptParam); - writer.WriteCollectionOfObjectValues("scriptVariables", ScriptVariables); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_scripts_runAs.cs b/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_scripts_runAs.cs deleted file mode 100644 index 8c1bda5..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_scripts_runAs.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Policy condition script runAs - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFieldsPostRequestBody_scripts_runAs - { - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "LOGGED_ON_USER")] - #pragma warning disable CS1591 - LOGGED_ON_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCAL_ADMIN")] - #pragma warning disable CS1591 - LOCAL_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "DOMAIN_ADMIN")] - #pragma warning disable CS1591 - DOMAIN_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_MAC")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_LINUX")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_LINUX, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_scripts_scriptVariables.cs b/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_scripts_scriptVariables.cs deleted file mode 100644 index 144b322..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_scripts_scriptVariables.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition script variable - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsPostRequestBody_scripts_scriptVariables : 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; } - /// Policy condition script variable Id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition script variable value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFieldsPostRequestBody_scripts_scriptVariables() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_scripts_scriptVariables CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody_scripts_scriptVariables(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetStringValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_severity.cs b/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_severity.cs deleted file mode 100644 index 938c4ea..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFieldsPostRequestBody_severity.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Policy condition severity - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFieldsPostRequestBody_severity - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFieldsRequestBuilder.cs b/V2/Policies/Item/Condition/CustomFields/CustomFieldsRequestBuilder.cs deleted file mode 100644 index 4adcf44..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFieldsRequestBuilder.cs +++ /dev/null @@ -1,179 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Builds and executes requests for operations under \v2\policies\{policy_id}\condition\custom-fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.policies.item.condition.customFields.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_ItemRequestBuilder this[Guid position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("condition_id", position); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_ItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.policies.item.condition.customFields.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_ItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("condition_id", position); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_ItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public CustomFieldsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/policies/{policy_id}/condition/custom-fields", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public CustomFieldsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/policies/{policy_id}/condition/custom-fields", rawUrl) - { - } - /// - /// Get all custom fields policy conditions for specified policy - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Creates custom fields policy condition for specified policy - /// - /// A - /// Custom fields policy condition create request payload - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Get all custom fields policy conditions for specified policy - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Creates custom fields policy condition for specified policy - /// - /// A - /// Custom fields policy condition create request payload - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFieldsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields_inheritance.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields_inheritance.cs deleted file mode 100644 index 1e33dc6..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields_inheritance.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition inheritance status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields_inheritance : 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; } - /// Is policy condition inherited - public bool? Inherited { get; set; } - /// Is policy condition overridden - public bool? Overridden { get; set; } - /// Parent policy Id - public int? SourcePolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields_inheritance() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_inheritance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_inheritance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "inherited", n => { Inherited = n.GetBoolValue(); } }, - { "overridden", n => { Overridden = n.GetBoolValue(); } }, - { "sourcePolicyId", n => { SourcePolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("inherited", Inherited); - writer.WriteBoolValue("overridden", Overridden); - writer.WriteIntValue("sourcePolicyId", SourcePolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields_matchAll.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields_matchAll.cs deleted file mode 100644 index af5d7d0..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields_matchAll.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition custom field - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields_matchAll : 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; } - /// Custom field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Custom field operator - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_matchAll_operator? Operator { get; set; } - /// Custom field value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields_matchAll() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_matchAll CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_matchAll(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "operator", n => { Operator = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("operator", Operator); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields_matchAll_operator.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields_matchAll_operator.cs deleted file mode 100644 index d9329b5..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields_matchAll_operator.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Custom field operator - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields_matchAll_operator - { - [EnumMember(Value = "EQUALS")] - #pragma warning disable CS1591 - EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_EQUALS")] - #pragma warning disable CS1591 - NOT_EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_THAN")] - #pragma warning disable CS1591 - LESS_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - LESS_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_THAN")] - #pragma warning disable CS1591 - GREATER_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - GREATER_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "IS_NOT_NULL")] - #pragma warning disable CS1591 - IS_NOT_NULL, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_NONE")] - #pragma warning disable CS1591 - CONTAINS_NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_ANY")] - #pragma warning disable CS1591 - CONTAINS_ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields_matchAny.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields_matchAny.cs deleted file mode 100644 index 08c4bbe..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields_matchAny.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition custom field - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields_matchAny : 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; } - /// Custom field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Custom field operator - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_matchAny_operator? Operator { get; set; } - /// Custom field value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields_matchAny() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_matchAny CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_matchAny(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "operator", n => { Operator = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("operator", Operator); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields_matchAny_operator.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields_matchAny_operator.cs deleted file mode 100644 index 4ef3f27..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields_matchAny_operator.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Custom field operator - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields_matchAny_operator - { - [EnumMember(Value = "EQUALS")] - #pragma warning disable CS1591 - EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_EQUALS")] - #pragma warning disable CS1591 - NOT_EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_THAN")] - #pragma warning disable CS1591 - LESS_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - LESS_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_THAN")] - #pragma warning disable CS1591 - GREATER_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - GREATER_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "IS_NOT_NULL")] - #pragma warning disable CS1591 - IS_NOT_NULL, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_NONE")] - #pragma warning disable CS1591 - CONTAINS_NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_ANY")] - #pragma warning disable CS1591 - CONTAINS_ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields_notificationAction.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields_notificationAction.cs deleted file mode 100644 index 43dbb7e..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields_notificationAction.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Policy condition notification action - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields_notificationAction - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "SEND")] - #pragma warning disable CS1591 - SEND, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields_priority.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields_priority.cs deleted file mode 100644 index 097820f..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields_priority.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Policy condition priority - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields_priority - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields_scripts.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields_scripts.cs deleted file mode 100644 index d49e36d..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields_scripts.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition script - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields_scripts : 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; } - /// Policy condition script runAs - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_scripts_runAs? RunAs { get; set; } - /// Policy condition script id - public int? ScriptId { get; set; } - /// Policy condition script parameter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ScriptParam { get; set; } -#nullable restore -#else - public string ScriptParam { get; set; } -#endif - /// Policy condition script variables -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ScriptVariables { get; set; } -#nullable restore -#else - public List ScriptVariables { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields_scripts() - { - AdditionalData = new Dictionary(); - RunAs = global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_scripts_runAs.SYSTEM; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_scripts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_scripts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "runAs", n => { RunAs = n.GetEnumValue(); } }, - { "scriptId", n => { ScriptId = n.GetIntValue(); } }, - { "scriptParam", n => { ScriptParam = n.GetStringValue(); } }, - { "scriptVariables", n => { ScriptVariables = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_scripts_scriptVariables.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("runAs", RunAs); - writer.WriteIntValue("scriptId", ScriptId); - writer.WriteStringValue("scriptParam", ScriptParam); - writer.WriteCollectionOfObjectValues("scriptVariables", ScriptVariables); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields_scripts_runAs.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields_scripts_runAs.cs deleted file mode 100644 index c631730..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields_scripts_runAs.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Policy condition script runAs - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields_scripts_runAs - { - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "LOGGED_ON_USER")] - #pragma warning disable CS1591 - LOGGED_ON_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCAL_ADMIN")] - #pragma warning disable CS1591 - LOCAL_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "DOMAIN_ADMIN")] - #pragma warning disable CS1591 - DOMAIN_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_MAC")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_LINUX")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_LINUX, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields_scripts_scriptVariables.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields_scripts_scriptVariables.cs deleted file mode 100644 index d33ac02..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields_scripts_scriptVariables.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// - /// Policy condition script variable - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields_scripts_scriptVariables : 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; } - /// Policy condition script variable Id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition script variable value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields_scripts_scriptVariables() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_scripts_scriptVariables CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.CustomFields_scripts_scriptVariables(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetStringValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/CustomFields_severity.cs b/V2/Policies/Item/Condition/CustomFields/CustomFields_severity.cs deleted file mode 100644 index ae78eef..0000000 --- a/V2/Policies/Item/Condition/CustomFields/CustomFields_severity.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields -{ - /// Policy condition severity - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFields_severity - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError.cs deleted file mode 100644 index e16fd87..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError.cs +++ /dev/null @@ -1,163 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// - /// Custom fields policy condition response payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_4XXError : ApiException, 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; } - /// Policy condition notification channels -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Channels { get; set; } -#nullable restore -#else - public List Channels { get; set; } -#endif - /// Policy condition name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ConditionName { get; set; } -#nullable restore -#else - public string ConditionName { get; set; } -#endif - /// Policy condition display name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// Policy condition enabled - public bool? Enabled { get; set; } - /// Policy condition id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition inheritance status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_inheritance? Inheritance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_inheritance Inheritance { get; set; } -#endif - /// Custom field value must meet all conditions -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MatchAll { get; set; } -#nullable restore -#else - public List MatchAll { get; set; } -#endif - /// Custom field value must meet any conditions -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MatchAny { get; set; } -#nullable restore -#else - public List MatchAny { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Policy condition notification action - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_notificationAction? NotificationAction { get; set; } - /// Policy condition notify on reset - public bool? NotifyOnReset { get; set; } - /// Policy condition priority - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_priority? Priority { get; set; } - /// Policy condition reset threshold (seconds) - public int? ResetThreshold { get; set; } - /// Policy condition scripts -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Scripts { get; set; } -#nullable restore -#else - public List Scripts { get; set; } -#endif - /// Policy condition severity - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_severity? Severity { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_4XXError() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "channels", n => { Channels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "conditionName", n => { ConditionName = n.GetStringValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetStringValue(); } }, - { "inheritance", n => { Inheritance = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_inheritance.CreateFromDiscriminatorValue); } }, - { "matchAll", n => { MatchAll = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_matchAll.CreateFromDiscriminatorValue)?.AsList(); } }, - { "matchAny", n => { MatchAny = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_matchAny.CreateFromDiscriminatorValue)?.AsList(); } }, - { "notificationAction", n => { NotificationAction = n.GetEnumValue(); } }, - { "notifyOnReset", n => { NotifyOnReset = n.GetBoolValue(); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "resetThreshold", n => { ResetThreshold = n.GetIntValue(); } }, - { "scripts", n => { Scripts = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_scripts.CreateFromDiscriminatorValue)?.AsList(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("channels", Channels); - writer.WriteStringValue("conditionName", ConditionName); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteStringValue("id", Id); - writer.WriteObjectValue("inheritance", Inheritance); - writer.WriteCollectionOfObjectValues("matchAll", MatchAll); - writer.WriteCollectionOfObjectValues("matchAny", MatchAny); - writer.WriteEnumValue("notificationAction", NotificationAction); - writer.WriteBoolValue("notifyOnReset", NotifyOnReset); - writer.WriteEnumValue("priority", Priority); - writer.WriteIntValue("resetThreshold", ResetThreshold); - writer.WriteCollectionOfObjectValues("scripts", Scripts); - writer.WriteEnumValue("severity", Severity); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_inheritance.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_inheritance.cs deleted file mode 100644 index 44e980b..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_inheritance.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// - /// Policy condition inheritance status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_4XXError_inheritance : 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; } - /// Is policy condition inherited - public bool? Inherited { get; set; } - /// Is policy condition overridden - public bool? Overridden { get; set; } - /// Parent policy Id - public int? SourcePolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_4XXError_inheritance() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_inheritance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_inheritance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "inherited", n => { Inherited = n.GetBoolValue(); } }, - { "overridden", n => { Overridden = n.GetBoolValue(); } }, - { "sourcePolicyId", n => { SourcePolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("inherited", Inherited); - writer.WriteBoolValue("overridden", Overridden); - writer.WriteIntValue("sourcePolicyId", SourcePolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_matchAll.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_matchAll.cs deleted file mode 100644 index 6fd281a..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_matchAll.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// - /// Policy condition custom field - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_4XXError_matchAll : 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; } - /// Custom field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Custom field operator - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_matchAll_operator? Operator { get; set; } - /// Custom field value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_4XXError_matchAll() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_matchAll CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_matchAll(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "operator", n => { Operator = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("operator", Operator); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_matchAll_operator.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_matchAll_operator.cs deleted file mode 100644 index 6a33b2b..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_matchAll_operator.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// Custom field operator - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_4XXError_matchAll_operator - { - [EnumMember(Value = "EQUALS")] - #pragma warning disable CS1591 - EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_EQUALS")] - #pragma warning disable CS1591 - NOT_EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_THAN")] - #pragma warning disable CS1591 - LESS_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - LESS_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_THAN")] - #pragma warning disable CS1591 - GREATER_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - GREATER_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "IS_NOT_NULL")] - #pragma warning disable CS1591 - IS_NOT_NULL, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_NONE")] - #pragma warning disable CS1591 - CONTAINS_NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_ANY")] - #pragma warning disable CS1591 - CONTAINS_ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_matchAny.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_matchAny.cs deleted file mode 100644 index 4b63400..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_matchAny.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// - /// Policy condition custom field - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_4XXError_matchAny : 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; } - /// Custom field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Custom field operator - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_matchAny_operator? Operator { get; set; } - /// Custom field value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_4XXError_matchAny() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_matchAny CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_matchAny(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "operator", n => { Operator = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("operator", Operator); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_matchAny_operator.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_matchAny_operator.cs deleted file mode 100644 index 9b15ed6..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_matchAny_operator.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// Custom field operator - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_4XXError_matchAny_operator - { - [EnumMember(Value = "EQUALS")] - #pragma warning disable CS1591 - EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_EQUALS")] - #pragma warning disable CS1591 - NOT_EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_THAN")] - #pragma warning disable CS1591 - LESS_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - LESS_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_THAN")] - #pragma warning disable CS1591 - GREATER_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - GREATER_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "IS_NOT_NULL")] - #pragma warning disable CS1591 - IS_NOT_NULL, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_NONE")] - #pragma warning disable CS1591 - CONTAINS_NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_ANY")] - #pragma warning disable CS1591 - CONTAINS_ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_notificationAction.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_notificationAction.cs deleted file mode 100644 index 1e751d9..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_notificationAction.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// Policy condition notification action - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_4XXError_notificationAction - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "SEND")] - #pragma warning disable CS1591 - SEND, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_priority.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_priority.cs deleted file mode 100644 index 0df9d65..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_priority.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// Policy condition priority - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_4XXError_priority - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_scripts.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_scripts.cs deleted file mode 100644 index 22158cc..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_scripts.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// - /// Policy condition script - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_4XXError_scripts : 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; } - /// Policy condition script runAs - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_scripts_runAs? RunAs { get; set; } - /// Policy condition script id - public int? ScriptId { get; set; } - /// Policy condition script parameter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ScriptParam { get; set; } -#nullable restore -#else - public string ScriptParam { get; set; } -#endif - /// Policy condition script variables -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ScriptVariables { get; set; } -#nullable restore -#else - public List ScriptVariables { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_4XXError_scripts() - { - AdditionalData = new Dictionary(); - RunAs = global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_scripts_runAs.SYSTEM; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_scripts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_scripts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "runAs", n => { RunAs = n.GetEnumValue(); } }, - { "scriptId", n => { ScriptId = n.GetIntValue(); } }, - { "scriptParam", n => { ScriptParam = n.GetStringValue(); } }, - { "scriptVariables", n => { ScriptVariables = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_scripts_scriptVariables.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("runAs", RunAs); - writer.WriteIntValue("scriptId", ScriptId); - writer.WriteStringValue("scriptParam", ScriptParam); - writer.WriteCollectionOfObjectValues("scriptVariables", ScriptVariables); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_scripts_runAs.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_scripts_runAs.cs deleted file mode 100644 index e162a12..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_scripts_runAs.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// Policy condition script runAs - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_4XXError_scripts_runAs - { - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "LOGGED_ON_USER")] - #pragma warning disable CS1591 - LOGGED_ON_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCAL_ADMIN")] - #pragma warning disable CS1591 - LOCAL_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "DOMAIN_ADMIN")] - #pragma warning disable CS1591 - DOMAIN_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_MAC")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_LINUX")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_LINUX, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_scripts_scriptVariables.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_scripts_scriptVariables.cs deleted file mode 100644 index 26bff03..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_scripts_scriptVariables.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// - /// Policy condition script variable - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_4XXError_scripts_scriptVariables : 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; } - /// Policy condition script variable Id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition script variable value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_4XXError_scripts_scriptVariables() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_scripts_scriptVariables CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError_scripts_scriptVariables(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetStringValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_severity.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_severity.cs deleted file mode 100644 index db58d9d..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_4XXError_severity.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// Policy condition severity - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_4XXError_severity - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError.cs deleted file mode 100644 index 5755f26..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError.cs +++ /dev/null @@ -1,163 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// - /// Custom fields policy condition response payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_5XXError : ApiException, 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; } - /// Policy condition notification channels -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Channels { get; set; } -#nullable restore -#else - public List Channels { get; set; } -#endif - /// Policy condition name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ConditionName { get; set; } -#nullable restore -#else - public string ConditionName { get; set; } -#endif - /// Policy condition display name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// Policy condition enabled - public bool? Enabled { get; set; } - /// Policy condition id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition inheritance status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_inheritance? Inheritance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_inheritance Inheritance { get; set; } -#endif - /// Custom field value must meet all conditions -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MatchAll { get; set; } -#nullable restore -#else - public List MatchAll { get; set; } -#endif - /// Custom field value must meet any conditions -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MatchAny { get; set; } -#nullable restore -#else - public List MatchAny { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Policy condition notification action - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_notificationAction? NotificationAction { get; set; } - /// Policy condition notify on reset - public bool? NotifyOnReset { get; set; } - /// Policy condition priority - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_priority? Priority { get; set; } - /// Policy condition reset threshold (seconds) - public int? ResetThreshold { get; set; } - /// Policy condition scripts -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Scripts { get; set; } -#nullable restore -#else - public List Scripts { get; set; } -#endif - /// Policy condition severity - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_severity? Severity { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_5XXError() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "channels", n => { Channels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "conditionName", n => { ConditionName = n.GetStringValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetStringValue(); } }, - { "inheritance", n => { Inheritance = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_inheritance.CreateFromDiscriminatorValue); } }, - { "matchAll", n => { MatchAll = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_matchAll.CreateFromDiscriminatorValue)?.AsList(); } }, - { "matchAny", n => { MatchAny = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_matchAny.CreateFromDiscriminatorValue)?.AsList(); } }, - { "notificationAction", n => { NotificationAction = n.GetEnumValue(); } }, - { "notifyOnReset", n => { NotifyOnReset = n.GetBoolValue(); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "resetThreshold", n => { ResetThreshold = n.GetIntValue(); } }, - { "scripts", n => { Scripts = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_scripts.CreateFromDiscriminatorValue)?.AsList(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("channels", Channels); - writer.WriteStringValue("conditionName", ConditionName); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteStringValue("id", Id); - writer.WriteObjectValue("inheritance", Inheritance); - writer.WriteCollectionOfObjectValues("matchAll", MatchAll); - writer.WriteCollectionOfObjectValues("matchAny", MatchAny); - writer.WriteEnumValue("notificationAction", NotificationAction); - writer.WriteBoolValue("notifyOnReset", NotifyOnReset); - writer.WriteEnumValue("priority", Priority); - writer.WriteIntValue("resetThreshold", ResetThreshold); - writer.WriteCollectionOfObjectValues("scripts", Scripts); - writer.WriteEnumValue("severity", Severity); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_inheritance.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_inheritance.cs deleted file mode 100644 index eaf3475..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_inheritance.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// - /// Policy condition inheritance status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_5XXError_inheritance : 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; } - /// Is policy condition inherited - public bool? Inherited { get; set; } - /// Is policy condition overridden - public bool? Overridden { get; set; } - /// Parent policy Id - public int? SourcePolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_5XXError_inheritance() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_inheritance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_inheritance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "inherited", n => { Inherited = n.GetBoolValue(); } }, - { "overridden", n => { Overridden = n.GetBoolValue(); } }, - { "sourcePolicyId", n => { SourcePolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("inherited", Inherited); - writer.WriteBoolValue("overridden", Overridden); - writer.WriteIntValue("sourcePolicyId", SourcePolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_matchAll.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_matchAll.cs deleted file mode 100644 index c6fd5ea..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_matchAll.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// - /// Policy condition custom field - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_5XXError_matchAll : 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; } - /// Custom field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Custom field operator - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_matchAll_operator? Operator { get; set; } - /// Custom field value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_5XXError_matchAll() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_matchAll CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_matchAll(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "operator", n => { Operator = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("operator", Operator); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_matchAll_operator.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_matchAll_operator.cs deleted file mode 100644 index 5c7cb62..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_matchAll_operator.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// Custom field operator - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_5XXError_matchAll_operator - { - [EnumMember(Value = "EQUALS")] - #pragma warning disable CS1591 - EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_EQUALS")] - #pragma warning disable CS1591 - NOT_EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_THAN")] - #pragma warning disable CS1591 - LESS_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - LESS_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_THAN")] - #pragma warning disable CS1591 - GREATER_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - GREATER_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "IS_NOT_NULL")] - #pragma warning disable CS1591 - IS_NOT_NULL, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_NONE")] - #pragma warning disable CS1591 - CONTAINS_NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_ANY")] - #pragma warning disable CS1591 - CONTAINS_ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_matchAny.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_matchAny.cs deleted file mode 100644 index 8d9b3e8..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_matchAny.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// - /// Policy condition custom field - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_5XXError_matchAny : 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; } - /// Custom field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// Custom field operator - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_matchAny_operator? Operator { get; set; } - /// Custom field value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_5XXError_matchAny() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_matchAny CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_matchAny(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "operator", n => { Operator = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteEnumValue("operator", Operator); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_matchAny_operator.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_matchAny_operator.cs deleted file mode 100644 index 5a0030b..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_matchAny_operator.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// Custom field operator - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_5XXError_matchAny_operator - { - [EnumMember(Value = "EQUALS")] - #pragma warning disable CS1591 - EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_EQUALS")] - #pragma warning disable CS1591 - NOT_EQUALS, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_THAN")] - #pragma warning disable CS1591 - LESS_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "LESS_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - LESS_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_THAN")] - #pragma warning disable CS1591 - GREATER_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "GREATER_OR_EQUAL_THAN")] - #pragma warning disable CS1591 - GREATER_OR_EQUAL_THAN, - #pragma warning restore CS1591 - [EnumMember(Value = "IS_NOT_NULL")] - #pragma warning disable CS1591 - IS_NOT_NULL, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_NONE")] - #pragma warning disable CS1591 - CONTAINS_NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTAINS_ANY")] - #pragma warning disable CS1591 - CONTAINS_ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_notificationAction.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_notificationAction.cs deleted file mode 100644 index 8f43abc..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_notificationAction.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// Policy condition notification action - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_5XXError_notificationAction - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "SEND")] - #pragma warning disable CS1591 - SEND, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_priority.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_priority.cs deleted file mode 100644 index 9a1d89d..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_priority.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// Policy condition priority - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_5XXError_priority - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_scripts.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_scripts.cs deleted file mode 100644 index e83050c..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_scripts.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// - /// Policy condition script - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_5XXError_scripts : 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; } - /// Policy condition script runAs - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_scripts_runAs? RunAs { get; set; } - /// Policy condition script id - public int? ScriptId { get; set; } - /// Policy condition script parameter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ScriptParam { get; set; } -#nullable restore -#else - public string ScriptParam { get; set; } -#endif - /// Policy condition script variables -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ScriptVariables { get; set; } -#nullable restore -#else - public List ScriptVariables { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_5XXError_scripts() - { - AdditionalData = new Dictionary(); - RunAs = global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_scripts_runAs.SYSTEM; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_scripts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_scripts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "runAs", n => { RunAs = n.GetEnumValue(); } }, - { "scriptId", n => { ScriptId = n.GetIntValue(); } }, - { "scriptParam", n => { ScriptParam = n.GetStringValue(); } }, - { "scriptVariables", n => { ScriptVariables = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_scripts_scriptVariables.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("runAs", RunAs); - writer.WriteIntValue("scriptId", ScriptId); - writer.WriteStringValue("scriptParam", ScriptParam); - writer.WriteCollectionOfObjectValues("scriptVariables", ScriptVariables); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_scripts_runAs.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_scripts_runAs.cs deleted file mode 100644 index df9f1f3..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_scripts_runAs.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// Policy condition script runAs - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_5XXError_scripts_runAs - { - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "LOGGED_ON_USER")] - #pragma warning disable CS1591 - LOGGED_ON_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCAL_ADMIN")] - #pragma warning disable CS1591 - LOCAL_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "DOMAIN_ADMIN")] - #pragma warning disable CS1591 - DOMAIN_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_MAC")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_LINUX")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_LINUX, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_scripts_scriptVariables.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_scripts_scriptVariables.cs deleted file mode 100644 index 5e1bc2f..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_scripts_scriptVariables.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// - /// Policy condition script variable - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_5XXError_scripts_scriptVariables : 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; } - /// Policy condition script variable Id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition script variable value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_5XXError_scripts_scriptVariables() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_scripts_scriptVariables CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError_scripts_scriptVariables(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetStringValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_severity.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_severity.cs deleted file mode 100644 index d30fa22..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_5XXError_severity.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// Policy condition severity - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_5XXError_severity - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_ItemRequestBuilder.cs b/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_ItemRequestBuilder.cs deleted file mode 100644 index 02737e2..0000000 --- a/V2/Policies/Item/Condition/CustomFields/Item/WithCondition_ItemRequestBuilder.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item -{ - /// - /// Builds and executes requests for operations under \v2\policies\{policy_id}\condition\custom-fields\{condition_id} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_ItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithCondition_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/policies/{policy_id}/condition/custom-fields/{condition_id}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithCondition_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/policies/{policy_id}/condition/custom-fields/{condition_id}", rawUrl) - { - } - /// - /// Get specified custom fields condition for specified policy - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Get specified custom fields condition for specified policy - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_ItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Policies.Item.Condition.CustomFields.Item.WithCondition_ItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_ItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/Item/WithCondition_ItemRequestBuilder.cs b/V2/Policies/Item/Condition/Item/WithCondition_ItemRequestBuilder.cs deleted file mode 100644 index a39fb02..0000000 --- a/V2/Policies/Item/Condition/Item/WithCondition_ItemRequestBuilder.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.Item -{ - /// - /// Builds and executes requests for operations under \v2\policies\{policy_id}\condition\{condition_id} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_ItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithCondition_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/policies/{policy_id}/condition/{condition_id}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithCondition_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/policies/{policy_id}/condition/{condition_id}", rawUrl) - { - } - /// - /// Deletes specified policy condition from specified agent policy - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Deletes specified policy condition from specified agent policy - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Policies.Item.Condition.Item.WithCondition_ItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Policies.Item.Condition.Item.WithCondition_ItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_ItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError.cs deleted file mode 100644 index 94b37dc..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError.cs +++ /dev/null @@ -1,183 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// - /// Windows event policy condition response payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_4XXError : ApiException, 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; } - /// Policy condition notification channels -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Channels { get; set; } -#nullable restore -#else - public List Channels { get; set; } -#endif - /// Policy condition name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ConditionName { get; set; } -#nullable restore -#else - public string ConditionName { get; set; } -#endif - /// Policy condition display name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// Policy condition enabled - public bool? Enabled { get; set; } - /// Event IDs -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? EventIds { get; set; } -#nullable restore -#else - public List EventIds { get; set; } -#endif - /// Policy condition id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition inheritance status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_inheritance? Inheritance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_inheritance Inheritance { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Policy condition notification action - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_notificationAction? NotificationAction { get; set; } - /// Policy condition notify on reset - public bool? NotifyOnReset { get; set; } - /// Windows event policy condition occurrence -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_occurrence? Occurrence { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_occurrence Occurrence { get; set; } -#endif - /// Policy condition priority - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_priority? Priority { get; set; } - /// Policy condition reset threshold (seconds) - public int? ResetThreshold { get; set; } - /// Policy condition scripts -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Scripts { get; set; } -#nullable restore -#else - public List Scripts { get; set; } -#endif - /// Policy condition severity - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_severity? Severity { get; set; } - /// Event Source -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SourceEscaped { get; set; } -#nullable restore -#else - public string SourceEscaped { get; set; } -#endif - /// Windows event policy condition text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_text? Text { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_text Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_4XXError() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "channels", n => { Channels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "conditionName", n => { ConditionName = n.GetStringValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "eventIds", n => { EventIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "id", n => { Id = n.GetStringValue(); } }, - { "inheritance", n => { Inheritance = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_inheritance.CreateFromDiscriminatorValue); } }, - { "notificationAction", n => { NotificationAction = n.GetEnumValue(); } }, - { "notifyOnReset", n => { NotifyOnReset = n.GetBoolValue(); } }, - { "occurrence", n => { Occurrence = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_occurrence.CreateFromDiscriminatorValue); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "resetThreshold", n => { ResetThreshold = n.GetIntValue(); } }, - { "scripts", n => { Scripts = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_scripts.CreateFromDiscriminatorValue)?.AsList(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - { "source", n => { SourceEscaped = n.GetStringValue(); } }, - { "text", n => { Text = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_text.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("channels", Channels); - writer.WriteStringValue("conditionName", ConditionName); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteCollectionOfPrimitiveValues("eventIds", EventIds); - writer.WriteStringValue("id", Id); - writer.WriteObjectValue("inheritance", Inheritance); - writer.WriteEnumValue("notificationAction", NotificationAction); - writer.WriteBoolValue("notifyOnReset", NotifyOnReset); - writer.WriteObjectValue("occurrence", Occurrence); - writer.WriteEnumValue("priority", Priority); - writer.WriteIntValue("resetThreshold", ResetThreshold); - writer.WriteCollectionOfObjectValues("scripts", Scripts); - writer.WriteEnumValue("severity", Severity); - writer.WriteStringValue("source", SourceEscaped); - writer.WriteObjectValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_inheritance.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_inheritance.cs deleted file mode 100644 index ed39aaa..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_inheritance.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// - /// Policy condition inheritance status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_4XXError_inheritance : 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; } - /// Is policy condition inherited - public bool? Inherited { get; set; } - /// Is policy condition overridden - public bool? Overridden { get; set; } - /// Parent policy Id - public int? SourcePolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_4XXError_inheritance() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_inheritance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_inheritance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "inherited", n => { Inherited = n.GetBoolValue(); } }, - { "overridden", n => { Overridden = n.GetBoolValue(); } }, - { "sourcePolicyId", n => { SourcePolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("inherited", Inherited); - writer.WriteBoolValue("overridden", Overridden); - writer.WriteIntValue("sourcePolicyId", SourcePolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_notificationAction.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_notificationAction.cs deleted file mode 100644 index 44b8d02..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_notificationAction.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// Policy condition notification action - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_4XXError_notificationAction - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "SEND")] - #pragma warning disable CS1591 - SEND, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_occurrence.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_occurrence.cs deleted file mode 100644 index 8c2a5f5..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_occurrence.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// - /// Windows event policy condition occurrence - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_4XXError_occurrence : 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; } - /// Occurrence duration - public int? Duration { get; set; } - /// Occurrence enabled - public bool? Enabled { get; set; } - /// Occurrence threshold - public int? Threshold { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_4XXError_occurrence() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_occurrence CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_occurrence(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "duration", n => { Duration = n.GetIntValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "threshold", n => { Threshold = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("duration", Duration); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("threshold", Threshold); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_priority.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_priority.cs deleted file mode 100644 index c0fe4ac..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_priority.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// Policy condition priority - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_4XXError_priority - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_scripts.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_scripts.cs deleted file mode 100644 index d9168d0..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_scripts.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// - /// Policy condition script - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_4XXError_scripts : 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; } - /// Policy condition script runAs - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_scripts_runAs? RunAs { get; set; } - /// Policy condition script id - public int? ScriptId { get; set; } - /// Policy condition script parameter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ScriptParam { get; set; } -#nullable restore -#else - public string ScriptParam { get; set; } -#endif - /// Policy condition script variables -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ScriptVariables { get; set; } -#nullable restore -#else - public List ScriptVariables { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_4XXError_scripts() - { - AdditionalData = new Dictionary(); - RunAs = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_scripts_runAs.SYSTEM; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_scripts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_scripts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "runAs", n => { RunAs = n.GetEnumValue(); } }, - { "scriptId", n => { ScriptId = n.GetIntValue(); } }, - { "scriptParam", n => { ScriptParam = n.GetStringValue(); } }, - { "scriptVariables", n => { ScriptVariables = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_scripts_scriptVariables.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("runAs", RunAs); - writer.WriteIntValue("scriptId", ScriptId); - writer.WriteStringValue("scriptParam", ScriptParam); - writer.WriteCollectionOfObjectValues("scriptVariables", ScriptVariables); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_scripts_runAs.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_scripts_runAs.cs deleted file mode 100644 index 708d166..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_scripts_runAs.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// Policy condition script runAs - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_4XXError_scripts_runAs - { - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "LOGGED_ON_USER")] - #pragma warning disable CS1591 - LOGGED_ON_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCAL_ADMIN")] - #pragma warning disable CS1591 - LOCAL_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "DOMAIN_ADMIN")] - #pragma warning disable CS1591 - DOMAIN_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_MAC")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_LINUX")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_LINUX, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_scripts_scriptVariables.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_scripts_scriptVariables.cs deleted file mode 100644 index a2cdf4f..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_scripts_scriptVariables.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// - /// Policy condition script variable - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_4XXError_scripts_scriptVariables : 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; } - /// Policy condition script variable Id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition script variable value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_4XXError_scripts_scriptVariables() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_scripts_scriptVariables CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_scripts_scriptVariables(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetStringValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_severity.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_severity.cs deleted file mode 100644 index c770ff3..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_severity.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// Policy condition severity - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_4XXError_severity - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_text.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_text.cs deleted file mode 100644 index f8f8061..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_text.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// - /// Windows event policy condition text - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_4XXError_text : 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; } - /// Text condition - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_text_condition? Condition { get; set; } - /// Text include - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_text_include? Include { get; set; } - /// Text values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_4XXError_text() - { - AdditionalData = new Dictionary(); - Condition = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_text_condition.CONTAINS; - Include = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_text_include.ALL; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_text CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError_text(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "condition", n => { Condition = n.GetEnumValue(); } }, - { "include", n => { Include = n.GetEnumValue(); } }, - { "values", n => { Values = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("condition", Condition); - writer.WriteEnumValue("include", Include); - writer.WriteCollectionOfPrimitiveValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_text_condition.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_text_condition.cs deleted file mode 100644 index aae9b0f..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_text_condition.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// Text condition - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_4XXError_text_condition - { - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_CONTAINS")] - #pragma warning disable CS1591 - NOT_CONTAINS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_text_include.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_text_include.cs deleted file mode 100644 index a6a7ea7..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_4XXError_text_include.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// Text include - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_4XXError_text_include - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "ANY")] - #pragma warning disable CS1591 - ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError.cs deleted file mode 100644 index fd5571e..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError.cs +++ /dev/null @@ -1,183 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// - /// Windows event policy condition response payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_5XXError : ApiException, 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; } - /// Policy condition notification channels -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Channels { get; set; } -#nullable restore -#else - public List Channels { get; set; } -#endif - /// Policy condition name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ConditionName { get; set; } -#nullable restore -#else - public string ConditionName { get; set; } -#endif - /// Policy condition display name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// Policy condition enabled - public bool? Enabled { get; set; } - /// Event IDs -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? EventIds { get; set; } -#nullable restore -#else - public List EventIds { get; set; } -#endif - /// Policy condition id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition inheritance status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_inheritance? Inheritance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_inheritance Inheritance { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Policy condition notification action - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_notificationAction? NotificationAction { get; set; } - /// Policy condition notify on reset - public bool? NotifyOnReset { get; set; } - /// Windows event policy condition occurrence -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_occurrence? Occurrence { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_occurrence Occurrence { get; set; } -#endif - /// Policy condition priority - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_priority? Priority { get; set; } - /// Policy condition reset threshold (seconds) - public int? ResetThreshold { get; set; } - /// Policy condition scripts -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Scripts { get; set; } -#nullable restore -#else - public List Scripts { get; set; } -#endif - /// Policy condition severity - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_severity? Severity { get; set; } - /// Event Source -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SourceEscaped { get; set; } -#nullable restore -#else - public string SourceEscaped { get; set; } -#endif - /// Windows event policy condition text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_text? Text { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_text Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_5XXError() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "channels", n => { Channels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "conditionName", n => { ConditionName = n.GetStringValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "eventIds", n => { EventIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "id", n => { Id = n.GetStringValue(); } }, - { "inheritance", n => { Inheritance = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_inheritance.CreateFromDiscriminatorValue); } }, - { "notificationAction", n => { NotificationAction = n.GetEnumValue(); } }, - { "notifyOnReset", n => { NotifyOnReset = n.GetBoolValue(); } }, - { "occurrence", n => { Occurrence = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_occurrence.CreateFromDiscriminatorValue); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "resetThreshold", n => { ResetThreshold = n.GetIntValue(); } }, - { "scripts", n => { Scripts = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_scripts.CreateFromDiscriminatorValue)?.AsList(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - { "source", n => { SourceEscaped = n.GetStringValue(); } }, - { "text", n => { Text = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_text.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("channels", Channels); - writer.WriteStringValue("conditionName", ConditionName); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteCollectionOfPrimitiveValues("eventIds", EventIds); - writer.WriteStringValue("id", Id); - writer.WriteObjectValue("inheritance", Inheritance); - writer.WriteEnumValue("notificationAction", NotificationAction); - writer.WriteBoolValue("notifyOnReset", NotifyOnReset); - writer.WriteObjectValue("occurrence", Occurrence); - writer.WriteEnumValue("priority", Priority); - writer.WriteIntValue("resetThreshold", ResetThreshold); - writer.WriteCollectionOfObjectValues("scripts", Scripts); - writer.WriteEnumValue("severity", Severity); - writer.WriteStringValue("source", SourceEscaped); - writer.WriteObjectValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_inheritance.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_inheritance.cs deleted file mode 100644 index ee499be..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_inheritance.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// - /// Policy condition inheritance status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_5XXError_inheritance : 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; } - /// Is policy condition inherited - public bool? Inherited { get; set; } - /// Is policy condition overridden - public bool? Overridden { get; set; } - /// Parent policy Id - public int? SourcePolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_5XXError_inheritance() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_inheritance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_inheritance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "inherited", n => { Inherited = n.GetBoolValue(); } }, - { "overridden", n => { Overridden = n.GetBoolValue(); } }, - { "sourcePolicyId", n => { SourcePolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("inherited", Inherited); - writer.WriteBoolValue("overridden", Overridden); - writer.WriteIntValue("sourcePolicyId", SourcePolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_notificationAction.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_notificationAction.cs deleted file mode 100644 index db10305..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_notificationAction.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// Policy condition notification action - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_5XXError_notificationAction - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "SEND")] - #pragma warning disable CS1591 - SEND, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_occurrence.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_occurrence.cs deleted file mode 100644 index c60790b..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_occurrence.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// - /// Windows event policy condition occurrence - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_5XXError_occurrence : 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; } - /// Occurrence duration - public int? Duration { get; set; } - /// Occurrence enabled - public bool? Enabled { get; set; } - /// Occurrence threshold - public int? Threshold { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_5XXError_occurrence() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_occurrence CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_occurrence(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "duration", n => { Duration = n.GetIntValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "threshold", n => { Threshold = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("duration", Duration); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("threshold", Threshold); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_priority.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_priority.cs deleted file mode 100644 index d0fa7ad..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_priority.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// Policy condition priority - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_5XXError_priority - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_scripts.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_scripts.cs deleted file mode 100644 index d902beb..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_scripts.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// - /// Policy condition script - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_5XXError_scripts : 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; } - /// Policy condition script runAs - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_scripts_runAs? RunAs { get; set; } - /// Policy condition script id - public int? ScriptId { get; set; } - /// Policy condition script parameter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ScriptParam { get; set; } -#nullable restore -#else - public string ScriptParam { get; set; } -#endif - /// Policy condition script variables -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ScriptVariables { get; set; } -#nullable restore -#else - public List ScriptVariables { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_5XXError_scripts() - { - AdditionalData = new Dictionary(); - RunAs = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_scripts_runAs.SYSTEM; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_scripts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_scripts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "runAs", n => { RunAs = n.GetEnumValue(); } }, - { "scriptId", n => { ScriptId = n.GetIntValue(); } }, - { "scriptParam", n => { ScriptParam = n.GetStringValue(); } }, - { "scriptVariables", n => { ScriptVariables = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_scripts_scriptVariables.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("runAs", RunAs); - writer.WriteIntValue("scriptId", ScriptId); - writer.WriteStringValue("scriptParam", ScriptParam); - writer.WriteCollectionOfObjectValues("scriptVariables", ScriptVariables); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_scripts_runAs.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_scripts_runAs.cs deleted file mode 100644 index 2bff439..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_scripts_runAs.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// Policy condition script runAs - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_5XXError_scripts_runAs - { - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "LOGGED_ON_USER")] - #pragma warning disable CS1591 - LOGGED_ON_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCAL_ADMIN")] - #pragma warning disable CS1591 - LOCAL_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "DOMAIN_ADMIN")] - #pragma warning disable CS1591 - DOMAIN_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_MAC")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_LINUX")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_LINUX, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_scripts_scriptVariables.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_scripts_scriptVariables.cs deleted file mode 100644 index 0952709..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_scripts_scriptVariables.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// - /// Policy condition script variable - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_5XXError_scripts_scriptVariables : 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; } - /// Policy condition script variable Id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition script variable value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_5XXError_scripts_scriptVariables() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_scripts_scriptVariables CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_scripts_scriptVariables(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetStringValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_severity.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_severity.cs deleted file mode 100644 index 7a3f468..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_severity.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// Policy condition severity - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_5XXError_severity - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_text.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_text.cs deleted file mode 100644 index e13c1d8..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_text.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// - /// Windows event policy condition text - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_5XXError_text : 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; } - /// Text condition - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_text_condition? Condition { get; set; } - /// Text include - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_text_include? Include { get; set; } - /// Text values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithCondition_5XXError_text() - { - AdditionalData = new Dictionary(); - Condition = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_text_condition.CONTAINS; - Include = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_text_include.ALL; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_text CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError_text(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "condition", n => { Condition = n.GetEnumValue(); } }, - { "include", n => { Include = n.GetEnumValue(); } }, - { "values", n => { Values = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("condition", Condition); - writer.WriteEnumValue("include", Include); - writer.WriteCollectionOfPrimitiveValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_text_condition.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_text_condition.cs deleted file mode 100644 index 61d00c7..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_text_condition.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// Text condition - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_5XXError_text_condition - { - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_CONTAINS")] - #pragma warning disable CS1591 - NOT_CONTAINS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_text_include.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_text_include.cs deleted file mode 100644 index 034e084..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_5XXError_text_include.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// Text include - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithCondition_5XXError_text_include - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "ANY")] - #pragma warning disable CS1591 - ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_ItemRequestBuilder.cs b/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_ItemRequestBuilder.cs deleted file mode 100644 index 8705df3..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/Item/WithCondition_ItemRequestBuilder.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item -{ - /// - /// Builds and executes requests for operations under \v2\policies\{policy_id}\condition\windows-event\{condition_id} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_ItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithCondition_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/policies/{policy_id}/condition/windows-event/{condition_id}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithCondition_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/policies/{policy_id}/condition/windows-event/{condition_id}", rawUrl) - { - } - /// - /// Get specified windows event condition for specified policy - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Get specified windows event condition for specified policy - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_ItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_ItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithCondition_ItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent.cs deleted file mode 100644 index 4fc3e20..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent.cs +++ /dev/null @@ -1,183 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Windows event policy condition response payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent : ApiException, 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; } - /// Policy condition notification channels -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Channels { get; set; } -#nullable restore -#else - public List Channels { get; set; } -#endif - /// Policy condition name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ConditionName { get; set; } -#nullable restore -#else - public string ConditionName { get; set; } -#endif - /// Policy condition display name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// Policy condition enabled - public bool? Enabled { get; set; } - /// Event IDs -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? EventIds { get; set; } -#nullable restore -#else - public List EventIds { get; set; } -#endif - /// Policy condition id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition inheritance status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_inheritance? Inheritance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_inheritance Inheritance { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Policy condition notification action - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_notificationAction? NotificationAction { get; set; } - /// Policy condition notify on reset - public bool? NotifyOnReset { get; set; } - /// Windows event policy condition occurrence -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_occurrence? Occurrence { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_occurrence Occurrence { get; set; } -#endif - /// Policy condition priority - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_priority? Priority { get; set; } - /// Policy condition reset threshold (seconds) - public int? ResetThreshold { get; set; } - /// Policy condition scripts -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Scripts { get; set; } -#nullable restore -#else - public List Scripts { get; set; } -#endif - /// Policy condition severity - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_severity? Severity { get; set; } - /// Event Source -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SourceEscaped { get; set; } -#nullable restore -#else - public string SourceEscaped { get; set; } -#endif - /// Windows event policy condition text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_text? Text { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_text Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "channels", n => { Channels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "conditionName", n => { ConditionName = n.GetStringValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "eventIds", n => { EventIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "id", n => { Id = n.GetStringValue(); } }, - { "inheritance", n => { Inheritance = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_inheritance.CreateFromDiscriminatorValue); } }, - { "notificationAction", n => { NotificationAction = n.GetEnumValue(); } }, - { "notifyOnReset", n => { NotifyOnReset = n.GetBoolValue(); } }, - { "occurrence", n => { Occurrence = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_occurrence.CreateFromDiscriminatorValue); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "resetThreshold", n => { ResetThreshold = n.GetIntValue(); } }, - { "scripts", n => { Scripts = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_scripts.CreateFromDiscriminatorValue)?.AsList(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - { "source", n => { SourceEscaped = n.GetStringValue(); } }, - { "text", n => { Text = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_text.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("channels", Channels); - writer.WriteStringValue("conditionName", ConditionName); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteCollectionOfPrimitiveValues("eventIds", EventIds); - writer.WriteStringValue("id", Id); - writer.WriteObjectValue("inheritance", Inheritance); - writer.WriteEnumValue("notificationAction", NotificationAction); - writer.WriteBoolValue("notifyOnReset", NotifyOnReset); - writer.WriteObjectValue("occurrence", Occurrence); - writer.WriteEnumValue("priority", Priority); - writer.WriteIntValue("resetThreshold", ResetThreshold); - writer.WriteCollectionOfObjectValues("scripts", Scripts); - writer.WriteEnumValue("severity", Severity); - writer.WriteStringValue("source", SourceEscaped); - writer.WriteObjectValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError.cs deleted file mode 100644 index c416bc7..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError.cs +++ /dev/null @@ -1,183 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Windows event policy condition response payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent4XXError : ApiException, 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; } - /// Policy condition notification channels -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Channels { get; set; } -#nullable restore -#else - public List Channels { get; set; } -#endif - /// Policy condition name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ConditionName { get; set; } -#nullable restore -#else - public string ConditionName { get; set; } -#endif - /// Policy condition display name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// Policy condition enabled - public bool? Enabled { get; set; } - /// Event IDs -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? EventIds { get; set; } -#nullable restore -#else - public List EventIds { get; set; } -#endif - /// Policy condition id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition inheritance status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_inheritance? Inheritance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_inheritance Inheritance { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Policy condition notification action - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_notificationAction? NotificationAction { get; set; } - /// Policy condition notify on reset - public bool? NotifyOnReset { get; set; } - /// Windows event policy condition occurrence -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_occurrence? Occurrence { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_occurrence Occurrence { get; set; } -#endif - /// Policy condition priority - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_priority? Priority { get; set; } - /// Policy condition reset threshold (seconds) - public int? ResetThreshold { get; set; } - /// Policy condition scripts -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Scripts { get; set; } -#nullable restore -#else - public List Scripts { get; set; } -#endif - /// Policy condition severity - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_severity? Severity { get; set; } - /// Event Source -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SourceEscaped { get; set; } -#nullable restore -#else - public string SourceEscaped { get; set; } -#endif - /// Windows event policy condition text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_text? Text { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_text Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent4XXError() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "channels", n => { Channels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "conditionName", n => { ConditionName = n.GetStringValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "eventIds", n => { EventIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "id", n => { Id = n.GetStringValue(); } }, - { "inheritance", n => { Inheritance = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_inheritance.CreateFromDiscriminatorValue); } }, - { "notificationAction", n => { NotificationAction = n.GetEnumValue(); } }, - { "notifyOnReset", n => { NotifyOnReset = n.GetBoolValue(); } }, - { "occurrence", n => { Occurrence = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_occurrence.CreateFromDiscriminatorValue); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "resetThreshold", n => { ResetThreshold = n.GetIntValue(); } }, - { "scripts", n => { Scripts = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_scripts.CreateFromDiscriminatorValue)?.AsList(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - { "source", n => { SourceEscaped = n.GetStringValue(); } }, - { "text", n => { Text = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_text.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("channels", Channels); - writer.WriteStringValue("conditionName", ConditionName); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteCollectionOfPrimitiveValues("eventIds", EventIds); - writer.WriteStringValue("id", Id); - writer.WriteObjectValue("inheritance", Inheritance); - writer.WriteEnumValue("notificationAction", NotificationAction); - writer.WriteBoolValue("notifyOnReset", NotifyOnReset); - writer.WriteObjectValue("occurrence", Occurrence); - writer.WriteEnumValue("priority", Priority); - writer.WriteIntValue("resetThreshold", ResetThreshold); - writer.WriteCollectionOfObjectValues("scripts", Scripts); - writer.WriteEnumValue("severity", Severity); - writer.WriteStringValue("source", SourceEscaped); - writer.WriteObjectValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_inheritance.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_inheritance.cs deleted file mode 100644 index 07cebd8..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_inheritance.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Policy condition inheritance status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent4XXError_inheritance : 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; } - /// Is policy condition inherited - public bool? Inherited { get; set; } - /// Is policy condition overridden - public bool? Overridden { get; set; } - /// Parent policy Id - public int? SourcePolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent4XXError_inheritance() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_inheritance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_inheritance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "inherited", n => { Inherited = n.GetBoolValue(); } }, - { "overridden", n => { Overridden = n.GetBoolValue(); } }, - { "sourcePolicyId", n => { SourcePolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("inherited", Inherited); - writer.WriteBoolValue("overridden", Overridden); - writer.WriteIntValue("sourcePolicyId", SourcePolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_notificationAction.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_notificationAction.cs deleted file mode 100644 index 2955b87..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_notificationAction.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Policy condition notification action - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent4XXError_notificationAction - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "SEND")] - #pragma warning disable CS1591 - SEND, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_occurrence.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_occurrence.cs deleted file mode 100644 index f1d86d2..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_occurrence.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Windows event policy condition occurrence - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent4XXError_occurrence : 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; } - /// Occurrence duration - public int? Duration { get; set; } - /// Occurrence enabled - public bool? Enabled { get; set; } - /// Occurrence threshold - public int? Threshold { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent4XXError_occurrence() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_occurrence CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_occurrence(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "duration", n => { Duration = n.GetIntValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "threshold", n => { Threshold = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("duration", Duration); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("threshold", Threshold); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_priority.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_priority.cs deleted file mode 100644 index 21d997c..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_priority.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Policy condition priority - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent4XXError_priority - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_scripts.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_scripts.cs deleted file mode 100644 index 6db08f5..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_scripts.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Policy condition script - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent4XXError_scripts : 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; } - /// Policy condition script runAs - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_scripts_runAs? RunAs { get; set; } - /// Policy condition script id - public int? ScriptId { get; set; } - /// Policy condition script parameter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ScriptParam { get; set; } -#nullable restore -#else - public string ScriptParam { get; set; } -#endif - /// Policy condition script variables -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ScriptVariables { get; set; } -#nullable restore -#else - public List ScriptVariables { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent4XXError_scripts() - { - AdditionalData = new Dictionary(); - RunAs = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_scripts_runAs.SYSTEM; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_scripts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_scripts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "runAs", n => { RunAs = n.GetEnumValue(); } }, - { "scriptId", n => { ScriptId = n.GetIntValue(); } }, - { "scriptParam", n => { ScriptParam = n.GetStringValue(); } }, - { "scriptVariables", n => { ScriptVariables = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_scripts_scriptVariables.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("runAs", RunAs); - writer.WriteIntValue("scriptId", ScriptId); - writer.WriteStringValue("scriptParam", ScriptParam); - writer.WriteCollectionOfObjectValues("scriptVariables", ScriptVariables); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_scripts_runAs.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_scripts_runAs.cs deleted file mode 100644 index 435b170..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_scripts_runAs.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Policy condition script runAs - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent4XXError_scripts_runAs - { - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "LOGGED_ON_USER")] - #pragma warning disable CS1591 - LOGGED_ON_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCAL_ADMIN")] - #pragma warning disable CS1591 - LOCAL_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "DOMAIN_ADMIN")] - #pragma warning disable CS1591 - DOMAIN_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_MAC")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_LINUX")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_LINUX, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_scripts_scriptVariables.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_scripts_scriptVariables.cs deleted file mode 100644 index 192e85a..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_scripts_scriptVariables.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Policy condition script variable - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent4XXError_scripts_scriptVariables : 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; } - /// Policy condition script variable Id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition script variable value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent4XXError_scripts_scriptVariables() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_scripts_scriptVariables CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_scripts_scriptVariables(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetStringValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_severity.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_severity.cs deleted file mode 100644 index 450c035..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_severity.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Policy condition severity - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent4XXError_severity - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_text.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_text.cs deleted file mode 100644 index c898f4b..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_text.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Windows event policy condition text - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent4XXError_text : 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; } - /// Text condition - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_text_condition? Condition { get; set; } - /// Text include - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_text_include? Include { get; set; } - /// Text values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent4XXError_text() - { - AdditionalData = new Dictionary(); - Condition = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_text_condition.CONTAINS; - Include = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_text_include.ALL; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_text CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError_text(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "condition", n => { Condition = n.GetEnumValue(); } }, - { "include", n => { Include = n.GetEnumValue(); } }, - { "values", n => { Values = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("condition", Condition); - writer.WriteEnumValue("include", Include); - writer.WriteCollectionOfPrimitiveValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_text_condition.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_text_condition.cs deleted file mode 100644 index ddb88fb..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_text_condition.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Text condition - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent4XXError_text_condition - { - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_CONTAINS")] - #pragma warning disable CS1591 - NOT_CONTAINS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_text_include.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_text_include.cs deleted file mode 100644 index 2d15b2f..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent4XXError_text_include.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Text include - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent4XXError_text_include - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "ANY")] - #pragma warning disable CS1591 - ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError.cs deleted file mode 100644 index 99f9a81..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError.cs +++ /dev/null @@ -1,183 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Windows event policy condition response payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent5XXError : ApiException, 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; } - /// Policy condition notification channels -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Channels { get; set; } -#nullable restore -#else - public List Channels { get; set; } -#endif - /// Policy condition name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ConditionName { get; set; } -#nullable restore -#else - public string ConditionName { get; set; } -#endif - /// Policy condition display name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// Policy condition enabled - public bool? Enabled { get; set; } - /// Event IDs -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? EventIds { get; set; } -#nullable restore -#else - public List EventIds { get; set; } -#endif - /// Policy condition id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition inheritance status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_inheritance? Inheritance { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_inheritance Inheritance { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// Policy condition notification action - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_notificationAction? NotificationAction { get; set; } - /// Policy condition notify on reset - public bool? NotifyOnReset { get; set; } - /// Windows event policy condition occurrence -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_occurrence? Occurrence { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_occurrence Occurrence { get; set; } -#endif - /// Policy condition priority - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_priority? Priority { get; set; } - /// Policy condition reset threshold (seconds) - public int? ResetThreshold { get; set; } - /// Policy condition scripts -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Scripts { get; set; } -#nullable restore -#else - public List Scripts { get; set; } -#endif - /// Policy condition severity - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_severity? Severity { get; set; } - /// Event Source -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SourceEscaped { get; set; } -#nullable restore -#else - public string SourceEscaped { get; set; } -#endif - /// Windows event policy condition text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_text? Text { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_text Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent5XXError() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "channels", n => { Channels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "conditionName", n => { ConditionName = n.GetStringValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "eventIds", n => { EventIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "id", n => { Id = n.GetStringValue(); } }, - { "inheritance", n => { Inheritance = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_inheritance.CreateFromDiscriminatorValue); } }, - { "notificationAction", n => { NotificationAction = n.GetEnumValue(); } }, - { "notifyOnReset", n => { NotifyOnReset = n.GetBoolValue(); } }, - { "occurrence", n => { Occurrence = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_occurrence.CreateFromDiscriminatorValue); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "resetThreshold", n => { ResetThreshold = n.GetIntValue(); } }, - { "scripts", n => { Scripts = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_scripts.CreateFromDiscriminatorValue)?.AsList(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - { "source", n => { SourceEscaped = n.GetStringValue(); } }, - { "text", n => { Text = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_text.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("channels", Channels); - writer.WriteStringValue("conditionName", ConditionName); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteCollectionOfPrimitiveValues("eventIds", EventIds); - writer.WriteStringValue("id", Id); - writer.WriteObjectValue("inheritance", Inheritance); - writer.WriteEnumValue("notificationAction", NotificationAction); - writer.WriteBoolValue("notifyOnReset", NotifyOnReset); - writer.WriteObjectValue("occurrence", Occurrence); - writer.WriteEnumValue("priority", Priority); - writer.WriteIntValue("resetThreshold", ResetThreshold); - writer.WriteCollectionOfObjectValues("scripts", Scripts); - writer.WriteEnumValue("severity", Severity); - writer.WriteStringValue("source", SourceEscaped); - writer.WriteObjectValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_inheritance.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_inheritance.cs deleted file mode 100644 index a4e3f88..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_inheritance.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Policy condition inheritance status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent5XXError_inheritance : 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; } - /// Is policy condition inherited - public bool? Inherited { get; set; } - /// Is policy condition overridden - public bool? Overridden { get; set; } - /// Parent policy Id - public int? SourcePolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent5XXError_inheritance() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_inheritance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_inheritance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "inherited", n => { Inherited = n.GetBoolValue(); } }, - { "overridden", n => { Overridden = n.GetBoolValue(); } }, - { "sourcePolicyId", n => { SourcePolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("inherited", Inherited); - writer.WriteBoolValue("overridden", Overridden); - writer.WriteIntValue("sourcePolicyId", SourcePolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_notificationAction.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_notificationAction.cs deleted file mode 100644 index dbea18b..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_notificationAction.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Policy condition notification action - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent5XXError_notificationAction - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "SEND")] - #pragma warning disable CS1591 - SEND, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_occurrence.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_occurrence.cs deleted file mode 100644 index 03cb847..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_occurrence.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Windows event policy condition occurrence - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent5XXError_occurrence : 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; } - /// Occurrence duration - public int? Duration { get; set; } - /// Occurrence enabled - public bool? Enabled { get; set; } - /// Occurrence threshold - public int? Threshold { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent5XXError_occurrence() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_occurrence CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_occurrence(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "duration", n => { Duration = n.GetIntValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "threshold", n => { Threshold = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("duration", Duration); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("threshold", Threshold); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_priority.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_priority.cs deleted file mode 100644 index 9cba8a1..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_priority.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Policy condition priority - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent5XXError_priority - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_scripts.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_scripts.cs deleted file mode 100644 index ed0bd18..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_scripts.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Policy condition script - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent5XXError_scripts : 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; } - /// Policy condition script runAs - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_scripts_runAs? RunAs { get; set; } - /// Policy condition script id - public int? ScriptId { get; set; } - /// Policy condition script parameter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ScriptParam { get; set; } -#nullable restore -#else - public string ScriptParam { get; set; } -#endif - /// Policy condition script variables -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ScriptVariables { get; set; } -#nullable restore -#else - public List ScriptVariables { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent5XXError_scripts() - { - AdditionalData = new Dictionary(); - RunAs = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_scripts_runAs.SYSTEM; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_scripts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_scripts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "runAs", n => { RunAs = n.GetEnumValue(); } }, - { "scriptId", n => { ScriptId = n.GetIntValue(); } }, - { "scriptParam", n => { ScriptParam = n.GetStringValue(); } }, - { "scriptVariables", n => { ScriptVariables = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_scripts_scriptVariables.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("runAs", RunAs); - writer.WriteIntValue("scriptId", ScriptId); - writer.WriteStringValue("scriptParam", ScriptParam); - writer.WriteCollectionOfObjectValues("scriptVariables", ScriptVariables); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_scripts_runAs.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_scripts_runAs.cs deleted file mode 100644 index 236cd9a..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_scripts_runAs.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Policy condition script runAs - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent5XXError_scripts_runAs - { - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "LOGGED_ON_USER")] - #pragma warning disable CS1591 - LOGGED_ON_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCAL_ADMIN")] - #pragma warning disable CS1591 - LOCAL_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "DOMAIN_ADMIN")] - #pragma warning disable CS1591 - DOMAIN_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_MAC")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_LINUX")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_LINUX, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_scripts_scriptVariables.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_scripts_scriptVariables.cs deleted file mode 100644 index 3600b5d..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_scripts_scriptVariables.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Policy condition script variable - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent5XXError_scripts_scriptVariables : 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; } - /// Policy condition script variable Id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition script variable value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent5XXError_scripts_scriptVariables() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_scripts_scriptVariables CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_scripts_scriptVariables(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetStringValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_severity.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_severity.cs deleted file mode 100644 index a357323..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_severity.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Policy condition severity - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent5XXError_severity - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_text.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_text.cs deleted file mode 100644 index c1d5ebc..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_text.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Windows event policy condition text - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent5XXError_text : 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; } - /// Text condition - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_text_condition? Condition { get; set; } - /// Text include - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_text_include? Include { get; set; } - /// Text values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent5XXError_text() - { - AdditionalData = new Dictionary(); - Condition = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_text_condition.CONTAINS; - Include = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_text_include.ALL; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_text CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError_text(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "condition", n => { Condition = n.GetEnumValue(); } }, - { "include", n => { Include = n.GetEnumValue(); } }, - { "values", n => { Values = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("condition", Condition); - writer.WriteEnumValue("include", Include); - writer.WriteCollectionOfPrimitiveValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_text_condition.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_text_condition.cs deleted file mode 100644 index 3f86c9a..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_text_condition.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Text condition - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent5XXError_text_condition - { - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_CONTAINS")] - #pragma warning disable CS1591 - NOT_CONTAINS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_text_include.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_text_include.cs deleted file mode 100644 index bc9dbc4..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent5XXError_text_include.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Text include - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent5XXError_text_include - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "ANY")] - #pragma warning disable CS1591 - ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody.cs deleted file mode 100644 index 0f201ab..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody.cs +++ /dev/null @@ -1,153 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Windows event policy condition create request payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEventPostRequestBody : 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; } - /// Policy condition notification channels -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Channels { get; set; } -#nullable restore -#else - public List Channels { get; set; } -#endif - /// Policy condition display name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// Policy condition enabled - public bool? Enabled { get; set; } - /// Event IDs -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? EventIds { get; set; } -#nullable restore -#else - public List EventIds { get; set; } -#endif - /// Policy condition notification action - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_notificationAction? NotificationAction { get; set; } - /// Policy condition notify on reset - public bool? NotifyOnReset { get; set; } - /// Windows event policy condition occurrence -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_occurrence? Occurrence { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_occurrence Occurrence { get; set; } -#endif - /// Policy condition priority - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_priority? Priority { get; set; } - /// Policy condition reset threshold (seconds) - public int? ResetThreshold { get; set; } - /// Policy condition scripts -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Scripts { get; set; } -#nullable restore -#else - public List Scripts { get; set; } -#endif - /// Policy condition severity - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_severity? Severity { get; set; } - /// Event Source -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Source { get; set; } -#nullable restore -#else - public string Source { get; set; } -#endif - /// Windows event policy condition text -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_text? Text { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_text Text { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEventPostRequestBody() - { - AdditionalData = new Dictionary(); - NotificationAction = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_notificationAction.NONE; - Priority = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_priority.NONE; - Severity = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_severity.NONE; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "channels", n => { Channels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "eventIds", n => { EventIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "notificationAction", n => { NotificationAction = n.GetEnumValue(); } }, - { "notifyOnReset", n => { NotifyOnReset = n.GetBoolValue(); } }, - { "occurrence", n => { Occurrence = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_occurrence.CreateFromDiscriminatorValue); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "resetThreshold", n => { ResetThreshold = n.GetIntValue(); } }, - { "scripts", n => { Scripts = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_scripts.CreateFromDiscriminatorValue)?.AsList(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - { "source", n => { Source = n.GetStringValue(); } }, - { "text", n => { Text = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_text.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("channels", Channels); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteCollectionOfPrimitiveValues("eventIds", EventIds); - writer.WriteEnumValue("notificationAction", NotificationAction); - writer.WriteBoolValue("notifyOnReset", NotifyOnReset); - writer.WriteObjectValue("occurrence", Occurrence); - writer.WriteEnumValue("priority", Priority); - writer.WriteIntValue("resetThreshold", ResetThreshold); - writer.WriteCollectionOfObjectValues("scripts", Scripts); - writer.WriteEnumValue("severity", Severity); - writer.WriteStringValue("source", Source); - writer.WriteObjectValue("text", Text); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_notificationAction.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_notificationAction.cs deleted file mode 100644 index 02fd499..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_notificationAction.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Policy condition notification action - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEventPostRequestBody_notificationAction - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "SEND")] - #pragma warning disable CS1591 - SEND, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_occurrence.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_occurrence.cs deleted file mode 100644 index d5f8de5..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_occurrence.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Windows event policy condition occurrence - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEventPostRequestBody_occurrence : 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; } - /// Occurrence duration - public int? Duration { get; set; } - /// Occurrence enabled - public bool? Enabled { get; set; } - /// Occurrence threshold - public int? Threshold { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEventPostRequestBody_occurrence() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_occurrence CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_occurrence(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "duration", n => { Duration = n.GetIntValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "threshold", n => { Threshold = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("duration", Duration); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("threshold", Threshold); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_priority.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_priority.cs deleted file mode 100644 index 49ced0c..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_priority.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Policy condition priority - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEventPostRequestBody_priority - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_scripts.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_scripts.cs deleted file mode 100644 index da93ae3..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_scripts.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Policy condition script - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEventPostRequestBody_scripts : 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; } - /// Policy condition script runAs - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_scripts_runAs? RunAs { get; set; } - /// Policy condition script id - public int? ScriptId { get; set; } - /// Policy condition script parameter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ScriptParam { get; set; } -#nullable restore -#else - public string ScriptParam { get; set; } -#endif - /// Policy condition script variables -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ScriptVariables { get; set; } -#nullable restore -#else - public List ScriptVariables { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEventPostRequestBody_scripts() - { - AdditionalData = new Dictionary(); - RunAs = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_scripts_runAs.SYSTEM; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_scripts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_scripts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "runAs", n => { RunAs = n.GetEnumValue(); } }, - { "scriptId", n => { ScriptId = n.GetIntValue(); } }, - { "scriptParam", n => { ScriptParam = n.GetStringValue(); } }, - { "scriptVariables", n => { ScriptVariables = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_scripts_scriptVariables.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("runAs", RunAs); - writer.WriteIntValue("scriptId", ScriptId); - writer.WriteStringValue("scriptParam", ScriptParam); - writer.WriteCollectionOfObjectValues("scriptVariables", ScriptVariables); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_scripts_runAs.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_scripts_runAs.cs deleted file mode 100644 index 6f20499..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_scripts_runAs.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Policy condition script runAs - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEventPostRequestBody_scripts_runAs - { - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "LOGGED_ON_USER")] - #pragma warning disable CS1591 - LOGGED_ON_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCAL_ADMIN")] - #pragma warning disable CS1591 - LOCAL_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "DOMAIN_ADMIN")] - #pragma warning disable CS1591 - DOMAIN_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_MAC")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_LINUX")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_LINUX, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_scripts_scriptVariables.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_scripts_scriptVariables.cs deleted file mode 100644 index 78ef9ea..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_scripts_scriptVariables.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Policy condition script variable - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEventPostRequestBody_scripts_scriptVariables : 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; } - /// Policy condition script variable Id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition script variable value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEventPostRequestBody_scripts_scriptVariables() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_scripts_scriptVariables CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_scripts_scriptVariables(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetStringValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_severity.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_severity.cs deleted file mode 100644 index 1bd5632..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_severity.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Policy condition severity - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEventPostRequestBody_severity - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_text.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_text.cs deleted file mode 100644 index 91ea39e..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_text.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Windows event policy condition text - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEventPostRequestBody_text : 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; } - /// Text condition - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_text_condition? Condition { get; set; } - /// Text include - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_text_include? Include { get; set; } - /// Text values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEventPostRequestBody_text() - { - AdditionalData = new Dictionary(); - Condition = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_text_condition.CONTAINS; - Include = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_text_include.ALL; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_text CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody_text(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "condition", n => { Condition = n.GetEnumValue(); } }, - { "include", n => { Include = n.GetEnumValue(); } }, - { "values", n => { Values = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("condition", Condition); - writer.WriteEnumValue("include", Include); - writer.WriteCollectionOfPrimitiveValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_text_condition.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_text_condition.cs deleted file mode 100644 index 9cc04ea..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_text_condition.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Text condition - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEventPostRequestBody_text_condition - { - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_CONTAINS")] - #pragma warning disable CS1591 - NOT_CONTAINS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_text_include.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_text_include.cs deleted file mode 100644 index 2176e49..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventPostRequestBody_text_include.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Text include - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEventPostRequestBody_text_include - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "ANY")] - #pragma warning disable CS1591 - ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventRequestBuilder.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEventRequestBuilder.cs deleted file mode 100644 index 86a9094..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEventRequestBuilder.cs +++ /dev/null @@ -1,179 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Builds and executes requests for operations under \v2\policies\{policy_id}\condition\windows-event - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEventRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.policies.item.condition.windowsEvent.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_ItemRequestBuilder this[Guid position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("condition_id", position); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_ItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.policies.item.condition.windowsEvent.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_ItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("condition_id", position); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.Item.WithCondition_ItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WindowsEventRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/policies/{policy_id}/condition/windows-event", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WindowsEventRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/policies/{policy_id}/condition/windows-event", rawUrl) - { - } - /// - /// Get all windows event conditions for specified policy - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Creates windows event condition for specified policy - /// - /// A - /// Windows event policy condition create request payload - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Get all windows event conditions for specified policy - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Creates windows event condition for specified policy - /// - /// A - /// Windows event policy condition create request payload - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEventRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEventRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEventRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_inheritance.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_inheritance.cs deleted file mode 100644 index 856dfcd..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_inheritance.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Policy condition inheritance status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent_inheritance : 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; } - /// Is policy condition inherited - public bool? Inherited { get; set; } - /// Is policy condition overridden - public bool? Overridden { get; set; } - /// Parent policy Id - public int? SourcePolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent_inheritance() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_inheritance CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_inheritance(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "inherited", n => { Inherited = n.GetBoolValue(); } }, - { "overridden", n => { Overridden = n.GetBoolValue(); } }, - { "sourcePolicyId", n => { SourcePolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("inherited", Inherited); - writer.WriteBoolValue("overridden", Overridden); - writer.WriteIntValue("sourcePolicyId", SourcePolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_notificationAction.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_notificationAction.cs deleted file mode 100644 index 17e8a3e..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_notificationAction.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Policy condition notification action - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent_notificationAction - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "SEND")] - #pragma warning disable CS1591 - SEND, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_occurrence.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_occurrence.cs deleted file mode 100644 index 722aae4..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_occurrence.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Windows event policy condition occurrence - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent_occurrence : 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; } - /// Occurrence duration - public int? Duration { get; set; } - /// Occurrence enabled - public bool? Enabled { get; set; } - /// Occurrence threshold - public int? Threshold { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent_occurrence() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_occurrence CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_occurrence(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "duration", n => { Duration = n.GetIntValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "threshold", n => { Threshold = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("duration", Duration); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("threshold", Threshold); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_priority.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_priority.cs deleted file mode 100644 index 37e78dd..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_priority.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Policy condition priority - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent_priority - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_scripts.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_scripts.cs deleted file mode 100644 index 443b1fc..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_scripts.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Policy condition script - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent_scripts : 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; } - /// Policy condition script runAs - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_scripts_runAs? RunAs { get; set; } - /// Policy condition script id - public int? ScriptId { get; set; } - /// Policy condition script parameter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ScriptParam { get; set; } -#nullable restore -#else - public string ScriptParam { get; set; } -#endif - /// Policy condition script variables -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ScriptVariables { get; set; } -#nullable restore -#else - public List ScriptVariables { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent_scripts() - { - AdditionalData = new Dictionary(); - RunAs = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_scripts_runAs.SYSTEM; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_scripts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_scripts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "runAs", n => { RunAs = n.GetEnumValue(); } }, - { "scriptId", n => { ScriptId = n.GetIntValue(); } }, - { "scriptParam", n => { ScriptParam = n.GetStringValue(); } }, - { "scriptVariables", n => { ScriptVariables = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_scripts_scriptVariables.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("runAs", RunAs); - writer.WriteIntValue("scriptId", ScriptId); - writer.WriteStringValue("scriptParam", ScriptParam); - writer.WriteCollectionOfObjectValues("scriptVariables", ScriptVariables); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_scripts_runAs.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_scripts_runAs.cs deleted file mode 100644 index d55d730..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_scripts_runAs.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Policy condition script runAs - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent_scripts_runAs - { - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - [EnumMember(Value = "LOGGED_ON_USER")] - #pragma warning disable CS1591 - LOGGED_ON_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCAL_ADMIN")] - #pragma warning disable CS1591 - LOCAL_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "DOMAIN_ADMIN")] - #pragma warning disable CS1591 - DOMAIN_ADMIN, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_MAC")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "PREFERRED_CREDENTIAL_LINUX")] - #pragma warning disable CS1591 - PREFERRED_CREDENTIAL_LINUX, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_scripts_scriptVariables.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_scripts_scriptVariables.cs deleted file mode 100644 index d113889..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_scripts_scriptVariables.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Policy condition script variable - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent_scripts_scriptVariables : 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; } - /// Policy condition script variable Id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// Policy condition script variable value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent_scripts_scriptVariables() - { - 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_scripts_scriptVariables CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_scripts_scriptVariables(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetStringValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_severity.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_severity.cs deleted file mode 100644 index 731a8be..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_severity.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Policy condition severity - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent_severity - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_text.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_text.cs deleted file mode 100644 index 3193607..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_text.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// - /// Windows event policy condition text - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsEvent_text : 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; } - /// Text condition - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_text_condition? Condition { get; set; } - /// Text include - public global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_text_include? Include { get; set; } - /// Text values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsEvent_text() - { - AdditionalData = new Dictionary(); - Condition = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_text_condition.CONTAINS; - Include = global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_text_include.ALL; - } - /// - /// 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::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_text CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent.WindowsEvent_text(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "condition", n => { Condition = n.GetEnumValue(); } }, - { "include", n => { Include = n.GetEnumValue(); } }, - { "values", n => { Values = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("condition", Condition); - writer.WriteEnumValue("include", Include); - writer.WriteCollectionOfPrimitiveValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_text_condition.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_text_condition.cs deleted file mode 100644 index c844149..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_text_condition.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Text condition - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent_text_condition - { - [EnumMember(Value = "CONTAINS")] - #pragma warning disable CS1591 - CONTAINS, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_CONTAINS")] - #pragma warning disable CS1591 - NOT_CONTAINS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_text_include.cs b/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_text_include.cs deleted file mode 100644 index 6d43444..0000000 --- a/V2/Policies/Item/Condition/WindowsEvent/WindowsEvent_text_include.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies.Item.Condition.WindowsEvent -{ - /// Text include - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsEvent_text_include - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "ANY")] - #pragma warning disable CS1591 - ANY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Item/WithPolicy_ItemRequestBuilder.cs b/V2/Policies/Item/WithPolicy_ItemRequestBuilder.cs deleted file mode 100644 index 9081071..0000000 --- a/V2/Policies/Item/WithPolicy_ItemRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Policies.Item.Condition; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Policies.Item -{ - /// - /// Builds and executes requests for operations under \v2\policies\{policy_id} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithPolicy_ItemRequestBuilder : BaseRequestBuilder - { - /// The condition property - public global::NinjaOne.Client.V2.Policies.Item.Condition.ConditionRequestBuilder Condition - { - get => new global::NinjaOne.Client.V2.Policies.Item.Condition.ConditionRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithPolicy_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/policies/{policy_id}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithPolicy_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/policies/{policy_id}", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Policies.cs b/V2/Policies/Policies.cs deleted file mode 100644 index ef92b26..0000000 --- a/V2/Policies/Policies.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Policies : ApiException, 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Policies_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Policies_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Policies.Policies_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Policies() - { - 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::NinjaOne.Client.V2.Policies.Policies CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Policies(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Policies_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Policies4XXError.cs b/V2/Policies/Policies4XXError.cs deleted file mode 100644 index b95d742..0000000 --- a/V2/Policies/Policies4XXError.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Policies4XXError : ApiException, 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Policies4XXError_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Policies4XXError_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Policies.Policies4XXError_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Policies4XXError() - { - 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::NinjaOne.Client.V2.Policies.Policies4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Policies4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Policies4XXError_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Policies4XXError_fields.cs b/V2/Policies/Policies4XXError_fields.cs deleted file mode 100644 index 6dfac31..0000000 --- a/V2/Policies/Policies4XXError_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Policies4XXError_fields : 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. - /// - public Policies4XXError_fields() - { - 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::NinjaOne.Client.V2.Policies.Policies4XXError_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Policies4XXError_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Policies4XXError_nodeClass.cs b/V2/Policies/Policies4XXError_nodeClass.cs deleted file mode 100644 index 87b3449..0000000 --- a/V2/Policies/Policies4XXError_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Policies4XXError_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/Policies5XXError.cs b/V2/Policies/Policies5XXError.cs deleted file mode 100644 index e61c09f..0000000 --- a/V2/Policies/Policies5XXError.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies -{ - /// - /// Assigned policy (overrides organization and location policy mapping) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Policies5XXError : ApiException, 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Policies.Policies5XXError_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Policies.Policies5XXError_fields Fields { get; set; } -#endif - /// Policy identifier - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Policies.Policies5XXError_nodeClass? NodeClass { get; set; } - /// Is Default Policy for Node Class - public bool? NodeClassDefault { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Last update timestamp - public double? Updated { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Policies5XXError() - { - 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::NinjaOne.Client.V2.Policies.Policies5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Policies5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Policies.Policies5XXError_fields.CreateFromDiscriminatorValue); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeClassDefault", n => { NodeClassDefault = n.GetBoolValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteBoolValue("nodeClassDefault", NodeClassDefault); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDoubleValue("updated", Updated); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Policies5XXError_fields.cs b/V2/Policies/Policies5XXError_fields.cs deleted file mode 100644 index afd9af0..0000000 --- a/V2/Policies/Policies5XXError_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Policies5XXError_fields : 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. - /// - public Policies5XXError_fields() - { - 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::NinjaOne.Client.V2.Policies.Policies5XXError_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Policies5XXError_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Policies5XXError_nodeClass.cs b/V2/Policies/Policies5XXError_nodeClass.cs deleted file mode 100644 index b73dd4a..0000000 --- a/V2/Policies/Policies5XXError_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Policies5XXError_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/PoliciesPostRequestBody.cs b/V2/Policies/PoliciesPostRequestBody.cs deleted file mode 100644 index d8e644c..0000000 --- a/V2/Policies/PoliciesPostRequestBody.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class PoliciesPostRequestBody : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Policy Enabled Flag - public bool? Enabled { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Policies.PoliciesPostRequestBody_nodeClass? NodeClass { get; set; } - /// Parent Policy identifier - public int? ParentPolicyId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public PoliciesPostRequestBody() - { - 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::NinjaOne.Client.V2.Policies.PoliciesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.PoliciesPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "parentPolicyId", n => { ParentPolicyId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("parentPolicyId", ParentPolicyId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/PoliciesPostRequestBody_nodeClass.cs b/V2/Policies/PoliciesPostRequestBody_nodeClass.cs deleted file mode 100644 index e563a46..0000000 --- a/V2/Policies/PoliciesPostRequestBody_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum PoliciesPostRequestBody_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/PoliciesRequestBuilder.cs b/V2/Policies/PoliciesRequestBuilder.cs deleted file mode 100644 index 7b462b8..0000000 --- a/V2/Policies/PoliciesRequestBuilder.cs +++ /dev/null @@ -1,203 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Policies.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Policies -{ - /// - /// Builds and executes requests for operations under \v2\policies - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class PoliciesRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.policies.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Policies.Item.WithPolicy_ItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("policy_id", position); - return new global::NinjaOne.Client.V2.Policies.Item.WithPolicy_ItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.policies.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Policies.Item.WithPolicy_ItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("policy_id", position); - return new global::NinjaOne.Client.V2.Policies.Item.WithPolicy_ItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public PoliciesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/policies{?mode*,templatePolicyId*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public PoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/policies{?mode*,templatePolicyId*}", rawUrl) - { - } - /// - /// Returns list of policies - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Policies.Policies.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Creates new policy using (New Root, Child, Copy) - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.Policies.PoliciesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Policies.PoliciesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Policies.Policies4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Policies.Policies5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of policies - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Creates new policy using (New Root, Child, Copy) - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Policies.PoliciesPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Policies.PoliciesPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Policies.PoliciesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Policies.PoliciesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class PoliciesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Creates new policy using (New Root, Child, Copy) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class PoliciesRequestBuilderPostQueryParameters - { - /// Policy creation mode - [Obsolete("This property is deprecated, use ModeAsPostModeQueryParameterType instead")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("mode")] - public string? Mode { get; set; } -#nullable restore -#else - [QueryParameter("mode")] - public string Mode { get; set; } -#endif - /// Policy creation mode - [QueryParameter("mode")] - public global::NinjaOne.Client.V2.Policies.PostModeQueryParameterType? ModeAsPostModeQueryParameterType { get; set; } - /// Template Policy identifier - [QueryParameter("templatePolicyId")] - public int? TemplatePolicyId { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class PoliciesRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Policies_fields.cs b/V2/Policies/Policies_fields.cs deleted file mode 100644 index 329f931..0000000 --- a/V2/Policies/Policies_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Policies -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Policies_fields : 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. - /// - public Policies_fields() - { - 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::NinjaOne.Client.V2.Policies.Policies_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Policies.Policies_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Policies/Policies_nodeClass.cs b/V2/Policies/Policies_nodeClass.cs deleted file mode 100644 index cc0ef83..0000000 --- a/V2/Policies/Policies_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Policies_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Policies/PostModeQueryParameterType.cs b/V2/Policies/PostModeQueryParameterType.cs deleted file mode 100644 index cf9fff1..0000000 --- a/V2/Policies/PostModeQueryParameterType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Policies -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum PostModeQueryParameterType - #pragma warning restore CS1591 - { - [EnumMember(Value = "NEW")] - #pragma warning disable CS1591 - NEW, - #pragma warning restore CS1591 - [EnumMember(Value = "CHILD")] - #pragma warning disable CS1591 - CHILD, - #pragma warning restore CS1591 - [EnumMember(Value = "COPY")] - #pragma warning disable CS1591 - COPY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/AntivirusStatus/AntivirusStatus4XXError.cs b/V2/Queries/AntivirusStatus/AntivirusStatus4XXError.cs deleted file mode 100644 index 6f751aa..0000000 --- a/V2/Queries/AntivirusStatus/AntivirusStatus4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.AntivirusStatus -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AntivirusStatus4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AntivirusStatus4XXError() - { - 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::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/AntivirusStatus/AntivirusStatus4XXError_cursor.cs b/V2/Queries/AntivirusStatus/AntivirusStatus4XXError_cursor.cs deleted file mode 100644 index c14f5b9..0000000 --- a/V2/Queries/AntivirusStatus/AntivirusStatus4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.AntivirusStatus -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AntivirusStatus4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public AntivirusStatus4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/AntivirusStatus/AntivirusStatus4XXError_results.cs b/V2/Queries/AntivirusStatus/AntivirusStatus4XXError_results.cs deleted file mode 100644 index 91e8bf6..0000000 --- a/V2/Queries/AntivirusStatus/AntivirusStatus4XXError_results.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.AntivirusStatus -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AntivirusStatus4XXError_results : 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; } - /// Definition Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DefinitionStatus { get; set; } -#nullable restore -#else - public string DefinitionStatus { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// Product name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ProductName { get; set; } -#nullable restore -#else - public string ProductName { get; set; } -#endif - /// Product state -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ProductState { get; set; } -#nullable restore -#else - public string ProductState { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// Product Version -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Version { get; set; } -#nullable restore -#else - public string Version { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AntivirusStatus4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "definitionStatus", n => { DefinitionStatus = n.GetStringValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "productName", n => { ProductName = n.GetStringValue(); } }, - { "productState", n => { ProductState = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "version", n => { Version = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("definitionStatus", DefinitionStatus); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("productName", ProductName); - writer.WriteStringValue("productState", ProductState); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteStringValue("version", Version); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/AntivirusStatus/AntivirusStatus5XXError.cs b/V2/Queries/AntivirusStatus/AntivirusStatus5XXError.cs deleted file mode 100644 index e607eec..0000000 --- a/V2/Queries/AntivirusStatus/AntivirusStatus5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.AntivirusStatus -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AntivirusStatus5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AntivirusStatus5XXError() - { - 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::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/AntivirusStatus/AntivirusStatus5XXError_cursor.cs b/V2/Queries/AntivirusStatus/AntivirusStatus5XXError_cursor.cs deleted file mode 100644 index 1964d47..0000000 --- a/V2/Queries/AntivirusStatus/AntivirusStatus5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.AntivirusStatus -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AntivirusStatus5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public AntivirusStatus5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/AntivirusStatus/AntivirusStatus5XXError_results.cs b/V2/Queries/AntivirusStatus/AntivirusStatus5XXError_results.cs deleted file mode 100644 index bbaabeb..0000000 --- a/V2/Queries/AntivirusStatus/AntivirusStatus5XXError_results.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.AntivirusStatus -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AntivirusStatus5XXError_results : 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; } - /// Definition Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DefinitionStatus { get; set; } -#nullable restore -#else - public string DefinitionStatus { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// Product name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ProductName { get; set; } -#nullable restore -#else - public string ProductName { get; set; } -#endif - /// Product state -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ProductState { get; set; } -#nullable restore -#else - public string ProductState { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// Product Version -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Version { get; set; } -#nullable restore -#else - public string Version { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AntivirusStatus5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "definitionStatus", n => { DefinitionStatus = n.GetStringValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "productName", n => { ProductName = n.GetStringValue(); } }, - { "productState", n => { ProductState = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "version", n => { Version = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("definitionStatus", DefinitionStatus); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("productName", ProductName); - writer.WriteStringValue("productState", ProductState); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteStringValue("version", Version); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/AntivirusStatus/AntivirusStatusRequestBuilder.cs b/V2/Queries/AntivirusStatus/AntivirusStatusRequestBuilder.cs deleted file mode 100644 index e9ed126..0000000 --- a/V2/Queries/AntivirusStatus/AntivirusStatusRequestBuilder.cs +++ /dev/null @@ -1,158 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.AntivirusStatus -{ - /// - /// Builds and executes requests for operations under \v2\queries\antivirus-status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AntivirusStatusRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public AntivirusStatusRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/antivirus-status{?cursor*,df*,pageSize*,productName*,productState*,ts*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public AntivirusStatusRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/antivirus-status{?cursor*,df*,pageSize*,productName*,productState*,ts*}", rawUrl) - { - } - /// - /// Returns list of statues of antivirus software installed on devices - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatus5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of statues of antivirus software installed on devices - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatusRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatusRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of statues of antivirus software installed on devices - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AntivirusStatusRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Product Name filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("productName")] - public string? ProductName { get; set; } -#nullable restore -#else - [QueryParameter("productName")] - public string ProductName { get; set; } -#endif - /// Product State filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("productState")] - public string? ProductState { get; set; } -#nullable restore -#else - [QueryParameter("productState")] - public string ProductState { get; set; } -#endif - /// Monitoring timestamp filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("ts")] - public string? Ts { get; set; } -#nullable restore -#else - [QueryParameter("ts")] - public string Ts { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AntivirusStatusRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/AntivirusThreats/AntivirusThreats4XXError.cs b/V2/Queries/AntivirusThreats/AntivirusThreats4XXError.cs deleted file mode 100644 index 9a2c46d..0000000 --- a/V2/Queries/AntivirusThreats/AntivirusThreats4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.AntivirusThreats -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AntivirusThreats4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AntivirusThreats4XXError() - { - 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::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/AntivirusThreats/AntivirusThreats4XXError_cursor.cs b/V2/Queries/AntivirusThreats/AntivirusThreats4XXError_cursor.cs deleted file mode 100644 index 2b40c97..0000000 --- a/V2/Queries/AntivirusThreats/AntivirusThreats4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.AntivirusThreats -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AntivirusThreats4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public AntivirusThreats4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/AntivirusThreats/AntivirusThreats4XXError_results.cs b/V2/Queries/AntivirusThreats/AntivirusThreats4XXError_results.cs deleted file mode 100644 index d22ee8f..0000000 --- a/V2/Queries/AntivirusThreats/AntivirusThreats4XXError_results.cs +++ /dev/null @@ -1,157 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.AntivirusThreats -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AntivirusThreats4XXError_results : 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; } - /// Threat Category -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Category { get; set; } -#nullable restore -#else - public string Category { get; set; } -#endif - /// Detection source -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DetectionSource { get; set; } -#nullable restore -#else - public string DetectionSource { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// Threat Level -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Level { get; set; } -#nullable restore -#else - public string Level { get; set; } -#endif - /// Threat name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// AntiVirus vendor product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ProductCode { get; set; } -#nullable restore -#else - public string ProductCode { get; set; } -#endif - /// Threat Quarantine ID -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? QuarantineId { get; set; } -#nullable restore -#else - public string QuarantineId { get; set; } -#endif - /// Threat Status (vendor specific) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Threat ID - public long? ThreatId { get; set; } - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// Trace list (Files, Cookies, etc. Vendor specific) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TraceList { get; set; } -#nullable restore -#else - public string TraceList { get; set; } -#endif - /// Type of Threat -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AntivirusThreats4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "category", n => { Category = n.GetStringValue(); } }, - { "detectionSource", n => { DetectionSource = n.GetStringValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "level", n => { Level = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "productCode", n => { ProductCode = n.GetStringValue(); } }, - { "quarantineId", n => { QuarantineId = n.GetStringValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "threatId", n => { ThreatId = n.GetLongValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "traceList", n => { TraceList = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("category", Category); - writer.WriteStringValue("detectionSource", DetectionSource); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("level", Level); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("productCode", ProductCode); - writer.WriteStringValue("quarantineId", QuarantineId); - writer.WriteStringValue("status", Status); - writer.WriteLongValue("threatId", ThreatId); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteStringValue("traceList", TraceList); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/AntivirusThreats/AntivirusThreats5XXError.cs b/V2/Queries/AntivirusThreats/AntivirusThreats5XXError.cs deleted file mode 100644 index 3686cbb..0000000 --- a/V2/Queries/AntivirusThreats/AntivirusThreats5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.AntivirusThreats -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AntivirusThreats5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AntivirusThreats5XXError() - { - 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::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/AntivirusThreats/AntivirusThreats5XXError_cursor.cs b/V2/Queries/AntivirusThreats/AntivirusThreats5XXError_cursor.cs deleted file mode 100644 index 8c517e3..0000000 --- a/V2/Queries/AntivirusThreats/AntivirusThreats5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.AntivirusThreats -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AntivirusThreats5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public AntivirusThreats5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/AntivirusThreats/AntivirusThreats5XXError_results.cs b/V2/Queries/AntivirusThreats/AntivirusThreats5XXError_results.cs deleted file mode 100644 index 040ae08..0000000 --- a/V2/Queries/AntivirusThreats/AntivirusThreats5XXError_results.cs +++ /dev/null @@ -1,157 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.AntivirusThreats -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AntivirusThreats5XXError_results : 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; } - /// Threat Category -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Category { get; set; } -#nullable restore -#else - public string Category { get; set; } -#endif - /// Detection source -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DetectionSource { get; set; } -#nullable restore -#else - public string DetectionSource { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// Threat Level -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Level { get; set; } -#nullable restore -#else - public string Level { get; set; } -#endif - /// Threat name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// AntiVirus vendor product code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ProductCode { get; set; } -#nullable restore -#else - public string ProductCode { get; set; } -#endif - /// Threat Quarantine ID -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? QuarantineId { get; set; } -#nullable restore -#else - public string QuarantineId { get; set; } -#endif - /// Threat Status (vendor specific) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Threat ID - public long? ThreatId { get; set; } - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// Trace list (Files, Cookies, etc. Vendor specific) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TraceList { get; set; } -#nullable restore -#else - public string TraceList { get; set; } -#endif - /// Type of Threat -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AntivirusThreats5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "category", n => { Category = n.GetStringValue(); } }, - { "detectionSource", n => { DetectionSource = n.GetStringValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "level", n => { Level = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "productCode", n => { ProductCode = n.GetStringValue(); } }, - { "quarantineId", n => { QuarantineId = n.GetStringValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "threatId", n => { ThreatId = n.GetLongValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "traceList", n => { TraceList = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("category", Category); - writer.WriteStringValue("detectionSource", DetectionSource); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("level", Level); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("productCode", ProductCode); - writer.WriteStringValue("quarantineId", QuarantineId); - writer.WriteStringValue("status", Status); - writer.WriteLongValue("threatId", ThreatId); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteStringValue("traceList", TraceList); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/AntivirusThreats/AntivirusThreatsRequestBuilder.cs b/V2/Queries/AntivirusThreats/AntivirusThreatsRequestBuilder.cs deleted file mode 100644 index 9a684db..0000000 --- a/V2/Queries/AntivirusThreats/AntivirusThreatsRequestBuilder.cs +++ /dev/null @@ -1,138 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.AntivirusThreats -{ - /// - /// Builds and executes requests for operations under \v2\queries\antivirus-threats - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AntivirusThreatsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public AntivirusThreatsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/antivirus-threats{?cursor*,df*,pageSize*,ts*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public AntivirusThreatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/antivirus-threats{?cursor*,df*,pageSize*,ts*}", rawUrl) - { - } - /// - /// Returns list of antivirus threats - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreats5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of antivirus threats - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreatsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreatsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of antivirus threats - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AntivirusThreatsRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Monitoring timestamp filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("ts")] - public string? Ts { get; set; } -#nullable restore -#else - [QueryParameter("ts")] - public string Ts { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AntivirusThreatsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ComputerSystems/ComputerSystems4XXError.cs b/V2/Queries/ComputerSystems/ComputerSystems4XXError.cs deleted file mode 100644 index 6f96cb3..0000000 --- a/V2/Queries/ComputerSystems/ComputerSystems4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ComputerSystems -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ComputerSystems4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ComputerSystems4XXError() - { - 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::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ComputerSystems/ComputerSystems4XXError_cursor.cs b/V2/Queries/ComputerSystems/ComputerSystems4XXError_cursor.cs deleted file mode 100644 index e9bd58d..0000000 --- a/V2/Queries/ComputerSystems/ComputerSystems4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ComputerSystems -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ComputerSystems4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ComputerSystems4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ComputerSystems/ComputerSystems4XXError_results.cs b/V2/Queries/ComputerSystems/ComputerSystems4XXError_results.cs deleted file mode 100644 index e565bdc..0000000 --- a/V2/Queries/ComputerSystems/ComputerSystems4XXError_results.cs +++ /dev/null @@ -1,155 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ComputerSystems -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ComputerSystems4XXError_results : 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; } - /// Bios Serial Number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? BiosSerialNumber { get; set; } -#nullable restore -#else - public string BiosSerialNumber { get; set; } -#endif - /// The chassisType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ChassisType { get; set; } -#nullable restore -#else - public string ChassisType { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// The domain property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Domain { get; set; } -#nullable restore -#else - public string Domain { get; set; } -#endif - /// The domainRole property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DomainRole { get; set; } -#nullable restore -#else - public string DomainRole { get; set; } -#endif - /// Manufacturer -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Manufacturer { get; set; } -#nullable restore -#else - public string Manufacturer { get; set; } -#endif - /// Model -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Model { get; set; } -#nullable restore -#else - public string Model { get; set; } -#endif - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The numberOfProcessors property - public int? NumberOfProcessors { get; set; } - /// Serial Number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SerialNumber { get; set; } -#nullable restore -#else - public string SerialNumber { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// The totalPhysicalMemory property - public long? TotalPhysicalMemory { get; set; } - /// The virtualMachine property - public bool? VirtualMachine { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ComputerSystems4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "biosSerialNumber", n => { BiosSerialNumber = n.GetStringValue(); } }, - { "chassisType", n => { ChassisType = n.GetStringValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "domain", n => { Domain = n.GetStringValue(); } }, - { "domainRole", n => { DomainRole = n.GetStringValue(); } }, - { "manufacturer", n => { Manufacturer = n.GetStringValue(); } }, - { "model", n => { Model = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "numberOfProcessors", n => { NumberOfProcessors = n.GetIntValue(); } }, - { "serialNumber", n => { SerialNumber = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "totalPhysicalMemory", n => { TotalPhysicalMemory = n.GetLongValue(); } }, - { "virtualMachine", n => { VirtualMachine = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("biosSerialNumber", BiosSerialNumber); - writer.WriteStringValue("chassisType", ChassisType); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("domain", Domain); - writer.WriteStringValue("domainRole", DomainRole); - writer.WriteStringValue("manufacturer", Manufacturer); - writer.WriteStringValue("model", Model); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("numberOfProcessors", NumberOfProcessors); - writer.WriteStringValue("serialNumber", SerialNumber); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteLongValue("totalPhysicalMemory", TotalPhysicalMemory); - writer.WriteBoolValue("virtualMachine", VirtualMachine); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ComputerSystems/ComputerSystems5XXError.cs b/V2/Queries/ComputerSystems/ComputerSystems5XXError.cs deleted file mode 100644 index 51a25df..0000000 --- a/V2/Queries/ComputerSystems/ComputerSystems5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ComputerSystems -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ComputerSystems5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ComputerSystems5XXError() - { - 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::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ComputerSystems/ComputerSystems5XXError_cursor.cs b/V2/Queries/ComputerSystems/ComputerSystems5XXError_cursor.cs deleted file mode 100644 index 8038e52..0000000 --- a/V2/Queries/ComputerSystems/ComputerSystems5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ComputerSystems -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ComputerSystems5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ComputerSystems5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ComputerSystems/ComputerSystems5XXError_results.cs b/V2/Queries/ComputerSystems/ComputerSystems5XXError_results.cs deleted file mode 100644 index 262763e..0000000 --- a/V2/Queries/ComputerSystems/ComputerSystems5XXError_results.cs +++ /dev/null @@ -1,155 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ComputerSystems -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ComputerSystems5XXError_results : 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; } - /// Bios Serial Number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? BiosSerialNumber { get; set; } -#nullable restore -#else - public string BiosSerialNumber { get; set; } -#endif - /// The chassisType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ChassisType { get; set; } -#nullable restore -#else - public string ChassisType { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// The domain property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Domain { get; set; } -#nullable restore -#else - public string Domain { get; set; } -#endif - /// The domainRole property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DomainRole { get; set; } -#nullable restore -#else - public string DomainRole { get; set; } -#endif - /// Manufacturer -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Manufacturer { get; set; } -#nullable restore -#else - public string Manufacturer { get; set; } -#endif - /// Model -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Model { get; set; } -#nullable restore -#else - public string Model { get; set; } -#endif - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The numberOfProcessors property - public int? NumberOfProcessors { get; set; } - /// Serial Number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SerialNumber { get; set; } -#nullable restore -#else - public string SerialNumber { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// The totalPhysicalMemory property - public long? TotalPhysicalMemory { get; set; } - /// The virtualMachine property - public bool? VirtualMachine { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ComputerSystems5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "biosSerialNumber", n => { BiosSerialNumber = n.GetStringValue(); } }, - { "chassisType", n => { ChassisType = n.GetStringValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "domain", n => { Domain = n.GetStringValue(); } }, - { "domainRole", n => { DomainRole = n.GetStringValue(); } }, - { "manufacturer", n => { Manufacturer = n.GetStringValue(); } }, - { "model", n => { Model = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "numberOfProcessors", n => { NumberOfProcessors = n.GetIntValue(); } }, - { "serialNumber", n => { SerialNumber = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "totalPhysicalMemory", n => { TotalPhysicalMemory = n.GetLongValue(); } }, - { "virtualMachine", n => { VirtualMachine = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("biosSerialNumber", BiosSerialNumber); - writer.WriteStringValue("chassisType", ChassisType); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("domain", Domain); - writer.WriteStringValue("domainRole", DomainRole); - writer.WriteStringValue("manufacturer", Manufacturer); - writer.WriteStringValue("model", Model); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("numberOfProcessors", NumberOfProcessors); - writer.WriteStringValue("serialNumber", SerialNumber); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteLongValue("totalPhysicalMemory", TotalPhysicalMemory); - writer.WriteBoolValue("virtualMachine", VirtualMachine); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ComputerSystems/ComputerSystemsRequestBuilder.cs b/V2/Queries/ComputerSystems/ComputerSystemsRequestBuilder.cs deleted file mode 100644 index 6c60a2c..0000000 --- a/V2/Queries/ComputerSystems/ComputerSystemsRequestBuilder.cs +++ /dev/null @@ -1,138 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.ComputerSystems -{ - /// - /// Builds and executes requests for operations under \v2\queries\computer-systems - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ComputerSystemsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ComputerSystemsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/computer-systems{?cursor*,df*,pageSize*,ts*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ComputerSystemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/computer-systems{?cursor*,df*,pageSize*,ts*}", rawUrl) - { - } - /// - /// Returns computer systems information for devices - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystems5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns computer systems information for devices - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystemsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystemsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns computer systems information for devices - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ComputerSystemsRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Monitoring timestamp filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("ts")] - public string? Ts { get; set; } -#nullable restore -#else - [QueryParameter("ts")] - public string Ts { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ComputerSystemsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFields/CustomFields4XXError.cs b/V2/Queries/CustomFields/CustomFields4XXError.cs deleted file mode 100644 index fa71d50..0000000 --- a/V2/Queries/CustomFields/CustomFields4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFields4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields4XXError() - { - 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::NinjaOne.Client.V2.Queries.CustomFields.CustomFields4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFields/CustomFields4XXError_cursor.cs b/V2/Queries/CustomFields/CustomFields4XXError_cursor.cs deleted file mode 100644 index 3f983e5..0000000 --- a/V2/Queries/CustomFields/CustomFields4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFields4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.CustomFields.CustomFields4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFields/CustomFields4XXError_results.cs b/V2/Queries/CustomFields/CustomFields4XXError_results.cs deleted file mode 100644 index 07871ca..0000000 --- a/V2/Queries/CustomFields/CustomFields4XXError_results.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFields4XXError_results : 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; } - /// Device identifier - public int? DeviceId { get; set; } - /// Field values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields4XXError_results_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields4XXError_results_fields Fields { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.CustomFields.CustomFields4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields4XXError_results_fields.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteObjectValue("fields", Fields); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFields/CustomFields4XXError_results_fields.cs b/V2/Queries/CustomFields/CustomFields4XXError_results_fields.cs deleted file mode 100644 index 3e09278..0000000 --- a/V2/Queries/CustomFields/CustomFields4XXError_results_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFields -{ - /// - /// Field values - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields4XXError_results_fields : 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. - /// - public CustomFields4XXError_results_fields() - { - 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::NinjaOne.Client.V2.Queries.CustomFields.CustomFields4XXError_results_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields4XXError_results_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFields/CustomFields5XXError.cs b/V2/Queries/CustomFields/CustomFields5XXError.cs deleted file mode 100644 index b28ad4c..0000000 --- a/V2/Queries/CustomFields/CustomFields5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFields5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields5XXError() - { - 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::NinjaOne.Client.V2.Queries.CustomFields.CustomFields5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFields/CustomFields5XXError_cursor.cs b/V2/Queries/CustomFields/CustomFields5XXError_cursor.cs deleted file mode 100644 index 6332d06..0000000 --- a/V2/Queries/CustomFields/CustomFields5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFields5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.CustomFields.CustomFields5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFields/CustomFields5XXError_results.cs b/V2/Queries/CustomFields/CustomFields5XXError_results.cs deleted file mode 100644 index e4cdf20..0000000 --- a/V2/Queries/CustomFields/CustomFields5XXError_results.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFields5XXError_results : 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; } - /// Device identifier - public int? DeviceId { get; set; } - /// Field values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields5XXError_results_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields5XXError_results_fields Fields { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.CustomFields.CustomFields5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields5XXError_results_fields.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteObjectValue("fields", Fields); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFields/CustomFields5XXError_results_fields.cs b/V2/Queries/CustomFields/CustomFields5XXError_results_fields.cs deleted file mode 100644 index c9e2ef1..0000000 --- a/V2/Queries/CustomFields/CustomFields5XXError_results_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFields -{ - /// - /// Field values - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFields5XXError_results_fields : 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. - /// - public CustomFields5XXError_results_fields() - { - 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::NinjaOne.Client.V2.Queries.CustomFields.CustomFields5XXError_results_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields5XXError_results_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFields/CustomFieldsRequestBuilder.cs b/V2/Queries/CustomFields/CustomFieldsRequestBuilder.cs deleted file mode 100644 index 2bb4d9f..0000000 --- a/V2/Queries/CustomFields/CustomFieldsRequestBuilder.cs +++ /dev/null @@ -1,151 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFields -{ - /// - /// Builds and executes requests for operations under \v2\queries\custom-fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public CustomFieldsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/custom-fields{?cursor*,df*,fields*,pageSize*,showSecureValues*,updatedAfter*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public CustomFieldsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/custom-fields{?cursor*,df*,fields*,pageSize*,showSecureValues*,updatedAfter*}", rawUrl) - { - } - /// - /// Returns Custom Fields report - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.CustomFields.CustomFields5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns Custom Fields report - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.CustomFields.CustomFieldsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.CustomFields.CustomFieldsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns Custom Fields report - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Comma-separated list of fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("fields")] - public string? Fields { get; set; } -#nullable restore -#else - [QueryParameter("fields")] - public string Fields { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Flag to indicate if secure values should be returned as plain text without encryption - [QueryParameter("showSecureValues")] - public bool? ShowSecureValues { get; set; } - /// Custom fields updated after specified date -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("updatedAfter")] - public string? UpdatedAfter { get; set; } -#nullable restore -#else - [QueryParameter("updatedAfter")] - public string UpdatedAfter { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError.cs deleted file mode 100644 index 6e4f7df..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFieldsDetailed4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFieldsDetailed4XXError() - { - 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::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_cursor.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_cursor.cs deleted file mode 100644 index 8d8c3c6..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFieldsDetailed4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFieldsDetailed4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results.cs deleted file mode 100644 index 977d103..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFieldsDetailed4XXError_results : 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; } - /// Entity identifier - public int? DeviceId { get; set; } - /// The entityId property - public int? EntityId { get; set; } - /// Entity type - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_entityType? EntityType { get; set; } - /// Field values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFieldsDetailed4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "entityType", n => { EntityType = n.GetEnumValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteIntValue("entityId", EntityId); - writer.WriteEnumValue("entityType", EntityType); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_entityType.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_entityType.cs deleted file mode 100644 index b8a5647..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_entityType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - /// Entity type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFieldsDetailed4XXError_results_entityType - { - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_fields.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_fields.cs deleted file mode 100644 index 3e595ef..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_fields.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - /// - /// Field values - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsDetailed4XXError_results_fields : 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; } - /// Field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Last field update timestamp - public double? Updated { get; set; } - /// Value source (who/what updated the value) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields_updatedBy? UpdatedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields_updatedBy UpdatedBy { get; set; } -#endif - /// The updateTime property - public double? UpdateTime { get; set; } - /// Field Value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields_value Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFieldsDetailed4XXError_results_fields() - { - 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::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "name", n => { Name = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - { "updatedBy", n => { UpdatedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields_updatedBy.CreateFromDiscriminatorValue); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields_value.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("name", Name); - writer.WriteDoubleValue("updated", Updated); - writer.WriteObjectValue("updatedBy", UpdatedBy); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteObjectValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_fields_updatedBy.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_fields_updatedBy.cs deleted file mode 100644 index 081634c..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_fields_updatedBy.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - /// - /// Value source (who/what updated the value) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsDetailed4XXError_results_fields_updatedBy : 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; } - /// The source property - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields_updatedBy_source? Source { get; set; } - /// The user property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields_updatedBy_user? User { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields_updatedBy_user User { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFieldsDetailed4XXError_results_fields_updatedBy() - { - 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::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields_updatedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields_updatedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "source", n => { Source = n.GetEnumValue(); } }, - { "user", n => { User = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields_updatedBy_user.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("source", Source); - writer.WriteObjectValue("user", User); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_fields_updatedBy_source.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_fields_updatedBy_source.cs deleted file mode 100644 index 94477a8..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_fields_updatedBy_source.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum CustomFieldsDetailed4XXError_results_fields_updatedBy_source - #pragma warning restore CS1591 - { - [EnumMember(Value = "API")] - #pragma warning disable CS1591 - API, - #pragma warning restore CS1591 - [EnumMember(Value = "USER")] - #pragma warning disable CS1591 - USER, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT")] - #pragma warning disable CS1591 - SCRIPT, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_fields_updatedBy_user.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_fields_updatedBy_user.cs deleted file mode 100644 index 669ad65..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_fields_updatedBy_user.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFieldsDetailed4XXError_results_fields_updatedBy_user : 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 email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFieldsDetailed4XXError_results_fields_updatedBy_user() - { - 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::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields_updatedBy_user CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields_updatedBy_user(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_fields_value.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_fields_value.cs deleted file mode 100644 index cfc44f3..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed4XXError_results_fields_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - /// - /// Field Value - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsDetailed4XXError_results_fields_value : 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. - /// - public CustomFieldsDetailed4XXError_results_fields_value() - { - 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::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError_results_fields_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError.cs deleted file mode 100644 index 0b219df..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFieldsDetailed5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFieldsDetailed5XXError() - { - 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::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_cursor.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_cursor.cs deleted file mode 100644 index 0a6e48d..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFieldsDetailed5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFieldsDetailed5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results.cs deleted file mode 100644 index a912ec7..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFieldsDetailed5XXError_results : 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; } - /// Entity identifier - public int? DeviceId { get; set; } - /// The entityId property - public int? EntityId { get; set; } - /// Entity type - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_entityType? EntityType { get; set; } - /// Field values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFieldsDetailed5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "entityType", n => { EntityType = n.GetEnumValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteIntValue("entityId", EntityId); - writer.WriteEnumValue("entityType", EntityType); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_entityType.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_entityType.cs deleted file mode 100644 index 177ff93..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_entityType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - /// Entity type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum CustomFieldsDetailed5XXError_results_entityType - { - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_fields.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_fields.cs deleted file mode 100644 index 94cb7c6..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_fields.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - /// - /// Field values - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsDetailed5XXError_results_fields : 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; } - /// Field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Last field update timestamp - public double? Updated { get; set; } - /// Value source (who/what updated the value) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields_updatedBy? UpdatedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields_updatedBy UpdatedBy { get; set; } -#endif - /// The updateTime property - public double? UpdateTime { get; set; } - /// Field Value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields_value Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFieldsDetailed5XXError_results_fields() - { - 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::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "name", n => { Name = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - { "updatedBy", n => { UpdatedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields_updatedBy.CreateFromDiscriminatorValue); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields_value.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("name", Name); - writer.WriteDoubleValue("updated", Updated); - writer.WriteObjectValue("updatedBy", UpdatedBy); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteObjectValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_fields_updatedBy.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_fields_updatedBy.cs deleted file mode 100644 index 358408b..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_fields_updatedBy.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - /// - /// Value source (who/what updated the value) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsDetailed5XXError_results_fields_updatedBy : 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; } - /// The source property - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields_updatedBy_source? Source { get; set; } - /// The user property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields_updatedBy_user? User { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields_updatedBy_user User { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFieldsDetailed5XXError_results_fields_updatedBy() - { - 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::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields_updatedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields_updatedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "source", n => { Source = n.GetEnumValue(); } }, - { "user", n => { User = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields_updatedBy_user.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("source", Source); - writer.WriteObjectValue("user", User); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_fields_updatedBy_source.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_fields_updatedBy_source.cs deleted file mode 100644 index 8e2cde4..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_fields_updatedBy_source.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum CustomFieldsDetailed5XXError_results_fields_updatedBy_source - #pragma warning restore CS1591 - { - [EnumMember(Value = "API")] - #pragma warning disable CS1591 - API, - #pragma warning restore CS1591 - [EnumMember(Value = "USER")] - #pragma warning disable CS1591 - USER, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT")] - #pragma warning disable CS1591 - SCRIPT, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_fields_updatedBy_user.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_fields_updatedBy_user.cs deleted file mode 100644 index 1b2e6a7..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_fields_updatedBy_user.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFieldsDetailed5XXError_results_fields_updatedBy_user : 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 email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CustomFieldsDetailed5XXError_results_fields_updatedBy_user() - { - 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::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields_updatedBy_user CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields_updatedBy_user(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_fields_value.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_fields_value.cs deleted file mode 100644 index 976611d..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailed5XXError_results_fields_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - /// - /// Field Value - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsDetailed5XXError_results_fields_value : 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. - /// - public CustomFieldsDetailed5XXError_results_fields_value() - { - 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::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError_results_fields_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailedRequestBuilder.cs b/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailedRequestBuilder.cs deleted file mode 100644 index 6eb1ea0..0000000 --- a/V2/Queries/CustomFieldsDetailed/CustomFieldsDetailedRequestBuilder.cs +++ /dev/null @@ -1,151 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.CustomFieldsDetailed -{ - /// - /// Builds and executes requests for operations under \v2\queries\custom-fields-detailed - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsDetailedRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public CustomFieldsDetailedRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/custom-fields-detailed{?cursor*,df*,fields*,pageSize*,showSecureValues*,updatedAfter*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public CustomFieldsDetailedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/custom-fields-detailed{?cursor*,df*,fields*,pageSize*,showSecureValues*,updatedAfter*}", rawUrl) - { - } - /// - /// Returns Custom Fields report with additional information about each field - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailed5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns Custom Fields report with additional information about each field - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailedRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailedRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns Custom Fields report with additional information about each field - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsDetailedRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Comma-separated list of fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("fields")] - public string? Fields { get; set; } -#nullable restore -#else - [QueryParameter("fields")] - public string Fields { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Flag to indicate if secure values should be returned as plain text without encryption - [QueryParameter("showSecureValues")] - public bool? ShowSecureValues { get; set; } - /// Custom fields updated after specified date -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("updatedAfter")] - public string? UpdatedAfter { get; set; } -#nullable restore -#else - [QueryParameter("updatedAfter")] - public string UpdatedAfter { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsDetailedRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/DeviceHealth/DeviceHealth4XXError.cs b/V2/Queries/DeviceHealth/DeviceHealth4XXError.cs deleted file mode 100644 index 30e4ffc..0000000 --- a/V2/Queries/DeviceHealth/DeviceHealth4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.DeviceHealth -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceHealth4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DeviceHealth4XXError() - { - 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::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/DeviceHealth/DeviceHealth4XXError_cursor.cs b/V2/Queries/DeviceHealth/DeviceHealth4XXError_cursor.cs deleted file mode 100644 index 0f36914..0000000 --- a/V2/Queries/DeviceHealth/DeviceHealth4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.DeviceHealth -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceHealth4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DeviceHealth4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/DeviceHealth/DeviceHealth4XXError_results.cs b/V2/Queries/DeviceHealth/DeviceHealth4XXError_results.cs deleted file mode 100644 index d27b568..0000000 --- a/V2/Queries/DeviceHealth/DeviceHealth4XXError_results.cs +++ /dev/null @@ -1,155 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.DeviceHealth -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceHealth4XXError_results : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Alerts job count - public int? ActiveJobCount { get; set; } - /// Active AV threats count - public int? ActiveThreatsCount { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Alerts count - public int? AlertCount { get; set; } - /// Antivirus installation status - public global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError_results_avInstallStatus? AvInstallStatus { get; set; } - /// Blocked AV threats count - public int? BlockedThreatsCount { get; set; } - /// Critical Vulnerability Count - public int? CriticalVulnerabilityCount { get; set; } - /// Device identifier - public int? DeviceId { get; set; } - /// Number of failed OS patches - public int? FailedOSPatchesCount { get; set; } - /// Number of failed software patches - public int? FailedSoftwarePatchesCount { get; set; } - /// Health status - public global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError_results_healthStatus? HealthStatus { get; set; } - /// High Vulnerability Count - public int? HighVulnerabilityCount { get; set; } - /// The installationIssuesCount property - public int? InstallationIssuesCount { get; set; } - /// Low Vulnerability Count - public int? LowVulnerabilityCount { get; set; } - /// Medium Vulnerability Count - public int? MediumVulnerabilityCount { get; set; } - /// Is device offline? - public bool? Offline { get; set; } - /// Parent device identifier - public int? ParentDeviceId { get; set; } - /// Is parent device offline - public bool? ParentOffline { get; set; } - /// Number of pending OS patches - public int? PendingOSPatchesCount { get; set; } - /// Pending reboot reasons -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? PendingRebootReason { get; set; } -#nullable restore -#else - public string PendingRebootReason { get; set; } -#endif - /// Number of pending software patches - public int? PendingSoftwarePatchesCount { get; set; } - /// Integrated products' installation statuses -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError_results_productsInstallationStatuses? ProductsInstallationStatuses { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError_results_productsInstallationStatuses ProductsInstallationStatuses { get; set; } -#endif - /// Quarantined AV threats count - public int? QuarantinedThreatsCount { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DeviceHealth4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "activeJobCount", n => { ActiveJobCount = n.GetIntValue(); } }, - { "activeThreatsCount", n => { ActiveThreatsCount = n.GetIntValue(); } }, - { "alertCount", n => { AlertCount = n.GetIntValue(); } }, - { "avInstallStatus", n => { AvInstallStatus = n.GetEnumValue(); } }, - { "blockedThreatsCount", n => { BlockedThreatsCount = n.GetIntValue(); } }, - { "criticalVulnerabilityCount", n => { CriticalVulnerabilityCount = n.GetIntValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "failedOSPatchesCount", n => { FailedOSPatchesCount = n.GetIntValue(); } }, - { "failedSoftwarePatchesCount", n => { FailedSoftwarePatchesCount = n.GetIntValue(); } }, - { "healthStatus", n => { HealthStatus = n.GetEnumValue(); } }, - { "highVulnerabilityCount", n => { HighVulnerabilityCount = n.GetIntValue(); } }, - { "installationIssuesCount", n => { InstallationIssuesCount = n.GetIntValue(); } }, - { "lowVulnerabilityCount", n => { LowVulnerabilityCount = n.GetIntValue(); } }, - { "mediumVulnerabilityCount", n => { MediumVulnerabilityCount = n.GetIntValue(); } }, - { "offline", n => { Offline = n.GetBoolValue(); } }, - { "parentDeviceId", n => { ParentDeviceId = n.GetIntValue(); } }, - { "parentOffline", n => { ParentOffline = n.GetBoolValue(); } }, - { "pendingOSPatchesCount", n => { PendingOSPatchesCount = n.GetIntValue(); } }, - { "pendingRebootReason", n => { PendingRebootReason = n.GetStringValue(); } }, - { "pendingSoftwarePatchesCount", n => { PendingSoftwarePatchesCount = n.GetIntValue(); } }, - { "productsInstallationStatuses", n => { ProductsInstallationStatuses = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError_results_productsInstallationStatuses.CreateFromDiscriminatorValue); } }, - { "quarantinedThreatsCount", n => { QuarantinedThreatsCount = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("activeJobCount", ActiveJobCount); - writer.WriteIntValue("activeThreatsCount", ActiveThreatsCount); - writer.WriteIntValue("alertCount", AlertCount); - writer.WriteEnumValue("avInstallStatus", AvInstallStatus); - writer.WriteIntValue("blockedThreatsCount", BlockedThreatsCount); - writer.WriteIntValue("criticalVulnerabilityCount", CriticalVulnerabilityCount); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteIntValue("failedOSPatchesCount", FailedOSPatchesCount); - writer.WriteIntValue("failedSoftwarePatchesCount", FailedSoftwarePatchesCount); - writer.WriteEnumValue("healthStatus", HealthStatus); - writer.WriteIntValue("highVulnerabilityCount", HighVulnerabilityCount); - writer.WriteIntValue("installationIssuesCount", InstallationIssuesCount); - writer.WriteIntValue("lowVulnerabilityCount", LowVulnerabilityCount); - writer.WriteIntValue("mediumVulnerabilityCount", MediumVulnerabilityCount); - writer.WriteBoolValue("offline", Offline); - writer.WriteIntValue("parentDeviceId", ParentDeviceId); - writer.WriteBoolValue("parentOffline", ParentOffline); - writer.WriteIntValue("pendingOSPatchesCount", PendingOSPatchesCount); - writer.WriteStringValue("pendingRebootReason", PendingRebootReason); - writer.WriteIntValue("pendingSoftwarePatchesCount", PendingSoftwarePatchesCount); - writer.WriteObjectValue("productsInstallationStatuses", ProductsInstallationStatuses); - writer.WriteIntValue("quarantinedThreatsCount", QuarantinedThreatsCount); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/DeviceHealth/DeviceHealth4XXError_results_avInstallStatus.cs b/V2/Queries/DeviceHealth/DeviceHealth4XXError_results_avInstallStatus.cs deleted file mode 100644 index 925e366..0000000 --- a/V2/Queries/DeviceHealth/DeviceHealth4XXError_results_avInstallStatus.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.DeviceHealth -{ - /// Antivirus installation status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceHealth4XXError_results_avInstallStatus - { - [EnumMember(Value = "REQUESTED")] - #pragma warning disable CS1591 - REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOWNLOAD_STARTED")] - #pragma warning disable CS1591 - DOWNLOAD_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOWNLOADED")] - #pragma warning disable CS1591 - DOWNLOADED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOWNLOAD_FAILED")] - #pragma warning disable CS1591 - DOWNLOAD_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "INSTALL_STARTED")] - #pragma warning disable CS1591 - INSTALL_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "INSTALLED")] - #pragma warning disable CS1591 - INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "INSTALL_FAILED")] - #pragma warning disable CS1591 - INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNINSTALL_REQUESTED")] - #pragma warning disable CS1591 - UNINSTALL_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNINSTALL_FAILED")] - #pragma warning disable CS1591 - UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNINSTALLED")] - #pragma warning disable CS1591 - UNINSTALLED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/DeviceHealth/DeviceHealth4XXError_results_healthStatus.cs b/V2/Queries/DeviceHealth/DeviceHealth4XXError_results_healthStatus.cs deleted file mode 100644 index 66b4bc6..0000000 --- a/V2/Queries/DeviceHealth/DeviceHealth4XXError_results_healthStatus.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.DeviceHealth -{ - /// Health status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceHealth4XXError_results_healthStatus - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "HEALTHY")] - #pragma warning disable CS1591 - HEALTHY, - #pragma warning restore CS1591 - [EnumMember(Value = "NEEDS_ATTENTION")] - #pragma warning disable CS1591 - NEEDS_ATTENTION, - #pragma warning restore CS1591 - [EnumMember(Value = "UNHEALTHY")] - #pragma warning disable CS1591 - UNHEALTHY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/DeviceHealth/DeviceHealth4XXError_results_productsInstallationStatuses.cs b/V2/Queries/DeviceHealth/DeviceHealth4XXError_results_productsInstallationStatuses.cs deleted file mode 100644 index 9cdd48a..0000000 --- a/V2/Queries/DeviceHealth/DeviceHealth4XXError_results_productsInstallationStatuses.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.DeviceHealth -{ - /// - /// Integrated products' installation statuses - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceHealth4XXError_results_productsInstallationStatuses : 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. - /// - public DeviceHealth4XXError_results_productsInstallationStatuses() - { - 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::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError_results_productsInstallationStatuses CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError_results_productsInstallationStatuses(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/DeviceHealth/DeviceHealth5XXError.cs b/V2/Queries/DeviceHealth/DeviceHealth5XXError.cs deleted file mode 100644 index 2424f20..0000000 --- a/V2/Queries/DeviceHealth/DeviceHealth5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.DeviceHealth -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceHealth5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DeviceHealth5XXError() - { - 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::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/DeviceHealth/DeviceHealth5XXError_cursor.cs b/V2/Queries/DeviceHealth/DeviceHealth5XXError_cursor.cs deleted file mode 100644 index c98772a..0000000 --- a/V2/Queries/DeviceHealth/DeviceHealth5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.DeviceHealth -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceHealth5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DeviceHealth5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/DeviceHealth/DeviceHealth5XXError_results.cs b/V2/Queries/DeviceHealth/DeviceHealth5XXError_results.cs deleted file mode 100644 index b712dfc..0000000 --- a/V2/Queries/DeviceHealth/DeviceHealth5XXError_results.cs +++ /dev/null @@ -1,155 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.DeviceHealth -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class DeviceHealth5XXError_results : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Alerts job count - public int? ActiveJobCount { get; set; } - /// Active AV threats count - public int? ActiveThreatsCount { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Alerts count - public int? AlertCount { get; set; } - /// Antivirus installation status - public global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError_results_avInstallStatus? AvInstallStatus { get; set; } - /// Blocked AV threats count - public int? BlockedThreatsCount { get; set; } - /// Critical Vulnerability Count - public int? CriticalVulnerabilityCount { get; set; } - /// Device identifier - public int? DeviceId { get; set; } - /// Number of failed OS patches - public int? FailedOSPatchesCount { get; set; } - /// Number of failed software patches - public int? FailedSoftwarePatchesCount { get; set; } - /// Health status - public global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError_results_healthStatus? HealthStatus { get; set; } - /// High Vulnerability Count - public int? HighVulnerabilityCount { get; set; } - /// The installationIssuesCount property - public int? InstallationIssuesCount { get; set; } - /// Low Vulnerability Count - public int? LowVulnerabilityCount { get; set; } - /// Medium Vulnerability Count - public int? MediumVulnerabilityCount { get; set; } - /// Is device offline? - public bool? Offline { get; set; } - /// Parent device identifier - public int? ParentDeviceId { get; set; } - /// Is parent device offline - public bool? ParentOffline { get; set; } - /// Number of pending OS patches - public int? PendingOSPatchesCount { get; set; } - /// Pending reboot reasons -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? PendingRebootReason { get; set; } -#nullable restore -#else - public string PendingRebootReason { get; set; } -#endif - /// Number of pending software patches - public int? PendingSoftwarePatchesCount { get; set; } - /// Integrated products' installation statuses -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError_results_productsInstallationStatuses? ProductsInstallationStatuses { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError_results_productsInstallationStatuses ProductsInstallationStatuses { get; set; } -#endif - /// Quarantined AV threats count - public int? QuarantinedThreatsCount { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DeviceHealth5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "activeJobCount", n => { ActiveJobCount = n.GetIntValue(); } }, - { "activeThreatsCount", n => { ActiveThreatsCount = n.GetIntValue(); } }, - { "alertCount", n => { AlertCount = n.GetIntValue(); } }, - { "avInstallStatus", n => { AvInstallStatus = n.GetEnumValue(); } }, - { "blockedThreatsCount", n => { BlockedThreatsCount = n.GetIntValue(); } }, - { "criticalVulnerabilityCount", n => { CriticalVulnerabilityCount = n.GetIntValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "failedOSPatchesCount", n => { FailedOSPatchesCount = n.GetIntValue(); } }, - { "failedSoftwarePatchesCount", n => { FailedSoftwarePatchesCount = n.GetIntValue(); } }, - { "healthStatus", n => { HealthStatus = n.GetEnumValue(); } }, - { "highVulnerabilityCount", n => { HighVulnerabilityCount = n.GetIntValue(); } }, - { "installationIssuesCount", n => { InstallationIssuesCount = n.GetIntValue(); } }, - { "lowVulnerabilityCount", n => { LowVulnerabilityCount = n.GetIntValue(); } }, - { "mediumVulnerabilityCount", n => { MediumVulnerabilityCount = n.GetIntValue(); } }, - { "offline", n => { Offline = n.GetBoolValue(); } }, - { "parentDeviceId", n => { ParentDeviceId = n.GetIntValue(); } }, - { "parentOffline", n => { ParentOffline = n.GetBoolValue(); } }, - { "pendingOSPatchesCount", n => { PendingOSPatchesCount = n.GetIntValue(); } }, - { "pendingRebootReason", n => { PendingRebootReason = n.GetStringValue(); } }, - { "pendingSoftwarePatchesCount", n => { PendingSoftwarePatchesCount = n.GetIntValue(); } }, - { "productsInstallationStatuses", n => { ProductsInstallationStatuses = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError_results_productsInstallationStatuses.CreateFromDiscriminatorValue); } }, - { "quarantinedThreatsCount", n => { QuarantinedThreatsCount = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("activeJobCount", ActiveJobCount); - writer.WriteIntValue("activeThreatsCount", ActiveThreatsCount); - writer.WriteIntValue("alertCount", AlertCount); - writer.WriteEnumValue("avInstallStatus", AvInstallStatus); - writer.WriteIntValue("blockedThreatsCount", BlockedThreatsCount); - writer.WriteIntValue("criticalVulnerabilityCount", CriticalVulnerabilityCount); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteIntValue("failedOSPatchesCount", FailedOSPatchesCount); - writer.WriteIntValue("failedSoftwarePatchesCount", FailedSoftwarePatchesCount); - writer.WriteEnumValue("healthStatus", HealthStatus); - writer.WriteIntValue("highVulnerabilityCount", HighVulnerabilityCount); - writer.WriteIntValue("installationIssuesCount", InstallationIssuesCount); - writer.WriteIntValue("lowVulnerabilityCount", LowVulnerabilityCount); - writer.WriteIntValue("mediumVulnerabilityCount", MediumVulnerabilityCount); - writer.WriteBoolValue("offline", Offline); - writer.WriteIntValue("parentDeviceId", ParentDeviceId); - writer.WriteBoolValue("parentOffline", ParentOffline); - writer.WriteIntValue("pendingOSPatchesCount", PendingOSPatchesCount); - writer.WriteStringValue("pendingRebootReason", PendingRebootReason); - writer.WriteIntValue("pendingSoftwarePatchesCount", PendingSoftwarePatchesCount); - writer.WriteObjectValue("productsInstallationStatuses", ProductsInstallationStatuses); - writer.WriteIntValue("quarantinedThreatsCount", QuarantinedThreatsCount); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/DeviceHealth/DeviceHealth5XXError_results_avInstallStatus.cs b/V2/Queries/DeviceHealth/DeviceHealth5XXError_results_avInstallStatus.cs deleted file mode 100644 index 12175ac..0000000 --- a/V2/Queries/DeviceHealth/DeviceHealth5XXError_results_avInstallStatus.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.DeviceHealth -{ - /// Antivirus installation status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceHealth5XXError_results_avInstallStatus - { - [EnumMember(Value = "REQUESTED")] - #pragma warning disable CS1591 - REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOWNLOAD_STARTED")] - #pragma warning disable CS1591 - DOWNLOAD_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOWNLOADED")] - #pragma warning disable CS1591 - DOWNLOADED, - #pragma warning restore CS1591 - [EnumMember(Value = "DOWNLOAD_FAILED")] - #pragma warning disable CS1591 - DOWNLOAD_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "INSTALL_STARTED")] - #pragma warning disable CS1591 - INSTALL_STARTED, - #pragma warning restore CS1591 - [EnumMember(Value = "INSTALLED")] - #pragma warning disable CS1591 - INSTALLED, - #pragma warning restore CS1591 - [EnumMember(Value = "INSTALL_FAILED")] - #pragma warning disable CS1591 - INSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNINSTALL_REQUESTED")] - #pragma warning disable CS1591 - UNINSTALL_REQUESTED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNINSTALL_FAILED")] - #pragma warning disable CS1591 - UNINSTALL_FAILED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNINSTALLED")] - #pragma warning disable CS1591 - UNINSTALLED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/DeviceHealth/DeviceHealth5XXError_results_healthStatus.cs b/V2/Queries/DeviceHealth/DeviceHealth5XXError_results_healthStatus.cs deleted file mode 100644 index 4382ace..0000000 --- a/V2/Queries/DeviceHealth/DeviceHealth5XXError_results_healthStatus.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.DeviceHealth -{ - /// Health status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum DeviceHealth5XXError_results_healthStatus - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "HEALTHY")] - #pragma warning disable CS1591 - HEALTHY, - #pragma warning restore CS1591 - [EnumMember(Value = "NEEDS_ATTENTION")] - #pragma warning disable CS1591 - NEEDS_ATTENTION, - #pragma warning restore CS1591 - [EnumMember(Value = "UNHEALTHY")] - #pragma warning disable CS1591 - UNHEALTHY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/DeviceHealth/DeviceHealth5XXError_results_productsInstallationStatuses.cs b/V2/Queries/DeviceHealth/DeviceHealth5XXError_results_productsInstallationStatuses.cs deleted file mode 100644 index a8a5517..0000000 --- a/V2/Queries/DeviceHealth/DeviceHealth5XXError_results_productsInstallationStatuses.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.DeviceHealth -{ - /// - /// Integrated products' installation statuses - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceHealth5XXError_results_productsInstallationStatuses : 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. - /// - public DeviceHealth5XXError_results_productsInstallationStatuses() - { - 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::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError_results_productsInstallationStatuses CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError_results_productsInstallationStatuses(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/DeviceHealth/DeviceHealthRequestBuilder.cs b/V2/Queries/DeviceHealth/DeviceHealthRequestBuilder.cs deleted file mode 100644 index ae75f46..0000000 --- a/V2/Queries/DeviceHealth/DeviceHealthRequestBuilder.cs +++ /dev/null @@ -1,138 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.DeviceHealth -{ - /// - /// Builds and executes requests for operations under \v2\queries\device-health - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceHealthRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DeviceHealthRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/device-health{?cursor*,df*,health*,pageSize*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DeviceHealthRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/device-health{?cursor*,df*,health*,pageSize*}", rawUrl) - { - } - /// - /// Returns list of device health summary records - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealth5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of device health summary records - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealthRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealthRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of device health summary records - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceHealthRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Health status filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("health")] - public string? Health { get; set; } -#nullable restore -#else - [QueryParameter("health")] - public string Health { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceHealthRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Disks/Disks4XXError.cs b/V2/Queries/Disks/Disks4XXError.cs deleted file mode 100644 index 92e35c2..0000000 --- a/V2/Queries/Disks/Disks4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Disks -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Disks4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.Disks.Disks4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.Disks.Disks4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Disks4XXError() - { - 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::NinjaOne.Client.V2.Queries.Disks.Disks4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Disks.Disks4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.Disks.Disks4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.Disks.Disks4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Disks/Disks4XXError_cursor.cs b/V2/Queries/Disks/Disks4XXError_cursor.cs deleted file mode 100644 index c10f723..0000000 --- a/V2/Queries/Disks/Disks4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Disks -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Disks4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Disks4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.Disks.Disks4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Disks.Disks4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Disks/Disks4XXError_results.cs b/V2/Queries/Disks/Disks4XXError_results.cs deleted file mode 100644 index ba3e423..0000000 --- a/V2/Queries/Disks/Disks4XXError_results.cs +++ /dev/null @@ -1,159 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Disks -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Disks4XXError_results : 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; } - /// Number of bytes per sector - public int? BytesPerSector { get; set; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// Interface type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? InterfaceType { get; set; } -#nullable restore -#else - public string InterfaceType { get; set; } -#endif - /// Manufacturer -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Manufacturer { get; set; } -#nullable restore -#else - public string Manufacturer { get; set; } -#endif - /// Media Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MediaType { get; set; } -#nullable restore -#else - public string MediaType { get; set; } -#endif - /// Model -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Model { get; set; } -#nullable restore -#else - public string Model { get; set; } -#endif - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Number of partitions - public int? PartitionCount { get; set; } - /// Serial number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SerialNumber { get; set; } -#nullable restore -#else - public string SerialNumber { get; set; } -#endif - /// Size (Bytes) - public long? Size { get; set; } - /// Is S.M.A.R.T. capable? - public bool? SmartCapable { get; set; } - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Disks4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.Disks.Disks4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Disks.Disks4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "bytesPerSector", n => { BytesPerSector = n.GetIntValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "interfaceType", n => { InterfaceType = n.GetStringValue(); } }, - { "manufacturer", n => { Manufacturer = n.GetStringValue(); } }, - { "mediaType", n => { MediaType = n.GetStringValue(); } }, - { "model", n => { Model = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "partitionCount", n => { PartitionCount = n.GetIntValue(); } }, - { "serialNumber", n => { SerialNumber = n.GetStringValue(); } }, - { "size", n => { Size = n.GetLongValue(); } }, - { "smartCapable", n => { SmartCapable = n.GetBoolValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("bytesPerSector", BytesPerSector); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("interfaceType", InterfaceType); - writer.WriteStringValue("manufacturer", Manufacturer); - writer.WriteStringValue("mediaType", MediaType); - writer.WriteStringValue("model", Model); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("partitionCount", PartitionCount); - writer.WriteStringValue("serialNumber", SerialNumber); - writer.WriteLongValue("size", Size); - writer.WriteBoolValue("smartCapable", SmartCapable); - writer.WriteStringValue("status", Status); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Disks/Disks5XXError.cs b/V2/Queries/Disks/Disks5XXError.cs deleted file mode 100644 index 2562266..0000000 --- a/V2/Queries/Disks/Disks5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Disks -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Disks5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.Disks.Disks5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.Disks.Disks5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Disks5XXError() - { - 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::NinjaOne.Client.V2.Queries.Disks.Disks5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Disks.Disks5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.Disks.Disks5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.Disks.Disks5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Disks/Disks5XXError_cursor.cs b/V2/Queries/Disks/Disks5XXError_cursor.cs deleted file mode 100644 index be50e12..0000000 --- a/V2/Queries/Disks/Disks5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Disks -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Disks5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Disks5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.Disks.Disks5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Disks.Disks5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Disks/Disks5XXError_results.cs b/V2/Queries/Disks/Disks5XXError_results.cs deleted file mode 100644 index 585263e..0000000 --- a/V2/Queries/Disks/Disks5XXError_results.cs +++ /dev/null @@ -1,159 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Disks -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Disks5XXError_results : 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; } - /// Number of bytes per sector - public int? BytesPerSector { get; set; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// Interface type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? InterfaceType { get; set; } -#nullable restore -#else - public string InterfaceType { get; set; } -#endif - /// Manufacturer -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Manufacturer { get; set; } -#nullable restore -#else - public string Manufacturer { get; set; } -#endif - /// Media Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MediaType { get; set; } -#nullable restore -#else - public string MediaType { get; set; } -#endif - /// Model -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Model { get; set; } -#nullable restore -#else - public string Model { get; set; } -#endif - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Number of partitions - public int? PartitionCount { get; set; } - /// Serial number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SerialNumber { get; set; } -#nullable restore -#else - public string SerialNumber { get; set; } -#endif - /// Size (Bytes) - public long? Size { get; set; } - /// Is S.M.A.R.T. capable? - public bool? SmartCapable { get; set; } - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Disks5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.Disks.Disks5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Disks.Disks5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "bytesPerSector", n => { BytesPerSector = n.GetIntValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "interfaceType", n => { InterfaceType = n.GetStringValue(); } }, - { "manufacturer", n => { Manufacturer = n.GetStringValue(); } }, - { "mediaType", n => { MediaType = n.GetStringValue(); } }, - { "model", n => { Model = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "partitionCount", n => { PartitionCount = n.GetIntValue(); } }, - { "serialNumber", n => { SerialNumber = n.GetStringValue(); } }, - { "size", n => { Size = n.GetLongValue(); } }, - { "smartCapable", n => { SmartCapable = n.GetBoolValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("bytesPerSector", BytesPerSector); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("interfaceType", InterfaceType); - writer.WriteStringValue("manufacturer", Manufacturer); - writer.WriteStringValue("mediaType", MediaType); - writer.WriteStringValue("model", Model); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("partitionCount", PartitionCount); - writer.WriteStringValue("serialNumber", SerialNumber); - writer.WriteLongValue("size", Size); - writer.WriteBoolValue("smartCapable", SmartCapable); - writer.WriteStringValue("status", Status); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Disks/DisksRequestBuilder.cs b/V2/Queries/Disks/DisksRequestBuilder.cs deleted file mode 100644 index b56b651..0000000 --- a/V2/Queries/Disks/DisksRequestBuilder.cs +++ /dev/null @@ -1,138 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.Disks -{ - /// - /// Builds and executes requests for operations under \v2\queries\disks - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DisksRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DisksRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/disks{?cursor*,df*,pageSize*,ts*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DisksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/disks{?cursor*,df*,pageSize*,ts*}", rawUrl) - { - } - /// - /// Returns list of physical disks - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.Disks.Disks4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.Disks.Disks5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of physical disks - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.Disks.DisksRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.Disks.DisksRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of physical disks - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DisksRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Monitoring timestamp filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("ts")] - public string? Ts { get; set; } -#nullable restore -#else - [QueryParameter("ts")] - public string Ts { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DisksRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/LoggedOnUsers/LoggedOnUsers4XXError.cs b/V2/Queries/LoggedOnUsers/LoggedOnUsers4XXError.cs deleted file mode 100644 index fd09bbe..0000000 --- a/V2/Queries/LoggedOnUsers/LoggedOnUsers4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.LoggedOnUsers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LoggedOnUsers4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public LoggedOnUsers4XXError() - { - 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::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/LoggedOnUsers/LoggedOnUsers4XXError_cursor.cs b/V2/Queries/LoggedOnUsers/LoggedOnUsers4XXError_cursor.cs deleted file mode 100644 index 84cd762..0000000 --- a/V2/Queries/LoggedOnUsers/LoggedOnUsers4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.LoggedOnUsers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LoggedOnUsers4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public LoggedOnUsers4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/LoggedOnUsers/LoggedOnUsers4XXError_results.cs b/V2/Queries/LoggedOnUsers/LoggedOnUsers4XXError_results.cs deleted file mode 100644 index f9fc1f5..0000000 --- a/V2/Queries/LoggedOnUsers/LoggedOnUsers4XXError_results.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.LoggedOnUsers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LoggedOnUsers4XXError_results : 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; } - /// Device identifier - public int? DeviceId { get; set; } - /// Time of logon - public double? LogonTime { get; set; } - /// User name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UserName { get; set; } -#nullable restore -#else - public string UserName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public LoggedOnUsers4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "logonTime", n => { LogonTime = n.GetDoubleValue(); } }, - { "userName", n => { UserName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteDoubleValue("logonTime", LogonTime); - writer.WriteStringValue("userName", UserName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/LoggedOnUsers/LoggedOnUsers5XXError.cs b/V2/Queries/LoggedOnUsers/LoggedOnUsers5XXError.cs deleted file mode 100644 index 174a8de..0000000 --- a/V2/Queries/LoggedOnUsers/LoggedOnUsers5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.LoggedOnUsers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LoggedOnUsers5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public LoggedOnUsers5XXError() - { - 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::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/LoggedOnUsers/LoggedOnUsers5XXError_cursor.cs b/V2/Queries/LoggedOnUsers/LoggedOnUsers5XXError_cursor.cs deleted file mode 100644 index 3ce0c9d..0000000 --- a/V2/Queries/LoggedOnUsers/LoggedOnUsers5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.LoggedOnUsers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LoggedOnUsers5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public LoggedOnUsers5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/LoggedOnUsers/LoggedOnUsers5XXError_results.cs b/V2/Queries/LoggedOnUsers/LoggedOnUsers5XXError_results.cs deleted file mode 100644 index 63b0df1..0000000 --- a/V2/Queries/LoggedOnUsers/LoggedOnUsers5XXError_results.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.LoggedOnUsers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LoggedOnUsers5XXError_results : 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; } - /// Device identifier - public int? DeviceId { get; set; } - /// Time of logon - public double? LogonTime { get; set; } - /// User name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UserName { get; set; } -#nullable restore -#else - public string UserName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public LoggedOnUsers5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "logonTime", n => { LogonTime = n.GetDoubleValue(); } }, - { "userName", n => { UserName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteDoubleValue("logonTime", LogonTime); - writer.WriteStringValue("userName", UserName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/LoggedOnUsers/LoggedOnUsersRequestBuilder.cs b/V2/Queries/LoggedOnUsers/LoggedOnUsersRequestBuilder.cs deleted file mode 100644 index f7131b2..0000000 --- a/V2/Queries/LoggedOnUsers/LoggedOnUsersRequestBuilder.cs +++ /dev/null @@ -1,128 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.LoggedOnUsers -{ - /// - /// Builds and executes requests for operations under \v2\queries\logged-on-users - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LoggedOnUsersRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public LoggedOnUsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/logged-on-users{?cursor*,df*,pageSize*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public LoggedOnUsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/logged-on-users{?cursor*,df*,pageSize*}", rawUrl) - { - } - /// - /// Returns usernames and logon times - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsers5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns usernames and logon times - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsersRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsersRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns usernames and logon times - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LoggedOnUsersRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LoggedOnUsersRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/NetworkInterfaces/NetworkInterfaces4XXError.cs b/V2/Queries/NetworkInterfaces/NetworkInterfaces4XXError.cs deleted file mode 100644 index d135766..0000000 --- a/V2/Queries/NetworkInterfaces/NetworkInterfaces4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.NetworkInterfaces -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class NetworkInterfaces4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public NetworkInterfaces4XXError() - { - 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::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/NetworkInterfaces/NetworkInterfaces4XXError_cursor.cs b/V2/Queries/NetworkInterfaces/NetworkInterfaces4XXError_cursor.cs deleted file mode 100644 index eca6789..0000000 --- a/V2/Queries/NetworkInterfaces/NetworkInterfaces4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.NetworkInterfaces -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class NetworkInterfaces4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public NetworkInterfaces4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/NetworkInterfaces/NetworkInterfaces4XXError_results.cs b/V2/Queries/NetworkInterfaces/NetworkInterfaces4XXError_results.cs deleted file mode 100644 index 29eb42e..0000000 --- a/V2/Queries/NetworkInterfaces/NetworkInterfaces4XXError_results.cs +++ /dev/null @@ -1,189 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.NetworkInterfaces -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class NetworkInterfaces4XXError_results : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Adapter Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? AdapterName { get; set; } -#nullable restore -#else - public string AdapterName { get; set; } -#endif - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Default Gateway -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DefaultGateway { get; set; } -#nullable restore -#else - public string DefaultGateway { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// DNS HostName -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DnsHostName { get; set; } -#nullable restore -#else - public string DnsHostName { get; set; } -#endif - /// DNS Servers -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DnsServers { get; set; } -#nullable restore -#else - public string DnsServers { get; set; } -#endif - /// Interface Index -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? InterfaceIndex { get; set; } -#nullable restore -#else - public string InterfaceIndex { get; set; } -#endif - /// Interface Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? InterfaceName { get; set; } -#nullable restore -#else - public string InterfaceName { get; set; } -#endif - /// Interface Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? InterfaceType { get; set; } -#nullable restore -#else - public string InterfaceType { get; set; } -#endif - /// IP Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? IpAddress { get; set; } -#nullable restore -#else - public List IpAddress { get; set; } -#endif - /// Link Speed -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LinkSpeed { get; set; } -#nullable restore -#else - public string LinkSpeed { get; set; } -#endif - /// MAC Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MacAddress { get; set; } -#nullable restore -#else - public List MacAddress { get; set; } -#endif - /// MTU -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Mtu { get; set; } -#nullable restore -#else - public string Mtu { get; set; } -#endif - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Subnet Mask -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SubnetMask { get; set; } -#nullable restore -#else - public string SubnetMask { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public NetworkInterfaces4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "adapterName", n => { AdapterName = n.GetStringValue(); } }, - { "defaultGateway", n => { DefaultGateway = n.GetStringValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "dnsHostName", n => { DnsHostName = n.GetStringValue(); } }, - { "dnsServers", n => { DnsServers = n.GetStringValue(); } }, - { "interfaceIndex", n => { InterfaceIndex = n.GetStringValue(); } }, - { "interfaceName", n => { InterfaceName = n.GetStringValue(); } }, - { "interfaceType", n => { InterfaceType = n.GetStringValue(); } }, - { "ipAddress", n => { IpAddress = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "linkSpeed", n => { LinkSpeed = n.GetStringValue(); } }, - { "macAddress", n => { MacAddress = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "mtu", n => { Mtu = n.GetStringValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "subnetMask", n => { SubnetMask = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("adapterName", AdapterName); - writer.WriteStringValue("defaultGateway", DefaultGateway); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("dnsHostName", DnsHostName); - writer.WriteStringValue("dnsServers", DnsServers); - writer.WriteStringValue("interfaceIndex", InterfaceIndex); - writer.WriteStringValue("interfaceName", InterfaceName); - writer.WriteStringValue("interfaceType", InterfaceType); - writer.WriteCollectionOfPrimitiveValues("ipAddress", IpAddress); - writer.WriteStringValue("linkSpeed", LinkSpeed); - writer.WriteCollectionOfPrimitiveValues("macAddress", MacAddress); - writer.WriteStringValue("mtu", Mtu); - writer.WriteStringValue("status", Status); - writer.WriteStringValue("subnetMask", SubnetMask); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/NetworkInterfaces/NetworkInterfaces5XXError.cs b/V2/Queries/NetworkInterfaces/NetworkInterfaces5XXError.cs deleted file mode 100644 index 2e8618c..0000000 --- a/V2/Queries/NetworkInterfaces/NetworkInterfaces5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.NetworkInterfaces -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class NetworkInterfaces5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public NetworkInterfaces5XXError() - { - 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::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/NetworkInterfaces/NetworkInterfaces5XXError_cursor.cs b/V2/Queries/NetworkInterfaces/NetworkInterfaces5XXError_cursor.cs deleted file mode 100644 index db24034..0000000 --- a/V2/Queries/NetworkInterfaces/NetworkInterfaces5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.NetworkInterfaces -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class NetworkInterfaces5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public NetworkInterfaces5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/NetworkInterfaces/NetworkInterfaces5XXError_results.cs b/V2/Queries/NetworkInterfaces/NetworkInterfaces5XXError_results.cs deleted file mode 100644 index dd9e3d4..0000000 --- a/V2/Queries/NetworkInterfaces/NetworkInterfaces5XXError_results.cs +++ /dev/null @@ -1,189 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.NetworkInterfaces -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class NetworkInterfaces5XXError_results : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Adapter Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? AdapterName { get; set; } -#nullable restore -#else - public string AdapterName { get; set; } -#endif - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Default Gateway -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DefaultGateway { get; set; } -#nullable restore -#else - public string DefaultGateway { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// DNS HostName -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DnsHostName { get; set; } -#nullable restore -#else - public string DnsHostName { get; set; } -#endif - /// DNS Servers -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DnsServers { get; set; } -#nullable restore -#else - public string DnsServers { get; set; } -#endif - /// Interface Index -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? InterfaceIndex { get; set; } -#nullable restore -#else - public string InterfaceIndex { get; set; } -#endif - /// Interface Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? InterfaceName { get; set; } -#nullable restore -#else - public string InterfaceName { get; set; } -#endif - /// Interface Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? InterfaceType { get; set; } -#nullable restore -#else - public string InterfaceType { get; set; } -#endif - /// IP Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? IpAddress { get; set; } -#nullable restore -#else - public List IpAddress { get; set; } -#endif - /// Link Speed -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LinkSpeed { get; set; } -#nullable restore -#else - public string LinkSpeed { get; set; } -#endif - /// MAC Address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MacAddress { get; set; } -#nullable restore -#else - public List MacAddress { get; set; } -#endif - /// MTU -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Mtu { get; set; } -#nullable restore -#else - public string Mtu { get; set; } -#endif - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Subnet Mask -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SubnetMask { get; set; } -#nullable restore -#else - public string SubnetMask { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public NetworkInterfaces5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "adapterName", n => { AdapterName = n.GetStringValue(); } }, - { "defaultGateway", n => { DefaultGateway = n.GetStringValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "dnsHostName", n => { DnsHostName = n.GetStringValue(); } }, - { "dnsServers", n => { DnsServers = n.GetStringValue(); } }, - { "interfaceIndex", n => { InterfaceIndex = n.GetStringValue(); } }, - { "interfaceName", n => { InterfaceName = n.GetStringValue(); } }, - { "interfaceType", n => { InterfaceType = n.GetStringValue(); } }, - { "ipAddress", n => { IpAddress = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "linkSpeed", n => { LinkSpeed = n.GetStringValue(); } }, - { "macAddress", n => { MacAddress = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "mtu", n => { Mtu = n.GetStringValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "subnetMask", n => { SubnetMask = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("adapterName", AdapterName); - writer.WriteStringValue("defaultGateway", DefaultGateway); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("dnsHostName", DnsHostName); - writer.WriteStringValue("dnsServers", DnsServers); - writer.WriteStringValue("interfaceIndex", InterfaceIndex); - writer.WriteStringValue("interfaceName", InterfaceName); - writer.WriteStringValue("interfaceType", InterfaceType); - writer.WriteCollectionOfPrimitiveValues("ipAddress", IpAddress); - writer.WriteStringValue("linkSpeed", LinkSpeed); - writer.WriteCollectionOfPrimitiveValues("macAddress", MacAddress); - writer.WriteStringValue("mtu", Mtu); - writer.WriteStringValue("status", Status); - writer.WriteStringValue("subnetMask", SubnetMask); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/NetworkInterfaces/NetworkInterfacesRequestBuilder.cs b/V2/Queries/NetworkInterfaces/NetworkInterfacesRequestBuilder.cs deleted file mode 100644 index ebc753c..0000000 --- a/V2/Queries/NetworkInterfaces/NetworkInterfacesRequestBuilder.cs +++ /dev/null @@ -1,127 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.NetworkInterfaces -{ - /// - /// Builds and executes requests for operations under \v2\queries\network-interfaces - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class NetworkInterfacesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public NetworkInterfacesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/network-interfaces{?cursor*,df*,pageSize*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public NetworkInterfacesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/network-interfaces{?cursor*,df*,pageSize*}", rawUrl) - { - } - /// - /// Returns list of Network Interfaces for each device - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfaces5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of Network Interfaces for each device - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfacesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfacesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of Network Interfaces for each device - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class NetworkInterfacesRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class NetworkInterfacesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OperatingSystems/OperatingSystems4XXError.cs b/V2/Queries/OperatingSystems/OperatingSystems4XXError.cs deleted file mode 100644 index a1ad3cd..0000000 --- a/V2/Queries/OperatingSystems/OperatingSystems4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OperatingSystems -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OperatingSystems4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OperatingSystems4XXError() - { - 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::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OperatingSystems/OperatingSystems4XXError_cursor.cs b/V2/Queries/OperatingSystems/OperatingSystems4XXError_cursor.cs deleted file mode 100644 index 34fe5ee..0000000 --- a/V2/Queries/OperatingSystems/OperatingSystems4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OperatingSystems -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OperatingSystems4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public OperatingSystems4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OperatingSystems/OperatingSystems4XXError_results.cs b/V2/Queries/OperatingSystems/OperatingSystems4XXError_results.cs deleted file mode 100644 index 3786271..0000000 --- a/V2/Queries/OperatingSystems/OperatingSystems4XXError_results.cs +++ /dev/null @@ -1,149 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OperatingSystems -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OperatingSystems4XXError_results : 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; } - /// Architecture -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Architecture { get; set; } -#nullable restore -#else - public string Architecture { get; set; } -#endif - /// Build number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? BuildNumber { get; set; } -#nullable restore -#else - public string BuildNumber { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// Language -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Language { get; set; } -#nullable restore -#else - public string Language { get; set; } -#endif - /// Last boot time - public double? LastBootTime { get; set; } - /// Locale -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Locale { get; set; } -#nullable restore -#else - public string Locale { get; set; } -#endif - /// Manufacturer -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Manufacturer { get; set; } -#nullable restore -#else - public string Manufacturer { get; set; } -#endif - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Operating system has pending reboot requests - public bool? NeedsReboot { get; set; } - /// Release ID -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ReleaseId { get; set; } -#nullable restore -#else - public string ReleaseId { get; set; } -#endif - /// Service Pack Major Version - public int? ServicePackMajorVersion { get; set; } - /// Service Pack Minor Version - public int? ServicePackMinorVersion { get; set; } - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public OperatingSystems4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "architecture", n => { Architecture = n.GetStringValue(); } }, - { "buildNumber", n => { BuildNumber = n.GetStringValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "language", n => { Language = n.GetStringValue(); } }, - { "lastBootTime", n => { LastBootTime = n.GetDoubleValue(); } }, - { "locale", n => { Locale = n.GetStringValue(); } }, - { "manufacturer", n => { Manufacturer = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "needsReboot", n => { NeedsReboot = n.GetBoolValue(); } }, - { "releaseId", n => { ReleaseId = n.GetStringValue(); } }, - { "servicePackMajorVersion", n => { ServicePackMajorVersion = n.GetIntValue(); } }, - { "servicePackMinorVersion", n => { ServicePackMinorVersion = n.GetIntValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("architecture", Architecture); - writer.WriteStringValue("buildNumber", BuildNumber); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("language", Language); - writer.WriteDoubleValue("lastBootTime", LastBootTime); - writer.WriteStringValue("locale", Locale); - writer.WriteStringValue("manufacturer", Manufacturer); - writer.WriteStringValue("name", Name); - writer.WriteBoolValue("needsReboot", NeedsReboot); - writer.WriteStringValue("releaseId", ReleaseId); - writer.WriteIntValue("servicePackMajorVersion", ServicePackMajorVersion); - writer.WriteIntValue("servicePackMinorVersion", ServicePackMinorVersion); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OperatingSystems/OperatingSystems5XXError.cs b/V2/Queries/OperatingSystems/OperatingSystems5XXError.cs deleted file mode 100644 index 172803e..0000000 --- a/V2/Queries/OperatingSystems/OperatingSystems5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OperatingSystems -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OperatingSystems5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OperatingSystems5XXError() - { - 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::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OperatingSystems/OperatingSystems5XXError_cursor.cs b/V2/Queries/OperatingSystems/OperatingSystems5XXError_cursor.cs deleted file mode 100644 index 13ff0df..0000000 --- a/V2/Queries/OperatingSystems/OperatingSystems5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OperatingSystems -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OperatingSystems5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public OperatingSystems5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OperatingSystems/OperatingSystems5XXError_results.cs b/V2/Queries/OperatingSystems/OperatingSystems5XXError_results.cs deleted file mode 100644 index 4765491..0000000 --- a/V2/Queries/OperatingSystems/OperatingSystems5XXError_results.cs +++ /dev/null @@ -1,149 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OperatingSystems -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OperatingSystems5XXError_results : 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; } - /// Architecture -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Architecture { get; set; } -#nullable restore -#else - public string Architecture { get; set; } -#endif - /// Build number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? BuildNumber { get; set; } -#nullable restore -#else - public string BuildNumber { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// Language -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Language { get; set; } -#nullable restore -#else - public string Language { get; set; } -#endif - /// Last boot time - public double? LastBootTime { get; set; } - /// Locale -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Locale { get; set; } -#nullable restore -#else - public string Locale { get; set; } -#endif - /// Manufacturer -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Manufacturer { get; set; } -#nullable restore -#else - public string Manufacturer { get; set; } -#endif - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Operating system has pending reboot requests - public bool? NeedsReboot { get; set; } - /// Release ID -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ReleaseId { get; set; } -#nullable restore -#else - public string ReleaseId { get; set; } -#endif - /// Service Pack Major Version - public int? ServicePackMajorVersion { get; set; } - /// Service Pack Minor Version - public int? ServicePackMinorVersion { get; set; } - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public OperatingSystems5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "architecture", n => { Architecture = n.GetStringValue(); } }, - { "buildNumber", n => { BuildNumber = n.GetStringValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "language", n => { Language = n.GetStringValue(); } }, - { "lastBootTime", n => { LastBootTime = n.GetDoubleValue(); } }, - { "locale", n => { Locale = n.GetStringValue(); } }, - { "manufacturer", n => { Manufacturer = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "needsReboot", n => { NeedsReboot = n.GetBoolValue(); } }, - { "releaseId", n => { ReleaseId = n.GetStringValue(); } }, - { "servicePackMajorVersion", n => { ServicePackMajorVersion = n.GetIntValue(); } }, - { "servicePackMinorVersion", n => { ServicePackMinorVersion = n.GetIntValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("architecture", Architecture); - writer.WriteStringValue("buildNumber", BuildNumber); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("language", Language); - writer.WriteDoubleValue("lastBootTime", LastBootTime); - writer.WriteStringValue("locale", Locale); - writer.WriteStringValue("manufacturer", Manufacturer); - writer.WriteStringValue("name", Name); - writer.WriteBoolValue("needsReboot", NeedsReboot); - writer.WriteStringValue("releaseId", ReleaseId); - writer.WriteIntValue("servicePackMajorVersion", ServicePackMajorVersion); - writer.WriteIntValue("servicePackMinorVersion", ServicePackMinorVersion); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OperatingSystems/OperatingSystemsRequestBuilder.cs b/V2/Queries/OperatingSystems/OperatingSystemsRequestBuilder.cs deleted file mode 100644 index 7d3e3c0..0000000 --- a/V2/Queries/OperatingSystems/OperatingSystemsRequestBuilder.cs +++ /dev/null @@ -1,138 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.OperatingSystems -{ - /// - /// Builds and executes requests for operations under \v2\queries\operating-systems - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OperatingSystemsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OperatingSystemsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/operating-systems{?cursor*,df*,pageSize*,ts*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OperatingSystemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/operating-systems{?cursor*,df*,pageSize*,ts*}", rawUrl) - { - } - /// - /// Returns operating systems' for devices - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystems5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns operating systems' for devices - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystemsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystemsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns operating systems' for devices - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OperatingSystemsRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Monitoring timestamp filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("ts")] - public string? Ts { get; set; } -#nullable restore -#else - [QueryParameter("ts")] - public string Ts { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OperatingSystemsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OsPatchInstalls/OsPatchInstalls4XXError.cs b/V2/Queries/OsPatchInstalls/OsPatchInstalls4XXError.cs deleted file mode 100644 index c8329dc..0000000 --- a/V2/Queries/OsPatchInstalls/OsPatchInstalls4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OsPatchInstalls -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OsPatchInstalls4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OsPatchInstalls4XXError() - { - 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::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OsPatchInstalls/OsPatchInstalls4XXError_cursor.cs b/V2/Queries/OsPatchInstalls/OsPatchInstalls4XXError_cursor.cs deleted file mode 100644 index 2e4b2c8..0000000 --- a/V2/Queries/OsPatchInstalls/OsPatchInstalls4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OsPatchInstalls -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OsPatchInstalls4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public OsPatchInstalls4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OsPatchInstalls/OsPatchInstalls4XXError_results.cs b/V2/Queries/OsPatchInstalls/OsPatchInstalls4XXError_results.cs deleted file mode 100644 index ddc2963..0000000 --- a/V2/Queries/OsPatchInstalls/OsPatchInstalls4XXError_results.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OsPatchInstalls -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OsPatchInstalls4XXError_results : 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; } - /// Device identifier - public int? DeviceId { get; set; } - /// Identifier - public Guid? Id { get; set; } - /// Installation attempt timestamp - public double? InstalledAt { get; set; } - /// KB Number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? KbNumber { get; set; } -#nullable restore -#else - public string KbNumber { get; set; } -#endif - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Severity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Severity { get; set; } -#nullable restore -#else - public string Severity { get; set; } -#endif - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OsPatchInstalls4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "installedAt", n => { InstalledAt = n.GetDoubleValue(); } }, - { "kbNumber", n => { KbNumber = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "severity", n => { Severity = n.GetStringValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteGuidValue("id", Id); - writer.WriteDoubleValue("installedAt", InstalledAt); - writer.WriteStringValue("kbNumber", KbNumber); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("severity", Severity); - writer.WriteStringValue("status", Status); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OsPatchInstalls/OsPatchInstalls5XXError.cs b/V2/Queries/OsPatchInstalls/OsPatchInstalls5XXError.cs deleted file mode 100644 index 74ed640..0000000 --- a/V2/Queries/OsPatchInstalls/OsPatchInstalls5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OsPatchInstalls -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OsPatchInstalls5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OsPatchInstalls5XXError() - { - 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::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OsPatchInstalls/OsPatchInstalls5XXError_cursor.cs b/V2/Queries/OsPatchInstalls/OsPatchInstalls5XXError_cursor.cs deleted file mode 100644 index c948e4b..0000000 --- a/V2/Queries/OsPatchInstalls/OsPatchInstalls5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OsPatchInstalls -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OsPatchInstalls5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public OsPatchInstalls5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OsPatchInstalls/OsPatchInstalls5XXError_results.cs b/V2/Queries/OsPatchInstalls/OsPatchInstalls5XXError_results.cs deleted file mode 100644 index 7c1e27f..0000000 --- a/V2/Queries/OsPatchInstalls/OsPatchInstalls5XXError_results.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OsPatchInstalls -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OsPatchInstalls5XXError_results : 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; } - /// Device identifier - public int? DeviceId { get; set; } - /// Identifier - public Guid? Id { get; set; } - /// Installation attempt timestamp - public double? InstalledAt { get; set; } - /// KB Number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? KbNumber { get; set; } -#nullable restore -#else - public string KbNumber { get; set; } -#endif - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Severity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Severity { get; set; } -#nullable restore -#else - public string Severity { get; set; } -#endif - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OsPatchInstalls5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "installedAt", n => { InstalledAt = n.GetDoubleValue(); } }, - { "kbNumber", n => { KbNumber = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "severity", n => { Severity = n.GetStringValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteGuidValue("id", Id); - writer.WriteDoubleValue("installedAt", InstalledAt); - writer.WriteStringValue("kbNumber", KbNumber); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("severity", Severity); - writer.WriteStringValue("status", Status); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OsPatchInstalls/OsPatchInstallsRequestBuilder.cs b/V2/Queries/OsPatchInstalls/OsPatchInstallsRequestBuilder.cs deleted file mode 100644 index 476bb2d..0000000 --- a/V2/Queries/OsPatchInstalls/OsPatchInstallsRequestBuilder.cs +++ /dev/null @@ -1,158 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.OsPatchInstalls -{ - /// - /// Builds and executes requests for operations under \v2\queries\os-patch-installs - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OsPatchInstallsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OsPatchInstallsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/os-patch-installs{?cursor*,df*,installedAfter*,installedBefore*,pageSize*,status*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OsPatchInstallsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/os-patch-installs{?cursor*,df*,installedAfter*,installedBefore*,pageSize*,status*}", rawUrl) - { - } - /// - /// Returns patch installation history records (successful and failed) - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstalls5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns patch installation history records (successful and failed) - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstallsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstallsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns patch installation history records (successful and failed) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OsPatchInstallsRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Include patches installed after specified date -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("installedAfter")] - public string? InstalledAfter { get; set; } -#nullable restore -#else - [QueryParameter("installedAfter")] - public string InstalledAfter { get; set; } -#endif - /// Include patches installed before specified date -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("installedBefore")] - public string? InstalledBefore { get; set; } -#nullable restore -#else - [QueryParameter("installedBefore")] - public string InstalledBefore { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Patch Status filter (FAILED, INSTALLED) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("status")] - public string? Status { get; set; } -#nullable restore -#else - [QueryParameter("status")] - public string Status { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OsPatchInstallsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OsPatches/OsPatches4XXError.cs b/V2/Queries/OsPatches/OsPatches4XXError.cs deleted file mode 100644 index 3c1e915..0000000 --- a/V2/Queries/OsPatches/OsPatches4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OsPatches -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OsPatches4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.OsPatches.OsPatches4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.OsPatches.OsPatches4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OsPatches4XXError() - { - 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::NinjaOne.Client.V2.Queries.OsPatches.OsPatches4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OsPatches.OsPatches4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.OsPatches.OsPatches4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.OsPatches.OsPatches4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OsPatches/OsPatches4XXError_cursor.cs b/V2/Queries/OsPatches/OsPatches4XXError_cursor.cs deleted file mode 100644 index c65f8ba..0000000 --- a/V2/Queries/OsPatches/OsPatches4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OsPatches -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OsPatches4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public OsPatches4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.OsPatches.OsPatches4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OsPatches.OsPatches4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OsPatches/OsPatches4XXError_results.cs b/V2/Queries/OsPatches/OsPatches4XXError_results.cs deleted file mode 100644 index 6fd3738..0000000 --- a/V2/Queries/OsPatches/OsPatches4XXError_results.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OsPatches -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OsPatches4XXError_results : 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; } - /// Device identifier - public int? DeviceId { get; set; } - /// Identifier - public Guid? Id { get; set; } - /// Installation attempt timestamp - public double? InstalledAt { get; set; } - /// KB Number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? KbNumber { get; set; } -#nullable restore -#else - public string KbNumber { get; set; } -#endif - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Severity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Severity { get; set; } -#nullable restore -#else - public string Severity { get; set; } -#endif - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OsPatches4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.OsPatches.OsPatches4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OsPatches.OsPatches4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "installedAt", n => { InstalledAt = n.GetDoubleValue(); } }, - { "kbNumber", n => { KbNumber = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "severity", n => { Severity = n.GetStringValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteGuidValue("id", Id); - writer.WriteDoubleValue("installedAt", InstalledAt); - writer.WriteStringValue("kbNumber", KbNumber); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("severity", Severity); - writer.WriteStringValue("status", Status); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OsPatches/OsPatches5XXError.cs b/V2/Queries/OsPatches/OsPatches5XXError.cs deleted file mode 100644 index 3aa4b19..0000000 --- a/V2/Queries/OsPatches/OsPatches5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OsPatches -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OsPatches5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.OsPatches.OsPatches5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.OsPatches.OsPatches5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OsPatches5XXError() - { - 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::NinjaOne.Client.V2.Queries.OsPatches.OsPatches5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OsPatches.OsPatches5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.OsPatches.OsPatches5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.OsPatches.OsPatches5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OsPatches/OsPatches5XXError_cursor.cs b/V2/Queries/OsPatches/OsPatches5XXError_cursor.cs deleted file mode 100644 index 81ebf31..0000000 --- a/V2/Queries/OsPatches/OsPatches5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OsPatches -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OsPatches5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public OsPatches5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.OsPatches.OsPatches5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OsPatches.OsPatches5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OsPatches/OsPatches5XXError_results.cs b/V2/Queries/OsPatches/OsPatches5XXError_results.cs deleted file mode 100644 index 32c606f..0000000 --- a/V2/Queries/OsPatches/OsPatches5XXError_results.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.OsPatches -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class OsPatches5XXError_results : 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; } - /// Device identifier - public int? DeviceId { get; set; } - /// Identifier - public Guid? Id { get; set; } - /// Installation attempt timestamp - public double? InstalledAt { get; set; } - /// KB Number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? KbNumber { get; set; } -#nullable restore -#else - public string KbNumber { get; set; } -#endif - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Severity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Severity { get; set; } -#nullable restore -#else - public string Severity { get; set; } -#endif - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public OsPatches5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.OsPatches.OsPatches5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.OsPatches.OsPatches5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "installedAt", n => { InstalledAt = n.GetDoubleValue(); } }, - { "kbNumber", n => { KbNumber = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "severity", n => { Severity = n.GetStringValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteGuidValue("id", Id); - writer.WriteDoubleValue("installedAt", InstalledAt); - writer.WriteStringValue("kbNumber", KbNumber); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("severity", Severity); - writer.WriteStringValue("status", Status); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/OsPatches/OsPatchesRequestBuilder.cs b/V2/Queries/OsPatches/OsPatchesRequestBuilder.cs deleted file mode 100644 index 2b11b64..0000000 --- a/V2/Queries/OsPatches/OsPatchesRequestBuilder.cs +++ /dev/null @@ -1,168 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.OsPatches -{ - /// - /// Builds and executes requests for operations under \v2\queries\os-patches - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OsPatchesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OsPatchesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/os-patches{?cursor*,df*,pageSize*,severity*,status*,ts*,type*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OsPatchesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/os-patches{?cursor*,df*,pageSize*,severity*,status*,ts*,type*}", rawUrl) - { - } - /// - /// Returns list of OS patches for which there were no installation attempts - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.OsPatches.OsPatches4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.OsPatches.OsPatches5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of OS patches for which there were no installation attempts - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.OsPatches.OsPatchesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.OsPatches.OsPatchesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of OS patches for which there were no installation attempts - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OsPatchesRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Patch Severity filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("severity")] - public string? Severity { get; set; } -#nullable restore -#else - [QueryParameter("severity")] - public string Severity { get; set; } -#endif - /// Patch Status filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("status")] - public string? Status { get; set; } -#nullable restore -#else - [QueryParameter("status")] - public string Status { get; set; } -#endif - /// Monitoring timestamp filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("ts")] - public string? Ts { get; set; } -#nullable restore -#else - [QueryParameter("ts")] - public string Ts { get; set; } -#endif - /// Patch Type filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("type")] - public string? Type { get; set; } -#nullable restore -#else - [QueryParameter("type")] - public string Type { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OsPatchesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/PolicyOverrides/PolicyOverrides4XXError.cs b/V2/Queries/PolicyOverrides/PolicyOverrides4XXError.cs deleted file mode 100644 index b1afbfa..0000000 --- a/V2/Queries/PolicyOverrides/PolicyOverrides4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.PolicyOverrides -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class PolicyOverrides4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public PolicyOverrides4XXError() - { - 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::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/PolicyOverrides/PolicyOverrides4XXError_cursor.cs b/V2/Queries/PolicyOverrides/PolicyOverrides4XXError_cursor.cs deleted file mode 100644 index b2f49fb..0000000 --- a/V2/Queries/PolicyOverrides/PolicyOverrides4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.PolicyOverrides -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class PolicyOverrides4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public PolicyOverrides4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/PolicyOverrides/PolicyOverrides4XXError_results.cs b/V2/Queries/PolicyOverrides/PolicyOverrides4XXError_results.cs deleted file mode 100644 index e37193c..0000000 --- a/V2/Queries/PolicyOverrides/PolicyOverrides4XXError_results.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.PolicyOverrides -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class PolicyOverrides4XXError_results : 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; } - /// Device identifier - public int? DeviceId { get; set; } - /// List of policy sections -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Overrides { get; set; } -#nullable restore -#else - public List Overrides { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public PolicyOverrides4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "overrides", n => { Overrides = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteCollectionOfPrimitiveValues("overrides", Overrides); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/PolicyOverrides/PolicyOverrides5XXError.cs b/V2/Queries/PolicyOverrides/PolicyOverrides5XXError.cs deleted file mode 100644 index 5eb8a11..0000000 --- a/V2/Queries/PolicyOverrides/PolicyOverrides5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.PolicyOverrides -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class PolicyOverrides5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public PolicyOverrides5XXError() - { - 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::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/PolicyOverrides/PolicyOverrides5XXError_cursor.cs b/V2/Queries/PolicyOverrides/PolicyOverrides5XXError_cursor.cs deleted file mode 100644 index 4cf7560..0000000 --- a/V2/Queries/PolicyOverrides/PolicyOverrides5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.PolicyOverrides -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class PolicyOverrides5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public PolicyOverrides5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/PolicyOverrides/PolicyOverrides5XXError_results.cs b/V2/Queries/PolicyOverrides/PolicyOverrides5XXError_results.cs deleted file mode 100644 index 4b9b14b..0000000 --- a/V2/Queries/PolicyOverrides/PolicyOverrides5XXError_results.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.PolicyOverrides -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class PolicyOverrides5XXError_results : 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; } - /// Device identifier - public int? DeviceId { get; set; } - /// List of policy sections -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Overrides { get; set; } -#nullable restore -#else - public List Overrides { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public PolicyOverrides5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "overrides", n => { Overrides = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteCollectionOfPrimitiveValues("overrides", Overrides); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/PolicyOverrides/PolicyOverridesRequestBuilder.cs b/V2/Queries/PolicyOverrides/PolicyOverridesRequestBuilder.cs deleted file mode 100644 index 210addf..0000000 --- a/V2/Queries/PolicyOverrides/PolicyOverridesRequestBuilder.cs +++ /dev/null @@ -1,128 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.PolicyOverrides -{ - /// - /// Builds and executes requests for operations under \v2\queries\policy-overrides - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class PolicyOverridesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public PolicyOverridesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/policy-overrides{?cursor*,df*,pageSize*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public PolicyOverridesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/policy-overrides{?cursor*,df*,pageSize*}", rawUrl) - { - } - /// - /// Returns list of overridden policy sections for each device - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverrides5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of overridden policy sections for each device - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverridesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverridesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of overridden policy sections for each device - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class PolicyOverridesRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class PolicyOverridesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Processors/Processors4XXError.cs b/V2/Queries/Processors/Processors4XXError.cs deleted file mode 100644 index 06059ec..0000000 --- a/V2/Queries/Processors/Processors4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Processors -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Processors4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.Processors.Processors4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.Processors.Processors4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Processors4XXError() - { - 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::NinjaOne.Client.V2.Queries.Processors.Processors4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Processors.Processors4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.Processors.Processors4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.Processors.Processors4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Processors/Processors4XXError_cursor.cs b/V2/Queries/Processors/Processors4XXError_cursor.cs deleted file mode 100644 index d31aade..0000000 --- a/V2/Queries/Processors/Processors4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Processors -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Processors4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Processors4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.Processors.Processors4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Processors.Processors4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Processors/Processors4XXError_results.cs b/V2/Queries/Processors/Processors4XXError_results.cs deleted file mode 100644 index ec96b5e..0000000 --- a/V2/Queries/Processors/Processors4XXError_results.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Processors -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Processors4XXError_results : 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; } - /// Architecture -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Architecture { get; set; } -#nullable restore -#else - public string Architecture { get; set; } -#endif - /// Current Clock Speed - public long? ClockSpeed { get; set; } - /// Device identifier - public int? DeviceId { get; set; } - /// Max Clock Speed - public long? MaxClockSpeed { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Number of Cores - public int? NumCores { get; set; } - /// Number of Logical Cores] - public int? NumLogicalCores { get; set; } - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Processors4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.Processors.Processors4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Processors.Processors4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "architecture", n => { Architecture = n.GetStringValue(); } }, - { "clockSpeed", n => { ClockSpeed = n.GetLongValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "maxClockSpeed", n => { MaxClockSpeed = n.GetLongValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "numCores", n => { NumCores = n.GetIntValue(); } }, - { "numLogicalCores", n => { NumLogicalCores = n.GetIntValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("architecture", Architecture); - writer.WriteLongValue("clockSpeed", ClockSpeed); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteLongValue("maxClockSpeed", MaxClockSpeed); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("numCores", NumCores); - writer.WriteIntValue("numLogicalCores", NumLogicalCores); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Processors/Processors5XXError.cs b/V2/Queries/Processors/Processors5XXError.cs deleted file mode 100644 index 737a7ae..0000000 --- a/V2/Queries/Processors/Processors5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Processors -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Processors5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.Processors.Processors5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.Processors.Processors5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Processors5XXError() - { - 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::NinjaOne.Client.V2.Queries.Processors.Processors5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Processors.Processors5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.Processors.Processors5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.Processors.Processors5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Processors/Processors5XXError_cursor.cs b/V2/Queries/Processors/Processors5XXError_cursor.cs deleted file mode 100644 index 35ded29..0000000 --- a/V2/Queries/Processors/Processors5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Processors -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Processors5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Processors5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.Processors.Processors5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Processors.Processors5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Processors/Processors5XXError_results.cs b/V2/Queries/Processors/Processors5XXError_results.cs deleted file mode 100644 index df48757..0000000 --- a/V2/Queries/Processors/Processors5XXError_results.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Processors -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Processors5XXError_results : 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; } - /// Architecture -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Architecture { get; set; } -#nullable restore -#else - public string Architecture { get; set; } -#endif - /// Current Clock Speed - public long? ClockSpeed { get; set; } - /// Device identifier - public int? DeviceId { get; set; } - /// Max Clock Speed - public long? MaxClockSpeed { get; set; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Number of Cores - public int? NumCores { get; set; } - /// Number of Logical Cores] - public int? NumLogicalCores { get; set; } - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Processors5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.Processors.Processors5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Processors.Processors5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "architecture", n => { Architecture = n.GetStringValue(); } }, - { "clockSpeed", n => { ClockSpeed = n.GetLongValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "maxClockSpeed", n => { MaxClockSpeed = n.GetLongValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "numCores", n => { NumCores = n.GetIntValue(); } }, - { "numLogicalCores", n => { NumLogicalCores = n.GetIntValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("architecture", Architecture); - writer.WriteLongValue("clockSpeed", ClockSpeed); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteLongValue("maxClockSpeed", MaxClockSpeed); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("numCores", NumCores); - writer.WriteIntValue("numLogicalCores", NumLogicalCores); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Processors/ProcessorsRequestBuilder.cs b/V2/Queries/Processors/ProcessorsRequestBuilder.cs deleted file mode 100644 index 2f60e86..0000000 --- a/V2/Queries/Processors/ProcessorsRequestBuilder.cs +++ /dev/null @@ -1,138 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.Processors -{ - /// - /// Builds and executes requests for operations under \v2\queries\processors - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ProcessorsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ProcessorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/processors{?cursor*,df*,pageSize*,ts*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ProcessorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/processors{?cursor*,df*,pageSize*,ts*}", rawUrl) - { - } - /// - /// Returns list of processors - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.Processors.Processors4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.Processors.Processors5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of processors - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.Processors.ProcessorsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.Processors.ProcessorsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of processors - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ProcessorsRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Monitoring timestamp filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("ts")] - public string? Ts { get; set; } -#nullable restore -#else - [QueryParameter("ts")] - public string Ts { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ProcessorsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/QueriesRequestBuilder.cs b/V2/Queries/QueriesRequestBuilder.cs deleted file mode 100644 index c8ef166..0000000 --- a/V2/Queries/QueriesRequestBuilder.cs +++ /dev/null @@ -1,179 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Queries.AntivirusStatus; -using NinjaOne.Client.V2.Queries.AntivirusThreats; -using NinjaOne.Client.V2.Queries.Backup; -using NinjaOne.Client.V2.Queries.ComputerSystems; -using NinjaOne.Client.V2.Queries.CustomFields; -using NinjaOne.Client.V2.Queries.CustomFieldsDetailed; -using NinjaOne.Client.V2.Queries.DeviceHealth; -using NinjaOne.Client.V2.Queries.Disks; -using NinjaOne.Client.V2.Queries.LoggedOnUsers; -using NinjaOne.Client.V2.Queries.NetworkInterfaces; -using NinjaOne.Client.V2.Queries.OperatingSystems; -using NinjaOne.Client.V2.Queries.OsPatchInstalls; -using NinjaOne.Client.V2.Queries.OsPatches; -using NinjaOne.Client.V2.Queries.PolicyOverrides; -using NinjaOne.Client.V2.Queries.Processors; -using NinjaOne.Client.V2.Queries.RaidControllers; -using NinjaOne.Client.V2.Queries.RaidDrives; -using NinjaOne.Client.V2.Queries.ScopedCustomFields; -using NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed; -using NinjaOne.Client.V2.Queries.Software; -using NinjaOne.Client.V2.Queries.SoftwarePatchInstalls; -using NinjaOne.Client.V2.Queries.SoftwarePatches; -using NinjaOne.Client.V2.Queries.Volumes; -using NinjaOne.Client.V2.Queries.WindowsServices; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Queries -{ - /// - /// Builds and executes requests for operations under \v2\queries - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class QueriesRequestBuilder : BaseRequestBuilder - { - /// The antivirusStatus property - public global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatusRequestBuilder AntivirusStatus - { - get => new global::NinjaOne.Client.V2.Queries.AntivirusStatus.AntivirusStatusRequestBuilder(PathParameters, RequestAdapter); - } - /// The antivirusThreats property - public global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreatsRequestBuilder AntivirusThreats - { - get => new global::NinjaOne.Client.V2.Queries.AntivirusThreats.AntivirusThreatsRequestBuilder(PathParameters, RequestAdapter); - } - /// The backup property - public global::NinjaOne.Client.V2.Queries.Backup.BackupRequestBuilder Backup - { - get => new global::NinjaOne.Client.V2.Queries.Backup.BackupRequestBuilder(PathParameters, RequestAdapter); - } - /// The computerSystems property - public global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystemsRequestBuilder ComputerSystems - { - get => new global::NinjaOne.Client.V2.Queries.ComputerSystems.ComputerSystemsRequestBuilder(PathParameters, RequestAdapter); - } - /// The customFields property - public global::NinjaOne.Client.V2.Queries.CustomFields.CustomFieldsRequestBuilder CustomFields - { - get => new global::NinjaOne.Client.V2.Queries.CustomFields.CustomFieldsRequestBuilder(PathParameters, RequestAdapter); - } - /// The customFieldsDetailed property - public global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailedRequestBuilder CustomFieldsDetailed - { - get => new global::NinjaOne.Client.V2.Queries.CustomFieldsDetailed.CustomFieldsDetailedRequestBuilder(PathParameters, RequestAdapter); - } - /// The deviceHealth property - public global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealthRequestBuilder DeviceHealth - { - get => new global::NinjaOne.Client.V2.Queries.DeviceHealth.DeviceHealthRequestBuilder(PathParameters, RequestAdapter); - } - /// The disks property - public global::NinjaOne.Client.V2.Queries.Disks.DisksRequestBuilder Disks - { - get => new global::NinjaOne.Client.V2.Queries.Disks.DisksRequestBuilder(PathParameters, RequestAdapter); - } - /// The loggedOnUsers property - public global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsersRequestBuilder LoggedOnUsers - { - get => new global::NinjaOne.Client.V2.Queries.LoggedOnUsers.LoggedOnUsersRequestBuilder(PathParameters, RequestAdapter); - } - /// The networkInterfaces property - public global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfacesRequestBuilder NetworkInterfaces - { - get => new global::NinjaOne.Client.V2.Queries.NetworkInterfaces.NetworkInterfacesRequestBuilder(PathParameters, RequestAdapter); - } - /// The operatingSystems property - public global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystemsRequestBuilder OperatingSystems - { - get => new global::NinjaOne.Client.V2.Queries.OperatingSystems.OperatingSystemsRequestBuilder(PathParameters, RequestAdapter); - } - /// The osPatches property - public global::NinjaOne.Client.V2.Queries.OsPatches.OsPatchesRequestBuilder OsPatches - { - get => new global::NinjaOne.Client.V2.Queries.OsPatches.OsPatchesRequestBuilder(PathParameters, RequestAdapter); - } - /// The osPatchInstalls property - public global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstallsRequestBuilder OsPatchInstalls - { - get => new global::NinjaOne.Client.V2.Queries.OsPatchInstalls.OsPatchInstallsRequestBuilder(PathParameters, RequestAdapter); - } - /// The policyOverrides property - public global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverridesRequestBuilder PolicyOverrides - { - get => new global::NinjaOne.Client.V2.Queries.PolicyOverrides.PolicyOverridesRequestBuilder(PathParameters, RequestAdapter); - } - /// The processors property - public global::NinjaOne.Client.V2.Queries.Processors.ProcessorsRequestBuilder Processors - { - get => new global::NinjaOne.Client.V2.Queries.Processors.ProcessorsRequestBuilder(PathParameters, RequestAdapter); - } - /// The raidControllers property - public global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllersRequestBuilder RaidControllers - { - get => new global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllersRequestBuilder(PathParameters, RequestAdapter); - } - /// The raidDrives property - public global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrivesRequestBuilder RaidDrives - { - get => new global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrivesRequestBuilder(PathParameters, RequestAdapter); - } - /// The scopedCustomFields property - public global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFieldsRequestBuilder ScopedCustomFields - { - get => new global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFieldsRequestBuilder(PathParameters, RequestAdapter); - } - /// The scopedCustomFieldsDetailed property - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailedRequestBuilder ScopedCustomFieldsDetailed - { - get => new global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailedRequestBuilder(PathParameters, RequestAdapter); - } - /// The software property - public global::NinjaOne.Client.V2.Queries.Software.SoftwareRequestBuilder Software - { - get => new global::NinjaOne.Client.V2.Queries.Software.SoftwareRequestBuilder(PathParameters, RequestAdapter); - } - /// The softwarePatches property - public global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatchesRequestBuilder SoftwarePatches - { - get => new global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatchesRequestBuilder(PathParameters, RequestAdapter); - } - /// The softwarePatchInstalls property - public global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstallsRequestBuilder SoftwarePatchInstalls - { - get => new global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstallsRequestBuilder(PathParameters, RequestAdapter); - } - /// The volumes property - public global::NinjaOne.Client.V2.Queries.Volumes.VolumesRequestBuilder Volumes - { - get => new global::NinjaOne.Client.V2.Queries.Volumes.VolumesRequestBuilder(PathParameters, RequestAdapter); - } - /// The windowsServices property - public global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServicesRequestBuilder WindowsServices - { - get => new global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServicesRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public QueriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public QueriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/RaidControllers/RaidControllers4XXError.cs b/V2/Queries/RaidControllers/RaidControllers4XXError.cs deleted file mode 100644 index 6da5a52..0000000 --- a/V2/Queries/RaidControllers/RaidControllers4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.RaidControllers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RaidControllers4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RaidControllers4XXError() - { - 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::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/RaidControllers/RaidControllers4XXError_cursor.cs b/V2/Queries/RaidControllers/RaidControllers4XXError_cursor.cs deleted file mode 100644 index 60fe490..0000000 --- a/V2/Queries/RaidControllers/RaidControllers4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.RaidControllers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RaidControllers4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RaidControllers4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/RaidControllers/RaidControllers4XXError_results.cs b/V2/Queries/RaidControllers/RaidControllers4XXError_results.cs deleted file mode 100644 index 7874967..0000000 --- a/V2/Queries/RaidControllers/RaidControllers4XXError_results.cs +++ /dev/null @@ -1,197 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.RaidControllers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RaidControllers4XXError_results : 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; } - /// Backup Battery Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? BackupBatteryStatus { get; set; } -#nullable restore -#else - public string BackupBatteryStatus { get; set; } -#endif - /// Battery Temperature - public int? BatteryTemperature { get; set; } - /// BIOS Version -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? BiosVersion { get; set; } -#nullable restore -#else - public string BiosVersion { get; set; } -#endif - /// Cache size (bytes) - public long? CacheSize { get; set; } - /// Controller Index - public int? ControllerIndex { get; set; } - /// Device identifier - public int? DeviceId { get; set; } - /// Device Driver Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DriverName { get; set; } -#nullable restore -#else - public string DriverName { get; set; } -#endif - /// Driver Version -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DriverVersion { get; set; } -#nullable restore -#else - public string DriverVersion { get; set; } -#endif - /// Family -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Family { get; set; } -#nullable restore -#else - public string Family { get; set; } -#endif - /// Firmware Version -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirmwareVersion { get; set; } -#nullable restore -#else - public string FirmwareVersion { get; set; } -#endif - /// Hardware Revision -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? HardwareRevision { get; set; } -#nullable restore -#else - public string HardwareRevision { get; set; } -#endif - /// Manufacturer -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Manufacturer { get; set; } -#nullable restore -#else - public string Manufacturer { get; set; } -#endif - /// Manufacturing date - public double? ManufacturingDate { get; set; } - /// Model -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Model { get; set; } -#nullable restore -#else - public string Model { get; set; } -#endif - /// Physical drive count - public int? PhysicalDriveCount { get; set; } - /// Slot -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Slot { get; set; } -#nullable restore -#else - public string Slot { get; set; } -#endif - /// System Health Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SystemHealthStatus { get; set; } -#nullable restore -#else - public string SystemHealthStatus { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// Virtual drive count - public int? VirtualDriveCount { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RaidControllers4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "backupBatteryStatus", n => { BackupBatteryStatus = n.GetStringValue(); } }, - { "batteryTemperature", n => { BatteryTemperature = n.GetIntValue(); } }, - { "biosVersion", n => { BiosVersion = n.GetStringValue(); } }, - { "cacheSize", n => { CacheSize = n.GetLongValue(); } }, - { "controllerIndex", n => { ControllerIndex = n.GetIntValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "driverName", n => { DriverName = n.GetStringValue(); } }, - { "driverVersion", n => { DriverVersion = n.GetStringValue(); } }, - { "family", n => { Family = n.GetStringValue(); } }, - { "firmwareVersion", n => { FirmwareVersion = n.GetStringValue(); } }, - { "hardwareRevision", n => { HardwareRevision = n.GetStringValue(); } }, - { "manufacturer", n => { Manufacturer = n.GetStringValue(); } }, - { "manufacturingDate", n => { ManufacturingDate = n.GetDoubleValue(); } }, - { "model", n => { Model = n.GetStringValue(); } }, - { "physicalDriveCount", n => { PhysicalDriveCount = n.GetIntValue(); } }, - { "slot", n => { Slot = n.GetStringValue(); } }, - { "systemHealthStatus", n => { SystemHealthStatus = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "virtualDriveCount", n => { VirtualDriveCount = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("backupBatteryStatus", BackupBatteryStatus); - writer.WriteIntValue("batteryTemperature", BatteryTemperature); - writer.WriteStringValue("biosVersion", BiosVersion); - writer.WriteLongValue("cacheSize", CacheSize); - writer.WriteIntValue("controllerIndex", ControllerIndex); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("driverName", DriverName); - writer.WriteStringValue("driverVersion", DriverVersion); - writer.WriteStringValue("family", Family); - writer.WriteStringValue("firmwareVersion", FirmwareVersion); - writer.WriteStringValue("hardwareRevision", HardwareRevision); - writer.WriteStringValue("manufacturer", Manufacturer); - writer.WriteDoubleValue("manufacturingDate", ManufacturingDate); - writer.WriteStringValue("model", Model); - writer.WriteIntValue("physicalDriveCount", PhysicalDriveCount); - writer.WriteStringValue("slot", Slot); - writer.WriteStringValue("systemHealthStatus", SystemHealthStatus); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteIntValue("virtualDriveCount", VirtualDriveCount); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/RaidControllers/RaidControllers5XXError.cs b/V2/Queries/RaidControllers/RaidControllers5XXError.cs deleted file mode 100644 index af46e12..0000000 --- a/V2/Queries/RaidControllers/RaidControllers5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.RaidControllers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RaidControllers5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RaidControllers5XXError() - { - 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::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/RaidControllers/RaidControllers5XXError_cursor.cs b/V2/Queries/RaidControllers/RaidControllers5XXError_cursor.cs deleted file mode 100644 index 4d3708a..0000000 --- a/V2/Queries/RaidControllers/RaidControllers5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.RaidControllers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RaidControllers5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RaidControllers5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/RaidControllers/RaidControllers5XXError_results.cs b/V2/Queries/RaidControllers/RaidControllers5XXError_results.cs deleted file mode 100644 index 5c0af41..0000000 --- a/V2/Queries/RaidControllers/RaidControllers5XXError_results.cs +++ /dev/null @@ -1,197 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.RaidControllers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RaidControllers5XXError_results : 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; } - /// Backup Battery Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? BackupBatteryStatus { get; set; } -#nullable restore -#else - public string BackupBatteryStatus { get; set; } -#endif - /// Battery Temperature - public int? BatteryTemperature { get; set; } - /// BIOS Version -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? BiosVersion { get; set; } -#nullable restore -#else - public string BiosVersion { get; set; } -#endif - /// Cache size (bytes) - public long? CacheSize { get; set; } - /// Controller Index - public int? ControllerIndex { get; set; } - /// Device identifier - public int? DeviceId { get; set; } - /// Device Driver Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DriverName { get; set; } -#nullable restore -#else - public string DriverName { get; set; } -#endif - /// Driver Version -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DriverVersion { get; set; } -#nullable restore -#else - public string DriverVersion { get; set; } -#endif - /// Family -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Family { get; set; } -#nullable restore -#else - public string Family { get; set; } -#endif - /// Firmware Version -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirmwareVersion { get; set; } -#nullable restore -#else - public string FirmwareVersion { get; set; } -#endif - /// Hardware Revision -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? HardwareRevision { get; set; } -#nullable restore -#else - public string HardwareRevision { get; set; } -#endif - /// Manufacturer -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Manufacturer { get; set; } -#nullable restore -#else - public string Manufacturer { get; set; } -#endif - /// Manufacturing date - public double? ManufacturingDate { get; set; } - /// Model -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Model { get; set; } -#nullable restore -#else - public string Model { get; set; } -#endif - /// Physical drive count - public int? PhysicalDriveCount { get; set; } - /// Slot -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Slot { get; set; } -#nullable restore -#else - public string Slot { get; set; } -#endif - /// System Health Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SystemHealthStatus { get; set; } -#nullable restore -#else - public string SystemHealthStatus { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// Virtual drive count - public int? VirtualDriveCount { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RaidControllers5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "backupBatteryStatus", n => { BackupBatteryStatus = n.GetStringValue(); } }, - { "batteryTemperature", n => { BatteryTemperature = n.GetIntValue(); } }, - { "biosVersion", n => { BiosVersion = n.GetStringValue(); } }, - { "cacheSize", n => { CacheSize = n.GetLongValue(); } }, - { "controllerIndex", n => { ControllerIndex = n.GetIntValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "driverName", n => { DriverName = n.GetStringValue(); } }, - { "driverVersion", n => { DriverVersion = n.GetStringValue(); } }, - { "family", n => { Family = n.GetStringValue(); } }, - { "firmwareVersion", n => { FirmwareVersion = n.GetStringValue(); } }, - { "hardwareRevision", n => { HardwareRevision = n.GetStringValue(); } }, - { "manufacturer", n => { Manufacturer = n.GetStringValue(); } }, - { "manufacturingDate", n => { ManufacturingDate = n.GetDoubleValue(); } }, - { "model", n => { Model = n.GetStringValue(); } }, - { "physicalDriveCount", n => { PhysicalDriveCount = n.GetIntValue(); } }, - { "slot", n => { Slot = n.GetStringValue(); } }, - { "systemHealthStatus", n => { SystemHealthStatus = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "virtualDriveCount", n => { VirtualDriveCount = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("backupBatteryStatus", BackupBatteryStatus); - writer.WriteIntValue("batteryTemperature", BatteryTemperature); - writer.WriteStringValue("biosVersion", BiosVersion); - writer.WriteLongValue("cacheSize", CacheSize); - writer.WriteIntValue("controllerIndex", ControllerIndex); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("driverName", DriverName); - writer.WriteStringValue("driverVersion", DriverVersion); - writer.WriteStringValue("family", Family); - writer.WriteStringValue("firmwareVersion", FirmwareVersion); - writer.WriteStringValue("hardwareRevision", HardwareRevision); - writer.WriteStringValue("manufacturer", Manufacturer); - writer.WriteDoubleValue("manufacturingDate", ManufacturingDate); - writer.WriteStringValue("model", Model); - writer.WriteIntValue("physicalDriveCount", PhysicalDriveCount); - writer.WriteStringValue("slot", Slot); - writer.WriteStringValue("systemHealthStatus", SystemHealthStatus); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteIntValue("virtualDriveCount", VirtualDriveCount); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/RaidControllers/RaidControllersRequestBuilder.cs b/V2/Queries/RaidControllers/RaidControllersRequestBuilder.cs deleted file mode 100644 index e13e854..0000000 --- a/V2/Queries/RaidControllers/RaidControllersRequestBuilder.cs +++ /dev/null @@ -1,138 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.RaidControllers -{ - /// - /// Builds and executes requests for operations under \v2\queries\raid-controllers - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RaidControllersRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RaidControllersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/raid-controllers{?cursor*,df*,pageSize*,ts*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RaidControllersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/raid-controllers{?cursor*,df*,pageSize*,ts*}", rawUrl) - { - } - /// - /// Returns list of RAID controllers - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllers5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of RAID controllers - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllersRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.RaidControllers.RaidControllersRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of RAID controllers - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RaidControllersRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Monitoring timestamp filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("ts")] - public string? Ts { get; set; } -#nullable restore -#else - [QueryParameter("ts")] - public string Ts { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RaidControllersRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/RaidDrives/RaidDrives4XXError.cs b/V2/Queries/RaidDrives/RaidDrives4XXError.cs deleted file mode 100644 index 4478486..0000000 --- a/V2/Queries/RaidDrives/RaidDrives4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.RaidDrives -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RaidDrives4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RaidDrives4XXError() - { - 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::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/RaidDrives/RaidDrives4XXError_cursor.cs b/V2/Queries/RaidDrives/RaidDrives4XXError_cursor.cs deleted file mode 100644 index 434c923..0000000 --- a/V2/Queries/RaidDrives/RaidDrives4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.RaidDrives -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RaidDrives4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RaidDrives4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/RaidDrives/RaidDrives4XXError_results.cs b/V2/Queries/RaidDrives/RaidDrives4XXError_results.cs deleted file mode 100644 index 555c3f1..0000000 --- a/V2/Queries/RaidDrives/RaidDrives4XXError_results.cs +++ /dev/null @@ -1,169 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.RaidDrives -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RaidDrives4XXError_results : 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; } - /// Controller index - public int? ControllerIndex { get; set; } - /// Device identifier - public int? DeviceId { get; set; } - /// Drive Group -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DriveGroup { get; set; } -#nullable restore -#else - public string DriveGroup { get; set; } -#endif - /// Drive Identifier -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DriveId { get; set; } -#nullable restore -#else - public string DriveId { get; set; } -#endif - /// Interface type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? InterfaceType { get; set; } -#nullable restore -#else - public string InterfaceType { get; set; } -#endif - /// Location -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Location { get; set; } -#nullable restore -#else - public string Location { get; set; } -#endif - /// Media type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MediaType { get; set; } -#nullable restore -#else - public string MediaType { get; set; } -#endif - /// Model -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Model { get; set; } -#nullable restore -#else - public string Model { get; set; } -#endif - /// Protection Information -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ProtectionInfo { get; set; } -#nullable restore -#else - public string ProtectionInfo { get; set; } -#endif - /// Is self encrypted? - public bool? SelfEncrypted { get; set; } - /// Serial number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Serial { get; set; } -#nullable restore -#else - public string Serial { get; set; } -#endif - /// Size (bytes) - public long? Size { get; set; } - /// Spun? - public bool? Spun { get; set; } - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RaidDrives4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "controllerIndex", n => { ControllerIndex = n.GetIntValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "driveGroup", n => { DriveGroup = n.GetStringValue(); } }, - { "driveId", n => { DriveId = n.GetStringValue(); } }, - { "interfaceType", n => { InterfaceType = n.GetStringValue(); } }, - { "location", n => { Location = n.GetStringValue(); } }, - { "mediaType", n => { MediaType = n.GetStringValue(); } }, - { "model", n => { Model = n.GetStringValue(); } }, - { "protectionInfo", n => { ProtectionInfo = n.GetStringValue(); } }, - { "selfEncrypted", n => { SelfEncrypted = n.GetBoolValue(); } }, - { "serial", n => { Serial = n.GetStringValue(); } }, - { "size", n => { Size = n.GetLongValue(); } }, - { "spun", n => { Spun = n.GetBoolValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("controllerIndex", ControllerIndex); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("driveGroup", DriveGroup); - writer.WriteStringValue("driveId", DriveId); - writer.WriteStringValue("interfaceType", InterfaceType); - writer.WriteStringValue("location", Location); - writer.WriteStringValue("mediaType", MediaType); - writer.WriteStringValue("model", Model); - writer.WriteStringValue("protectionInfo", ProtectionInfo); - writer.WriteBoolValue("selfEncrypted", SelfEncrypted); - writer.WriteStringValue("serial", Serial); - writer.WriteLongValue("size", Size); - writer.WriteBoolValue("spun", Spun); - writer.WriteStringValue("status", Status); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/RaidDrives/RaidDrives5XXError.cs b/V2/Queries/RaidDrives/RaidDrives5XXError.cs deleted file mode 100644 index ebf00ca..0000000 --- a/V2/Queries/RaidDrives/RaidDrives5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.RaidDrives -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RaidDrives5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RaidDrives5XXError() - { - 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::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/RaidDrives/RaidDrives5XXError_cursor.cs b/V2/Queries/RaidDrives/RaidDrives5XXError_cursor.cs deleted file mode 100644 index ba58250..0000000 --- a/V2/Queries/RaidDrives/RaidDrives5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.RaidDrives -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RaidDrives5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RaidDrives5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/RaidDrives/RaidDrives5XXError_results.cs b/V2/Queries/RaidDrives/RaidDrives5XXError_results.cs deleted file mode 100644 index 7ce1677..0000000 --- a/V2/Queries/RaidDrives/RaidDrives5XXError_results.cs +++ /dev/null @@ -1,169 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.RaidDrives -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RaidDrives5XXError_results : 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; } - /// Controller index - public int? ControllerIndex { get; set; } - /// Device identifier - public int? DeviceId { get; set; } - /// Drive Group -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DriveGroup { get; set; } -#nullable restore -#else - public string DriveGroup { get; set; } -#endif - /// Drive Identifier -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DriveId { get; set; } -#nullable restore -#else - public string DriveId { get; set; } -#endif - /// Interface type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? InterfaceType { get; set; } -#nullable restore -#else - public string InterfaceType { get; set; } -#endif - /// Location -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Location { get; set; } -#nullable restore -#else - public string Location { get; set; } -#endif - /// Media type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MediaType { get; set; } -#nullable restore -#else - public string MediaType { get; set; } -#endif - /// Model -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Model { get; set; } -#nullable restore -#else - public string Model { get; set; } -#endif - /// Protection Information -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ProtectionInfo { get; set; } -#nullable restore -#else - public string ProtectionInfo { get; set; } -#endif - /// Is self encrypted? - public bool? SelfEncrypted { get; set; } - /// Serial number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Serial { get; set; } -#nullable restore -#else - public string Serial { get; set; } -#endif - /// Size (bytes) - public long? Size { get; set; } - /// Spun? - public bool? Spun { get; set; } - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RaidDrives5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "controllerIndex", n => { ControllerIndex = n.GetIntValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "driveGroup", n => { DriveGroup = n.GetStringValue(); } }, - { "driveId", n => { DriveId = n.GetStringValue(); } }, - { "interfaceType", n => { InterfaceType = n.GetStringValue(); } }, - { "location", n => { Location = n.GetStringValue(); } }, - { "mediaType", n => { MediaType = n.GetStringValue(); } }, - { "model", n => { Model = n.GetStringValue(); } }, - { "protectionInfo", n => { ProtectionInfo = n.GetStringValue(); } }, - { "selfEncrypted", n => { SelfEncrypted = n.GetBoolValue(); } }, - { "serial", n => { Serial = n.GetStringValue(); } }, - { "size", n => { Size = n.GetLongValue(); } }, - { "spun", n => { Spun = n.GetBoolValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("controllerIndex", ControllerIndex); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("driveGroup", DriveGroup); - writer.WriteStringValue("driveId", DriveId); - writer.WriteStringValue("interfaceType", InterfaceType); - writer.WriteStringValue("location", Location); - writer.WriteStringValue("mediaType", MediaType); - writer.WriteStringValue("model", Model); - writer.WriteStringValue("protectionInfo", ProtectionInfo); - writer.WriteBoolValue("selfEncrypted", SelfEncrypted); - writer.WriteStringValue("serial", Serial); - writer.WriteLongValue("size", Size); - writer.WriteBoolValue("spun", Spun); - writer.WriteStringValue("status", Status); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/RaidDrives/RaidDrivesRequestBuilder.cs b/V2/Queries/RaidDrives/RaidDrivesRequestBuilder.cs deleted file mode 100644 index 079a96c..0000000 --- a/V2/Queries/RaidDrives/RaidDrivesRequestBuilder.cs +++ /dev/null @@ -1,138 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.RaidDrives -{ - /// - /// Builds and executes requests for operations under \v2\queries\raid-drives - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RaidDrivesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RaidDrivesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/raid-drives{?cursor*,df*,pageSize*,ts*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RaidDrivesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/raid-drives{?cursor*,df*,pageSize*,ts*}", rawUrl) - { - } - /// - /// Returns list of drives connected to RAID controllers - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrives5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of drives connected to RAID controllers - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrivesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.RaidDrives.RaidDrivesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of drives connected to RAID controllers - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RaidDrivesRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Monitoring timestamp filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("ts")] - public string? Ts { get; set; } -#nullable restore -#else - [QueryParameter("ts")] - public string Ts { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RaidDrivesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFields/ScopedCustomFields4XXError.cs b/V2/Queries/ScopedCustomFields/ScopedCustomFields4XXError.cs deleted file mode 100644 index 1e416ae..0000000 --- a/V2/Queries/ScopedCustomFields/ScopedCustomFields4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ScopedCustomFields4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFields4XXError() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFields/ScopedCustomFields4XXError_cursor.cs b/V2/Queries/ScopedCustomFields/ScopedCustomFields4XXError_cursor.cs deleted file mode 100644 index 8c9c792..0000000 --- a/V2/Queries/ScopedCustomFields/ScopedCustomFields4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ScopedCustomFields4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFields4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFields/ScopedCustomFields4XXError_results.cs b/V2/Queries/ScopedCustomFields/ScopedCustomFields4XXError_results.cs deleted file mode 100644 index ebdd213..0000000 --- a/V2/Queries/ScopedCustomFields/ScopedCustomFields4XXError_results.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ScopedCustomFields4XXError_results : 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; } - /// Entity identifier (device, organization, location) - public int? EntityId { get; set; } - /// Field values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields4XXError_results_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields4XXError_results_fields Fields { get; set; } -#endif - /// Value definition scope (entity type) - public global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields4XXError_results_scope? Scope { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFields4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields4XXError_results_fields.CreateFromDiscriminatorValue); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("entityId", EntityId); - writer.WriteObjectValue("fields", Fields); - writer.WriteEnumValue("scope", Scope); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFields/ScopedCustomFields4XXError_results_fields.cs b/V2/Queries/ScopedCustomFields/ScopedCustomFields4XXError_results_fields.cs deleted file mode 100644 index 9079bbd..0000000 --- a/V2/Queries/ScopedCustomFields/ScopedCustomFields4XXError_results_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFields -{ - /// - /// Field values - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScopedCustomFields4XXError_results_fields : 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. - /// - public ScopedCustomFields4XXError_results_fields() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields4XXError_results_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields4XXError_results_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFields/ScopedCustomFields4XXError_results_scope.cs b/V2/Queries/ScopedCustomFields/ScopedCustomFields4XXError_results_scope.cs deleted file mode 100644 index f614386..0000000 --- a/V2/Queries/ScopedCustomFields/ScopedCustomFields4XXError_results_scope.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFields -{ - /// Value definition scope (entity type) - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum ScopedCustomFields4XXError_results_scope - { - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/ScopedCustomFields/ScopedCustomFields5XXError.cs b/V2/Queries/ScopedCustomFields/ScopedCustomFields5XXError.cs deleted file mode 100644 index cb195fd..0000000 --- a/V2/Queries/ScopedCustomFields/ScopedCustomFields5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ScopedCustomFields5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFields5XXError() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFields/ScopedCustomFields5XXError_cursor.cs b/V2/Queries/ScopedCustomFields/ScopedCustomFields5XXError_cursor.cs deleted file mode 100644 index d8fc2e3..0000000 --- a/V2/Queries/ScopedCustomFields/ScopedCustomFields5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ScopedCustomFields5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFields5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFields/ScopedCustomFields5XXError_results.cs b/V2/Queries/ScopedCustomFields/ScopedCustomFields5XXError_results.cs deleted file mode 100644 index 58cca97..0000000 --- a/V2/Queries/ScopedCustomFields/ScopedCustomFields5XXError_results.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ScopedCustomFields5XXError_results : 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; } - /// Entity identifier (device, organization, location) - public int? EntityId { get; set; } - /// Field values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields5XXError_results_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields5XXError_results_fields Fields { get; set; } -#endif - /// Value definition scope (entity type) - public global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields5XXError_results_scope? Scope { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFields5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields5XXError_results_fields.CreateFromDiscriminatorValue); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("entityId", EntityId); - writer.WriteObjectValue("fields", Fields); - writer.WriteEnumValue("scope", Scope); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFields/ScopedCustomFields5XXError_results_fields.cs b/V2/Queries/ScopedCustomFields/ScopedCustomFields5XXError_results_fields.cs deleted file mode 100644 index 803dbbc..0000000 --- a/V2/Queries/ScopedCustomFields/ScopedCustomFields5XXError_results_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFields -{ - /// - /// Field values - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScopedCustomFields5XXError_results_fields : 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. - /// - public ScopedCustomFields5XXError_results_fields() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields5XXError_results_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields5XXError_results_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFields/ScopedCustomFields5XXError_results_scope.cs b/V2/Queries/ScopedCustomFields/ScopedCustomFields5XXError_results_scope.cs deleted file mode 100644 index 7dfee8c..0000000 --- a/V2/Queries/ScopedCustomFields/ScopedCustomFields5XXError_results_scope.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFields -{ - /// Value definition scope (entity type) - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum ScopedCustomFields5XXError_results_scope - { - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/ScopedCustomFields/ScopedCustomFieldsRequestBuilder.cs b/V2/Queries/ScopedCustomFields/ScopedCustomFieldsRequestBuilder.cs deleted file mode 100644 index 669bf18..0000000 --- a/V2/Queries/ScopedCustomFields/ScopedCustomFieldsRequestBuilder.cs +++ /dev/null @@ -1,151 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFields -{ - /// - /// Builds and executes requests for operations under \v2\queries\scoped-custom-fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScopedCustomFieldsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ScopedCustomFieldsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/scoped-custom-fields{?cursor*,fields*,pageSize*,scopes*,showSecureValues*,updatedAfter*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ScopedCustomFieldsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/scoped-custom-fields{?cursor*,fields*,pageSize*,scopes*,showSecureValues*,updatedAfter*}", rawUrl) - { - } - /// - /// Returns report for Custom Fields defined at different scopes (device, location, organization) - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFields5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns report for Custom Fields defined at different scopes (device, location, organization) - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFieldsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFields.ScopedCustomFieldsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns report for Custom Fields defined at different scopes (device, location, organization) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScopedCustomFieldsRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Comma-separated list of fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("fields")] - public string? Fields { get; set; } -#nullable restore -#else - [QueryParameter("fields")] - public string Fields { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Comma-separated list of scopes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("scopes")] - public string? Scopes { get; set; } -#nullable restore -#else - [QueryParameter("scopes")] - public string Scopes { get; set; } -#endif - /// Flag to indicate if secure values should be returned as plain text without encryption - [QueryParameter("showSecureValues")] - public bool? ShowSecureValues { get; set; } - /// Custom fields updated after specified date -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("updatedAfter")] - public string? UpdatedAfter { get; set; } -#nullable restore -#else - [QueryParameter("updatedAfter")] - public string UpdatedAfter { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScopedCustomFieldsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError.cs deleted file mode 100644 index 88e2804..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ScopedCustomFieldsDetailed4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFieldsDetailed4XXError() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_cursor.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_cursor.cs deleted file mode 100644 index 8fe5df6..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ScopedCustomFieldsDetailed4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFieldsDetailed4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results.cs deleted file mode 100644 index f336db1..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ScopedCustomFieldsDetailed4XXError_results : 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; } - /// Entity identifier (device, organization, location) - public int? EntityId { get; set; } - /// Field values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// Value definition scope (entity type) - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_scope? Scope { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFieldsDetailed4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("entityId", EntityId); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteEnumValue("scope", Scope); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_fields.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_fields.cs deleted file mode 100644 index 08adfdc..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_fields.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - /// - /// Field values - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScopedCustomFieldsDetailed4XXError_results_fields : 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; } - /// Field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Last field update timestamp - public double? Updated { get; set; } - /// Value source (who/what updated the value) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy? UpdatedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy UpdatedBy { get; set; } -#endif - /// The updateTime property - public double? UpdateTime { get; set; } - /// Field Value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields_value Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFieldsDetailed4XXError_results_fields() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "name", n => { Name = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - { "updatedBy", n => { UpdatedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy.CreateFromDiscriminatorValue); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields_value.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("name", Name); - writer.WriteDoubleValue("updated", Updated); - writer.WriteObjectValue("updatedBy", UpdatedBy); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteObjectValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy.cs deleted file mode 100644 index 7a82283..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - /// - /// Value source (who/what updated the value) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy : 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; } - /// The source property - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy_source? Source { get; set; } - /// The user property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy_user? User { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy_user User { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "source", n => { Source = n.GetEnumValue(); } }, - { "user", n => { User = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy_user.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("source", Source); - writer.WriteObjectValue("user", User); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy_source.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy_source.cs deleted file mode 100644 index 1656719..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy_source.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy_source - #pragma warning restore CS1591 - { - [EnumMember(Value = "API")] - #pragma warning disable CS1591 - API, - #pragma warning restore CS1591 - [EnumMember(Value = "USER")] - #pragma warning disable CS1591 - USER, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT")] - #pragma warning disable CS1591 - SCRIPT, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy_user.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy_user.cs deleted file mode 100644 index ff67ea4..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy_user.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy_user : 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 email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy_user() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy_user CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields_updatedBy_user(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_fields_value.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_fields_value.cs deleted file mode 100644 index d9d6cf4..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_fields_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - /// - /// Field Value - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScopedCustomFieldsDetailed4XXError_results_fields_value : 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. - /// - public ScopedCustomFieldsDetailed4XXError_results_fields_value() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError_results_fields_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_scope.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_scope.cs deleted file mode 100644 index dbc1a45..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed4XXError_results_scope.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - /// Value definition scope (entity type) - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum ScopedCustomFieldsDetailed4XXError_results_scope - { - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError.cs deleted file mode 100644 index 8eb826a..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ScopedCustomFieldsDetailed5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFieldsDetailed5XXError() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_cursor.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_cursor.cs deleted file mode 100644 index eeb6d6a..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ScopedCustomFieldsDetailed5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFieldsDetailed5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results.cs deleted file mode 100644 index 69ab7a2..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ScopedCustomFieldsDetailed5XXError_results : 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; } - /// Entity identifier (device, organization, location) - public int? EntityId { get; set; } - /// Field values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// Value definition scope (entity type) - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_scope? Scope { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFieldsDetailed5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("entityId", EntityId); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteEnumValue("scope", Scope); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_fields.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_fields.cs deleted file mode 100644 index bb9d329..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_fields.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - /// - /// Field values - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScopedCustomFieldsDetailed5XXError_results_fields : 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; } - /// Field name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Last field update timestamp - public double? Updated { get; set; } - /// Value source (who/what updated the value) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy? UpdatedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy UpdatedBy { get; set; } -#endif - /// The updateTime property - public double? UpdateTime { get; set; } - /// Field Value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields_value Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFieldsDetailed5XXError_results_fields() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "name", n => { Name = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updated", n => { Updated = n.GetDoubleValue(); } }, - { "updatedBy", n => { UpdatedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy.CreateFromDiscriminatorValue); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields_value.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("name", Name); - writer.WriteDoubleValue("updated", Updated); - writer.WriteObjectValue("updatedBy", UpdatedBy); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteObjectValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy.cs deleted file mode 100644 index ca2ed9b..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - /// - /// Value source (who/what updated the value) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy : 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; } - /// The source property - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy_source? Source { get; set; } - /// The user property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy_user? User { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy_user User { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "source", n => { Source = n.GetEnumValue(); } }, - { "user", n => { User = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy_user.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("source", Source); - writer.WriteObjectValue("user", User); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy_source.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy_source.cs deleted file mode 100644 index 675aed8..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy_source.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy_source - #pragma warning restore CS1591 - { - [EnumMember(Value = "API")] - #pragma warning disable CS1591 - API, - #pragma warning restore CS1591 - [EnumMember(Value = "USER")] - #pragma warning disable CS1591 - USER, - #pragma warning restore CS1591 - [EnumMember(Value = "SCRIPT")] - #pragma warning disable CS1591 - SCRIPT, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy_user.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy_user.cs deleted file mode 100644 index 1a82741..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy_user.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy_user : 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 email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy_user() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy_user CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields_updatedBy_user(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_fields_value.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_fields_value.cs deleted file mode 100644 index 7c6c8af..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_fields_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - /// - /// Field Value - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScopedCustomFieldsDetailed5XXError_results_fields_value : 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. - /// - public ScopedCustomFieldsDetailed5XXError_results_fields_value() - { - 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::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError_results_fields_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_scope.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_scope.cs deleted file mode 100644 index 4c6848a..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailed5XXError_results_scope.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - /// Value definition scope (entity type) - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum ScopedCustomFieldsDetailed5XXError_results_scope - { - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailedRequestBuilder.cs b/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailedRequestBuilder.cs deleted file mode 100644 index 2a85af3..0000000 --- a/V2/Queries/ScopedCustomFieldsDetailed/ScopedCustomFieldsDetailedRequestBuilder.cs +++ /dev/null @@ -1,151 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed -{ - /// - /// Builds and executes requests for operations under \v2\queries\scoped-custom-fields-detailed - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScopedCustomFieldsDetailedRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ScopedCustomFieldsDetailedRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/scoped-custom-fields-detailed{?cursor*,fields*,pageSize*,scopes*,showSecureValues*,updatedAfter*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ScopedCustomFieldsDetailedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/scoped-custom-fields-detailed{?cursor*,fields*,pageSize*,scopes*,showSecureValues*,updatedAfter*}", rawUrl) - { - } - /// - /// Returns report for Custom Fields defined at different scopes (device, location, organization) with additional information about each field - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailed5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns report for Custom Fields defined at different scopes (device, location, organization) with additional information about each field - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailedRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.ScopedCustomFieldsDetailed.ScopedCustomFieldsDetailedRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns report for Custom Fields defined at different scopes (device, location, organization) with additional information about each field - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScopedCustomFieldsDetailedRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Comma-separated list of fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("fields")] - public string? Fields { get; set; } -#nullable restore -#else - [QueryParameter("fields")] - public string Fields { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Comma-separated list of scopes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("scopes")] - public string? Scopes { get; set; } -#nullable restore -#else - [QueryParameter("scopes")] - public string Scopes { get; set; } -#endif - /// Flag to indicate if secure values should be returned as plain text without encryption - [QueryParameter("showSecureValues")] - public bool? ShowSecureValues { get; set; } - /// Custom fields updated after specified date -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("updatedAfter")] - public string? UpdatedAfter { get; set; } -#nullable restore -#else - [QueryParameter("updatedAfter")] - public string UpdatedAfter { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScopedCustomFieldsDetailedRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Software/Software4XXError.cs b/V2/Queries/Software/Software4XXError.cs deleted file mode 100644 index 747d59c..0000000 --- a/V2/Queries/Software/Software4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Software -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Software4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.Software.Software4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.Software.Software4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Software4XXError() - { - 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::NinjaOne.Client.V2.Queries.Software.Software4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Software.Software4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.Software.Software4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.Software.Software4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Software/Software4XXError_cursor.cs b/V2/Queries/Software/Software4XXError_cursor.cs deleted file mode 100644 index f583e36..0000000 --- a/V2/Queries/Software/Software4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Software -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Software4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Software4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.Software.Software4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Software.Software4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Software/Software4XXError_results.cs b/V2/Queries/Software/Software4XXError_results.cs deleted file mode 100644 index 13727a2..0000000 --- a/V2/Queries/Software/Software4XXError_results.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Software -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Software4XXError_results : 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; } - /// Device identifier - public int? DeviceId { get; set; } - /// Installation Date - public DateTimeOffset? InstallDate { get; set; } - /// Is System Component - public bool? IsSystemComponent { get; set; } - /// Location -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Location { get; set; } -#nullable restore -#else - public string Location { get; set; } -#endif - /// Product Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Product Code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ProductCode { get; set; } -#nullable restore -#else - public string ProductCode { get; set; } -#endif - /// Publisher -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Publisher { get; set; } -#nullable restore -#else - public string Publisher { get; set; } -#endif - /// Size on disk - public long? Size { get; set; } - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// Version -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Version { get; set; } -#nullable restore -#else - public string Version { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Software4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.Software.Software4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Software.Software4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "installDate", n => { InstallDate = n.GetDateTimeOffsetValue(); } }, - { "isSystemComponent", n => { IsSystemComponent = n.GetBoolValue(); } }, - { "location", n => { Location = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "productCode", n => { ProductCode = n.GetStringValue(); } }, - { "publisher", n => { Publisher = n.GetStringValue(); } }, - { "size", n => { Size = n.GetLongValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "version", n => { Version = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteDateTimeOffsetValue("installDate", InstallDate); - writer.WriteBoolValue("isSystemComponent", IsSystemComponent); - writer.WriteStringValue("location", Location); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("productCode", ProductCode); - writer.WriteStringValue("publisher", Publisher); - writer.WriteLongValue("size", Size); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteStringValue("version", Version); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Software/Software5XXError.cs b/V2/Queries/Software/Software5XXError.cs deleted file mode 100644 index dcb7171..0000000 --- a/V2/Queries/Software/Software5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Software -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Software5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.Software.Software5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.Software.Software5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Software5XXError() - { - 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::NinjaOne.Client.V2.Queries.Software.Software5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Software.Software5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.Software.Software5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.Software.Software5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Software/Software5XXError_cursor.cs b/V2/Queries/Software/Software5XXError_cursor.cs deleted file mode 100644 index d17930e..0000000 --- a/V2/Queries/Software/Software5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Software -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Software5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Software5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.Software.Software5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Software.Software5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Software/Software5XXError_results.cs b/V2/Queries/Software/Software5XXError_results.cs deleted file mode 100644 index 11ea679..0000000 --- a/V2/Queries/Software/Software5XXError_results.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Software -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Software5XXError_results : 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; } - /// Device identifier - public int? DeviceId { get; set; } - /// Installation Date - public DateTimeOffset? InstallDate { get; set; } - /// Is System Component - public bool? IsSystemComponent { get; set; } - /// Location -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Location { get; set; } -#nullable restore -#else - public string Location { get; set; } -#endif - /// Product Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Product Code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ProductCode { get; set; } -#nullable restore -#else - public string ProductCode { get; set; } -#endif - /// Publisher -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Publisher { get; set; } -#nullable restore -#else - public string Publisher { get; set; } -#endif - /// Size on disk - public long? Size { get; set; } - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// Version -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Version { get; set; } -#nullable restore -#else - public string Version { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Software5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.Software.Software5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Software.Software5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "installDate", n => { InstallDate = n.GetDateTimeOffsetValue(); } }, - { "isSystemComponent", n => { IsSystemComponent = n.GetBoolValue(); } }, - { "location", n => { Location = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "productCode", n => { ProductCode = n.GetStringValue(); } }, - { "publisher", n => { Publisher = n.GetStringValue(); } }, - { "size", n => { Size = n.GetLongValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "version", n => { Version = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteDateTimeOffsetValue("installDate", InstallDate); - writer.WriteBoolValue("isSystemComponent", IsSystemComponent); - writer.WriteStringValue("location", Location); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("productCode", ProductCode); - writer.WriteStringValue("publisher", Publisher); - writer.WriteLongValue("size", Size); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteStringValue("version", Version); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Software/SoftwareRequestBuilder.cs b/V2/Queries/Software/SoftwareRequestBuilder.cs deleted file mode 100644 index 606358c..0000000 --- a/V2/Queries/Software/SoftwareRequestBuilder.cs +++ /dev/null @@ -1,148 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.Software -{ - /// - /// Builds and executes requests for operations under \v2\queries\software - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwareRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SoftwareRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/software{?cursor*,df*,installedAfter*,installedBefore*,pageSize*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SoftwareRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/software{?cursor*,df*,installedAfter*,installedBefore*,pageSize*}", rawUrl) - { - } - /// - /// Returns list software installed on devices - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.Software.Software4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.Software.Software5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list software installed on devices - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.Software.SoftwareRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.Software.SoftwareRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list software installed on devices - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwareRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Include software installed after specified date -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("installedAfter")] - public string? InstalledAfter { get; set; } -#nullable restore -#else - [QueryParameter("installedAfter")] - public string InstalledAfter { get; set; } -#endif - /// Include software installed before specified date -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("installedBefore")] - public string? InstalledBefore { get; set; } -#nullable restore -#else - [QueryParameter("installedBefore")] - public string InstalledBefore { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwareRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls4XXError.cs b/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls4XXError.cs deleted file mode 100644 index 07ec3e5..0000000 --- a/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.SoftwarePatchInstalls -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwarePatchInstalls4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwarePatchInstalls4XXError() - { - 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::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls4XXError_cursor.cs b/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls4XXError_cursor.cs deleted file mode 100644 index df338ea..0000000 --- a/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.SoftwarePatchInstalls -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwarePatchInstalls4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public SoftwarePatchInstalls4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls4XXError_results.cs b/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls4XXError_results.cs deleted file mode 100644 index 912858a..0000000 --- a/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls4XXError_results.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.SoftwarePatchInstalls -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwarePatchInstalls4XXError_results : 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; } - /// Device identifier - public int? DeviceId { get; set; } - /// Identifier - public Guid? Id { get; set; } - /// Impact -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Impact { get; set; } -#nullable restore -#else - public string Impact { get; set; } -#endif - /// Installation attempt timestamp - public double? InstalledAt { get; set; } - /// Software product identifier - public Guid? ProductIdentifier { get; set; } - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// Patch title -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Title { get; set; } -#nullable restore -#else - public string Title { get; set; } -#endif - /// Patch type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwarePatchInstalls4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "impact", n => { Impact = n.GetStringValue(); } }, - { "installedAt", n => { InstalledAt = n.GetDoubleValue(); } }, - { "productIdentifier", n => { ProductIdentifier = n.GetGuidValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "title", n => { Title = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("impact", Impact); - writer.WriteDoubleValue("installedAt", InstalledAt); - writer.WriteGuidValue("productIdentifier", ProductIdentifier); - writer.WriteStringValue("status", Status); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteStringValue("title", Title); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls5XXError.cs b/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls5XXError.cs deleted file mode 100644 index e7adae3..0000000 --- a/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.SoftwarePatchInstalls -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwarePatchInstalls5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwarePatchInstalls5XXError() - { - 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::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls5XXError_cursor.cs b/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls5XXError_cursor.cs deleted file mode 100644 index 7d23d19..0000000 --- a/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.SoftwarePatchInstalls -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwarePatchInstalls5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public SoftwarePatchInstalls5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls5XXError_results.cs b/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls5XXError_results.cs deleted file mode 100644 index 120ac12..0000000 --- a/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstalls5XXError_results.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.SoftwarePatchInstalls -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwarePatchInstalls5XXError_results : 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; } - /// Device identifier - public int? DeviceId { get; set; } - /// Identifier - public Guid? Id { get; set; } - /// Impact -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Impact { get; set; } -#nullable restore -#else - public string Impact { get; set; } -#endif - /// Installation attempt timestamp - public double? InstalledAt { get; set; } - /// Software product identifier - public Guid? ProductIdentifier { get; set; } - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// Patch title -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Title { get; set; } -#nullable restore -#else - public string Title { get; set; } -#endif - /// Patch type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwarePatchInstalls5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "impact", n => { Impact = n.GetStringValue(); } }, - { "installedAt", n => { InstalledAt = n.GetDoubleValue(); } }, - { "productIdentifier", n => { ProductIdentifier = n.GetGuidValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "title", n => { Title = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("impact", Impact); - writer.WriteDoubleValue("installedAt", InstalledAt); - writer.WriteGuidValue("productIdentifier", ProductIdentifier); - writer.WriteStringValue("status", Status); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteStringValue("title", Title); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstallsRequestBuilder.cs b/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstallsRequestBuilder.cs deleted file mode 100644 index f6bd4c0..0000000 --- a/V2/Queries/SoftwarePatchInstalls/SoftwarePatchInstallsRequestBuilder.cs +++ /dev/null @@ -1,188 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.SoftwarePatchInstalls -{ - /// - /// Builds and executes requests for operations under \v2\queries\software-patch-installs - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwarePatchInstallsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SoftwarePatchInstallsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/software-patch-installs{?cursor*,df*,impact*,installedAfter*,installedBefore*,pageSize*,productIdentifier*,status*,type*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SoftwarePatchInstallsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/software-patch-installs{?cursor*,df*,impact*,installedAfter*,installedBefore*,pageSize*,productIdentifier*,status*,type*}", rawUrl) - { - } - /// - /// Returns 3rd party software patch installation history records (successful and failed) - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstalls5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns 3rd party software patch installation history records (successful and failed) - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstallsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.SoftwarePatchInstalls.SoftwarePatchInstallsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns 3rd party software patch installation history records (successful and failed) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwarePatchInstallsRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Patch Impact filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("impact")] - public string? Impact { get; set; } -#nullable restore -#else - [QueryParameter("impact")] - public string Impact { get; set; } -#endif - /// Include patches installed after specified date -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("installedAfter")] - public string? InstalledAfter { get; set; } -#nullable restore -#else - [QueryParameter("installedAfter")] - public string InstalledAfter { get; set; } -#endif - /// Include patches installed before specified date -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("installedBefore")] - public string? InstalledBefore { get; set; } -#nullable restore -#else - [QueryParameter("installedBefore")] - public string InstalledBefore { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Product Identifier -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("productIdentifier")] - public string? ProductIdentifier { get; set; } -#nullable restore -#else - [QueryParameter("productIdentifier")] - public string ProductIdentifier { get; set; } -#endif - /// Patch Status filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("status")] - public string? Status { get; set; } -#nullable restore -#else - [QueryParameter("status")] - public string Status { get; set; } -#endif - /// Patch Type filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("type")] - public string? Type { get; set; } -#nullable restore -#else - [QueryParameter("type")] - public string Type { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwarePatchInstallsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/SoftwarePatches/SoftwarePatches4XXError.cs b/V2/Queries/SoftwarePatches/SoftwarePatches4XXError.cs deleted file mode 100644 index 95cf4b4..0000000 --- a/V2/Queries/SoftwarePatches/SoftwarePatches4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.SoftwarePatches -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwarePatches4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwarePatches4XXError() - { - 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::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/SoftwarePatches/SoftwarePatches4XXError_cursor.cs b/V2/Queries/SoftwarePatches/SoftwarePatches4XXError_cursor.cs deleted file mode 100644 index 42dd8f3..0000000 --- a/V2/Queries/SoftwarePatches/SoftwarePatches4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.SoftwarePatches -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwarePatches4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public SoftwarePatches4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/SoftwarePatches/SoftwarePatches4XXError_results.cs b/V2/Queries/SoftwarePatches/SoftwarePatches4XXError_results.cs deleted file mode 100644 index 60afd6b..0000000 --- a/V2/Queries/SoftwarePatches/SoftwarePatches4XXError_results.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.SoftwarePatches -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwarePatches4XXError_results : 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; } - /// Device identifier - public int? DeviceId { get; set; } - /// Identifier - public Guid? Id { get; set; } - /// Impact -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Impact { get; set; } -#nullable restore -#else - public string Impact { get; set; } -#endif - /// Installation attempt timestamp - public double? InstalledAt { get; set; } - /// Software product identifier - public Guid? ProductIdentifier { get; set; } - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// Patch title -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Title { get; set; } -#nullable restore -#else - public string Title { get; set; } -#endif - /// Patch type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwarePatches4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "impact", n => { Impact = n.GetStringValue(); } }, - { "installedAt", n => { InstalledAt = n.GetDoubleValue(); } }, - { "productIdentifier", n => { ProductIdentifier = n.GetGuidValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "title", n => { Title = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("impact", Impact); - writer.WriteDoubleValue("installedAt", InstalledAt); - writer.WriteGuidValue("productIdentifier", ProductIdentifier); - writer.WriteStringValue("status", Status); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteStringValue("title", Title); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/SoftwarePatches/SoftwarePatches5XXError.cs b/V2/Queries/SoftwarePatches/SoftwarePatches5XXError.cs deleted file mode 100644 index b24b4da..0000000 --- a/V2/Queries/SoftwarePatches/SoftwarePatches5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.SoftwarePatches -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwarePatches5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwarePatches5XXError() - { - 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::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/SoftwarePatches/SoftwarePatches5XXError_cursor.cs b/V2/Queries/SoftwarePatches/SoftwarePatches5XXError_cursor.cs deleted file mode 100644 index 83ea3fb..0000000 --- a/V2/Queries/SoftwarePatches/SoftwarePatches5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.SoftwarePatches -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwarePatches5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public SoftwarePatches5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/SoftwarePatches/SoftwarePatches5XXError_results.cs b/V2/Queries/SoftwarePatches/SoftwarePatches5XXError_results.cs deleted file mode 100644 index 74df75c..0000000 --- a/V2/Queries/SoftwarePatches/SoftwarePatches5XXError_results.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.SoftwarePatches -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwarePatches5XXError_results : 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; } - /// Device identifier - public int? DeviceId { get; set; } - /// Identifier - public Guid? Id { get; set; } - /// Impact -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Impact { get; set; } -#nullable restore -#else - public string Impact { get; set; } -#endif - /// Installation attempt timestamp - public double? InstalledAt { get; set; } - /// Software product identifier - public Guid? ProductIdentifier { get; set; } - /// Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// Patch title -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Title { get; set; } -#nullable restore -#else - public string Title { get; set; } -#endif - /// Patch type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwarePatches5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "impact", n => { Impact = n.GetStringValue(); } }, - { "installedAt", n => { InstalledAt = n.GetDoubleValue(); } }, - { "productIdentifier", n => { ProductIdentifier = n.GetGuidValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "title", n => { Title = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("impact", Impact); - writer.WriteDoubleValue("installedAt", InstalledAt); - writer.WriteGuidValue("productIdentifier", ProductIdentifier); - writer.WriteStringValue("status", Status); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteStringValue("title", Title); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/SoftwarePatches/SoftwarePatchesRequestBuilder.cs b/V2/Queries/SoftwarePatches/SoftwarePatchesRequestBuilder.cs deleted file mode 100644 index 518afb3..0000000 --- a/V2/Queries/SoftwarePatches/SoftwarePatchesRequestBuilder.cs +++ /dev/null @@ -1,178 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.SoftwarePatches -{ - /// - /// Builds and executes requests for operations under \v2\queries\software-patches - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwarePatchesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SoftwarePatchesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/software-patches{?cursor*,df*,impact*,pageSize*,productIdentifier*,status*,ts*,type*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SoftwarePatchesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/software-patches{?cursor*,df*,impact*,pageSize*,productIdentifier*,status*,ts*,type*}", rawUrl) - { - } - /// - /// Returns list of 3rd party Software patches for which there were no installation attempts - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatches5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of 3rd party Software patches for which there were no installation attempts - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatchesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.SoftwarePatches.SoftwarePatchesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of 3rd party Software patches for which there were no installation attempts - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwarePatchesRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Patch Impact filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("impact")] - public string? Impact { get; set; } -#nullable restore -#else - [QueryParameter("impact")] - public string Impact { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Product Identifier -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("productIdentifier")] - public string? ProductIdentifier { get; set; } -#nullable restore -#else - [QueryParameter("productIdentifier")] - public string ProductIdentifier { get; set; } -#endif - /// Patch Status filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("status")] - public string? Status { get; set; } -#nullable restore -#else - [QueryParameter("status")] - public string Status { get; set; } -#endif - /// Monitoring timestamp filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("ts")] - public string? Ts { get; set; } -#nullable restore -#else - [QueryParameter("ts")] - public string Ts { get; set; } -#endif - /// Patch Type filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("type")] - public string? Type { get; set; } -#nullable restore -#else - [QueryParameter("type")] - public string Type { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwarePatchesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Volumes/Volumes4XXError.cs b/V2/Queries/Volumes/Volumes4XXError.cs deleted file mode 100644 index 14eb311..0000000 --- a/V2/Queries/Volumes/Volumes4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Volumes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Volumes4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Volumes4XXError() - { - 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::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Volumes/Volumes4XXError_cursor.cs b/V2/Queries/Volumes/Volumes4XXError_cursor.cs deleted file mode 100644 index e96e788..0000000 --- a/V2/Queries/Volumes/Volumes4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Volumes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Volumes4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Volumes4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Volumes/Volumes4XXError_results.cs b/V2/Queries/Volumes/Volumes4XXError_results.cs deleted file mode 100644 index 5a5fd44..0000000 --- a/V2/Queries/Volumes/Volumes4XXError_results.cs +++ /dev/null @@ -1,149 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Volumes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Volumes4XXError_results : 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; } - /// Automatically Mounted - public bool? AutoMount { get; set; } - /// BitLocker Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError_results_bitLockerStatus? BitLockerStatus { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError_results_bitLockerStatus BitLockerStatus { get; set; } -#endif - /// Capacity (bytes) - public long? Capacity { get; set; } - /// Compressed - public bool? Compressed { get; set; } - /// Device identifier - public int? DeviceId { get; set; } - /// Device Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DeviceType { get; set; } -#nullable restore -#else - public string DeviceType { get; set; } -#endif - /// Drive Letter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DriveLetter { get; set; } -#nullable restore -#else - public string DriveLetter { get; set; } -#endif - /// File System Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileSystem { get; set; } -#nullable restore -#else - public string FileSystem { get; set; } -#endif - /// Free Space (bytes) - public long? FreeSpace { get; set; } - /// Volume Label -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Serial Number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SerialNumber { get; set; } -#nullable restore -#else - public string SerialNumber { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Volumes4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "autoMount", n => { AutoMount = n.GetBoolValue(); } }, - { "bitLockerStatus", n => { BitLockerStatus = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError_results_bitLockerStatus.CreateFromDiscriminatorValue); } }, - { "capacity", n => { Capacity = n.GetLongValue(); } }, - { "compressed", n => { Compressed = n.GetBoolValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "deviceType", n => { DeviceType = n.GetStringValue(); } }, - { "driveLetter", n => { DriveLetter = n.GetStringValue(); } }, - { "fileSystem", n => { FileSystem = n.GetStringValue(); } }, - { "freeSpace", n => { FreeSpace = n.GetLongValue(); } }, - { "label", n => { Label = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "serialNumber", n => { SerialNumber = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("autoMount", AutoMount); - writer.WriteObjectValue("bitLockerStatus", BitLockerStatus); - writer.WriteLongValue("capacity", Capacity); - writer.WriteBoolValue("compressed", Compressed); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("deviceType", DeviceType); - writer.WriteStringValue("driveLetter", DriveLetter); - writer.WriteStringValue("fileSystem", FileSystem); - writer.WriteLongValue("freeSpace", FreeSpace); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("serialNumber", SerialNumber); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Volumes/Volumes4XXError_results_bitLockerStatus.cs b/V2/Queries/Volumes/Volumes4XXError_results_bitLockerStatus.cs deleted file mode 100644 index 7f79956..0000000 --- a/V2/Queries/Volumes/Volumes4XXError_results_bitLockerStatus.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Volumes -{ - /// - /// BitLocker Status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Volumes4XXError_results_bitLockerStatus : 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; } - /// Volume encryption or decryption status. - public global::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError_results_bitLockerStatus_conversionStatus? ConversionStatus { get; set; } - /// Indicated the encryption algorithm and key size used on the volume - public global::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError_results_bitLockerStatus_encryptionMethod? EncryptionMethod { get; set; } - /// Is initialized for protection - public bool? InitializedForProtection { get; set; } - /// Indicates whether the contents of the volume are accessible from Windows - public global::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError_results_bitLockerStatus_lockStatus? LockStatus { get; set; } - /// indicates whether the volume and its encryption key (if any) are secured. - public global::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError_results_bitLockerStatus_protectionStatus? ProtectionStatus { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Volumes4XXError_results_bitLockerStatus() - { - 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::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError_results_bitLockerStatus CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError_results_bitLockerStatus(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "conversionStatus", n => { ConversionStatus = n.GetEnumValue(); } }, - { "encryptionMethod", n => { EncryptionMethod = n.GetEnumValue(); } }, - { "initializedForProtection", n => { InitializedForProtection = n.GetBoolValue(); } }, - { "lockStatus", n => { LockStatus = n.GetEnumValue(); } }, - { "protectionStatus", n => { ProtectionStatus = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("conversionStatus", ConversionStatus); - writer.WriteEnumValue("encryptionMethod", EncryptionMethod); - writer.WriteBoolValue("initializedForProtection", InitializedForProtection); - writer.WriteEnumValue("lockStatus", LockStatus); - writer.WriteEnumValue("protectionStatus", ProtectionStatus); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Volumes/Volumes4XXError_results_bitLockerStatus_conversionStatus.cs b/V2/Queries/Volumes/Volumes4XXError_results_bitLockerStatus_conversionStatus.cs deleted file mode 100644 index d4716ea..0000000 --- a/V2/Queries/Volumes/Volumes4XXError_results_bitLockerStatus_conversionStatus.cs +++ /dev/null @@ -1,39 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.Volumes -{ - /// Volume encryption or decryption status. - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Volumes4XXError_results_bitLockerStatus_conversionStatus - { - [EnumMember(Value = "FULLY_DECRYPTED")] - #pragma warning disable CS1591 - FULLY_DECRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "FULLY_ENCRYPTED")] - #pragma warning disable CS1591 - FULLY_ENCRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "ENCRYPTION_IN_PROGRESS")] - #pragma warning disable CS1591 - ENCRYPTION_IN_PROGRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "DECRYPTION_IN_PROGRESS")] - #pragma warning disable CS1591 - DECRYPTION_IN_PROGRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "ENCRYPTION_PAUSED")] - #pragma warning disable CS1591 - ENCRYPTION_PAUSED, - #pragma warning restore CS1591 - [EnumMember(Value = "DECRYPTION_PAUSED")] - #pragma warning disable CS1591 - DECRYPTION_PAUSED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/Volumes/Volumes4XXError_results_bitLockerStatus_encryptionMethod.cs b/V2/Queries/Volumes/Volumes4XXError_results_bitLockerStatus_encryptionMethod.cs deleted file mode 100644 index ab89760..0000000 --- a/V2/Queries/Volumes/Volumes4XXError_results_bitLockerStatus_encryptionMethod.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.Volumes -{ - /// Indicated the encryption algorithm and key size used on the volume - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Volumes4XXError_results_bitLockerStatus_encryptionMethod - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "AES_128_WITH_DIFFUSER")] - #pragma warning disable CS1591 - AES_128_WITH_DIFFUSER, - #pragma warning restore CS1591 - [EnumMember(Value = "AES_256_WITH_DIFFUSER")] - #pragma warning disable CS1591 - AES_256_WITH_DIFFUSER, - #pragma warning restore CS1591 - [EnumMember(Value = "AES_128")] - #pragma warning disable CS1591 - AES_128, - #pragma warning restore CS1591 - [EnumMember(Value = "AES_256")] - #pragma warning disable CS1591 - AES_256, - #pragma warning restore CS1591 - [EnumMember(Value = "HARDWARE_ENCRYPTION")] - #pragma warning disable CS1591 - HARDWARE_ENCRYPTION, - #pragma warning restore CS1591 - [EnumMember(Value = "XTS_AES_128")] - #pragma warning disable CS1591 - XTS_AES_128, - #pragma warning restore CS1591 - [EnumMember(Value = "XTS_AES_256")] - #pragma warning disable CS1591 - XTS_AES_256, - #pragma warning restore CS1591 - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/Volumes/Volumes4XXError_results_bitLockerStatus_lockStatus.cs b/V2/Queries/Volumes/Volumes4XXError_results_bitLockerStatus_lockStatus.cs deleted file mode 100644 index cbedd48..0000000 --- a/V2/Queries/Volumes/Volumes4XXError_results_bitLockerStatus_lockStatus.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.Volumes -{ - /// Indicates whether the contents of the volume are accessible from Windows - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Volumes4XXError_results_bitLockerStatus_lockStatus - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "UNLOCKED")] - #pragma warning disable CS1591 - UNLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCKED")] - #pragma warning disable CS1591 - LOCKED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/Volumes/Volumes4XXError_results_bitLockerStatus_protectionStatus.cs b/V2/Queries/Volumes/Volumes4XXError_results_bitLockerStatus_protectionStatus.cs deleted file mode 100644 index a7c2193..0000000 --- a/V2/Queries/Volumes/Volumes4XXError_results_bitLockerStatus_protectionStatus.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.Volumes -{ - /// indicates whether the volume and its encryption key (if any) are secured. - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Volumes4XXError_results_bitLockerStatus_protectionStatus - { - [EnumMember(Value = "UNPROTECTED")] - #pragma warning disable CS1591 - UNPROTECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PROTECTED")] - #pragma warning disable CS1591 - PROTECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/Volumes/Volumes5XXError.cs b/V2/Queries/Volumes/Volumes5XXError.cs deleted file mode 100644 index cf3ce1a..0000000 --- a/V2/Queries/Volumes/Volumes5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Volumes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Volumes5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Volumes5XXError() - { - 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::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Volumes/Volumes5XXError_cursor.cs b/V2/Queries/Volumes/Volumes5XXError_cursor.cs deleted file mode 100644 index 504b10a..0000000 --- a/V2/Queries/Volumes/Volumes5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Volumes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Volumes5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Volumes5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Volumes/Volumes5XXError_results.cs b/V2/Queries/Volumes/Volumes5XXError_results.cs deleted file mode 100644 index 8d0905e..0000000 --- a/V2/Queries/Volumes/Volumes5XXError_results.cs +++ /dev/null @@ -1,149 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Volumes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Volumes5XXError_results : 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; } - /// Automatically Mounted - public bool? AutoMount { get; set; } - /// BitLocker Status -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError_results_bitLockerStatus? BitLockerStatus { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError_results_bitLockerStatus BitLockerStatus { get; set; } -#endif - /// Capacity (bytes) - public long? Capacity { get; set; } - /// Compressed - public bool? Compressed { get; set; } - /// Device identifier - public int? DeviceId { get; set; } - /// Device Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DeviceType { get; set; } -#nullable restore -#else - public string DeviceType { get; set; } -#endif - /// Drive Letter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DriveLetter { get; set; } -#nullable restore -#else - public string DriveLetter { get; set; } -#endif - /// File System Type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileSystem { get; set; } -#nullable restore -#else - public string FileSystem { get; set; } -#endif - /// Free Space (bytes) - public long? FreeSpace { get; set; } - /// Volume Label -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Serial Number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SerialNumber { get; set; } -#nullable restore -#else - public string SerialNumber { get; set; } -#endif - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Volumes5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "autoMount", n => { AutoMount = n.GetBoolValue(); } }, - { "bitLockerStatus", n => { BitLockerStatus = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError_results_bitLockerStatus.CreateFromDiscriminatorValue); } }, - { "capacity", n => { Capacity = n.GetLongValue(); } }, - { "compressed", n => { Compressed = n.GetBoolValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "deviceType", n => { DeviceType = n.GetStringValue(); } }, - { "driveLetter", n => { DriveLetter = n.GetStringValue(); } }, - { "fileSystem", n => { FileSystem = n.GetStringValue(); } }, - { "freeSpace", n => { FreeSpace = n.GetLongValue(); } }, - { "label", n => { Label = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "serialNumber", n => { SerialNumber = n.GetStringValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("autoMount", AutoMount); - writer.WriteObjectValue("bitLockerStatus", BitLockerStatus); - writer.WriteLongValue("capacity", Capacity); - writer.WriteBoolValue("compressed", Compressed); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("deviceType", DeviceType); - writer.WriteStringValue("driveLetter", DriveLetter); - writer.WriteStringValue("fileSystem", FileSystem); - writer.WriteLongValue("freeSpace", FreeSpace); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("serialNumber", SerialNumber); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Volumes/Volumes5XXError_results_bitLockerStatus.cs b/V2/Queries/Volumes/Volumes5XXError_results_bitLockerStatus.cs deleted file mode 100644 index 201de52..0000000 --- a/V2/Queries/Volumes/Volumes5XXError_results_bitLockerStatus.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.Volumes -{ - /// - /// BitLocker Status - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Volumes5XXError_results_bitLockerStatus : 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; } - /// Volume encryption or decryption status. - public global::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError_results_bitLockerStatus_conversionStatus? ConversionStatus { get; set; } - /// Indicated the encryption algorithm and key size used on the volume - public global::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError_results_bitLockerStatus_encryptionMethod? EncryptionMethod { get; set; } - /// Is initialized for protection - public bool? InitializedForProtection { get; set; } - /// Indicates whether the contents of the volume are accessible from Windows - public global::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError_results_bitLockerStatus_lockStatus? LockStatus { get; set; } - /// indicates whether the volume and its encryption key (if any) are secured. - public global::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError_results_bitLockerStatus_protectionStatus? ProtectionStatus { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Volumes5XXError_results_bitLockerStatus() - { - 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::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError_results_bitLockerStatus CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError_results_bitLockerStatus(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "conversionStatus", n => { ConversionStatus = n.GetEnumValue(); } }, - { "encryptionMethod", n => { EncryptionMethod = n.GetEnumValue(); } }, - { "initializedForProtection", n => { InitializedForProtection = n.GetBoolValue(); } }, - { "lockStatus", n => { LockStatus = n.GetEnumValue(); } }, - { "protectionStatus", n => { ProtectionStatus = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("conversionStatus", ConversionStatus); - writer.WriteEnumValue("encryptionMethod", EncryptionMethod); - writer.WriteBoolValue("initializedForProtection", InitializedForProtection); - writer.WriteEnumValue("lockStatus", LockStatus); - writer.WriteEnumValue("protectionStatus", ProtectionStatus); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/Volumes/Volumes5XXError_results_bitLockerStatus_conversionStatus.cs b/V2/Queries/Volumes/Volumes5XXError_results_bitLockerStatus_conversionStatus.cs deleted file mode 100644 index f5f69fb..0000000 --- a/V2/Queries/Volumes/Volumes5XXError_results_bitLockerStatus_conversionStatus.cs +++ /dev/null @@ -1,39 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.Volumes -{ - /// Volume encryption or decryption status. - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Volumes5XXError_results_bitLockerStatus_conversionStatus - { - [EnumMember(Value = "FULLY_DECRYPTED")] - #pragma warning disable CS1591 - FULLY_DECRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "FULLY_ENCRYPTED")] - #pragma warning disable CS1591 - FULLY_ENCRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "ENCRYPTION_IN_PROGRESS")] - #pragma warning disable CS1591 - ENCRYPTION_IN_PROGRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "DECRYPTION_IN_PROGRESS")] - #pragma warning disable CS1591 - DECRYPTION_IN_PROGRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "ENCRYPTION_PAUSED")] - #pragma warning disable CS1591 - ENCRYPTION_PAUSED, - #pragma warning restore CS1591 - [EnumMember(Value = "DECRYPTION_PAUSED")] - #pragma warning disable CS1591 - DECRYPTION_PAUSED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/Volumes/Volumes5XXError_results_bitLockerStatus_encryptionMethod.cs b/V2/Queries/Volumes/Volumes5XXError_results_bitLockerStatus_encryptionMethod.cs deleted file mode 100644 index 47e2caf..0000000 --- a/V2/Queries/Volumes/Volumes5XXError_results_bitLockerStatus_encryptionMethod.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.Volumes -{ - /// Indicated the encryption algorithm and key size used on the volume - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Volumes5XXError_results_bitLockerStatus_encryptionMethod - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "AES_128_WITH_DIFFUSER")] - #pragma warning disable CS1591 - AES_128_WITH_DIFFUSER, - #pragma warning restore CS1591 - [EnumMember(Value = "AES_256_WITH_DIFFUSER")] - #pragma warning disable CS1591 - AES_256_WITH_DIFFUSER, - #pragma warning restore CS1591 - [EnumMember(Value = "AES_128")] - #pragma warning disable CS1591 - AES_128, - #pragma warning restore CS1591 - [EnumMember(Value = "AES_256")] - #pragma warning disable CS1591 - AES_256, - #pragma warning restore CS1591 - [EnumMember(Value = "HARDWARE_ENCRYPTION")] - #pragma warning disable CS1591 - HARDWARE_ENCRYPTION, - #pragma warning restore CS1591 - [EnumMember(Value = "XTS_AES_128")] - #pragma warning disable CS1591 - XTS_AES_128, - #pragma warning restore CS1591 - [EnumMember(Value = "XTS_AES_256")] - #pragma warning disable CS1591 - XTS_AES_256, - #pragma warning restore CS1591 - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/Volumes/Volumes5XXError_results_bitLockerStatus_lockStatus.cs b/V2/Queries/Volumes/Volumes5XXError_results_bitLockerStatus_lockStatus.cs deleted file mode 100644 index b2b4673..0000000 --- a/V2/Queries/Volumes/Volumes5XXError_results_bitLockerStatus_lockStatus.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.Volumes -{ - /// Indicates whether the contents of the volume are accessible from Windows - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Volumes5XXError_results_bitLockerStatus_lockStatus - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "UNLOCKED")] - #pragma warning disable CS1591 - UNLOCKED, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCKED")] - #pragma warning disable CS1591 - LOCKED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/Volumes/Volumes5XXError_results_bitLockerStatus_protectionStatus.cs b/V2/Queries/Volumes/Volumes5XXError_results_bitLockerStatus_protectionStatus.cs deleted file mode 100644 index 2408255..0000000 --- a/V2/Queries/Volumes/Volumes5XXError_results_bitLockerStatus_protectionStatus.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.Volumes -{ - /// indicates whether the volume and its encryption key (if any) are secured. - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Volumes5XXError_results_bitLockerStatus_protectionStatus - { - [EnumMember(Value = "UNPROTECTED")] - #pragma warning disable CS1591 - UNPROTECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "PROTECTED")] - #pragma warning disable CS1591 - PROTECTED, - #pragma warning restore CS1591 - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/Volumes/VolumesRequestBuilder.cs b/V2/Queries/Volumes/VolumesRequestBuilder.cs deleted file mode 100644 index a685594..0000000 --- a/V2/Queries/Volumes/VolumesRequestBuilder.cs +++ /dev/null @@ -1,148 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.Volumes -{ - /// - /// Builds and executes requests for operations under \v2\queries\volumes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class VolumesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public VolumesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/volumes{?cursor*,df*,include*,pageSize*,ts*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public VolumesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/volumes{?cursor*,df*,include*,pageSize*,ts*}", rawUrl) - { - } - /// - /// Returns list of disk volumes - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.Volumes.Volumes4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.Volumes.Volumes5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of disk volumes - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.Volumes.VolumesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.Volumes.VolumesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of disk volumes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class VolumesRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Additional information to include (bl - BitLocker status) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("include")] - public string? Include { get; set; } -#nullable restore -#else - [QueryParameter("include")] - public string Include { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Monitoring timestamp filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("ts")] - public string? Ts { get; set; } -#nullable restore -#else - [QueryParameter("ts")] - public string Ts { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class VolumesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/WindowsServices/GetStateQueryParameterType.cs b/V2/Queries/WindowsServices/GetStateQueryParameterType.cs deleted file mode 100644 index c0334f9..0000000 --- a/V2/Queries/WindowsServices/GetStateQueryParameterType.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.WindowsServices -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum GetStateQueryParameterType - #pragma warning restore CS1591 - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "STOPPED")] - #pragma warning disable CS1591 - STOPPED, - #pragma warning restore CS1591 - [EnumMember(Value = "START_PENDING")] - #pragma warning disable CS1591 - START_PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "RUNNING")] - #pragma warning disable CS1591 - RUNNING, - #pragma warning restore CS1591 - [EnumMember(Value = "STOP_PENDING")] - #pragma warning disable CS1591 - STOP_PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "PAUSE_PENDING")] - #pragma warning disable CS1591 - PAUSE_PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "PAUSED")] - #pragma warning disable CS1591 - PAUSED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTINUE_PENDING")] - #pragma warning disable CS1591 - CONTINUE_PENDING, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/WindowsServices/WindowsServices4XXError.cs b/V2/Queries/WindowsServices/WindowsServices4XXError.cs deleted file mode 100644 index ad9f8ae..0000000 --- a/V2/Queries/WindowsServices/WindowsServices4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.WindowsServices -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WindowsServices4XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices4XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices4XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsServices4XXError() - { - 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::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices4XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices4XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/WindowsServices/WindowsServices4XXError_cursor.cs b/V2/Queries/WindowsServices/WindowsServices4XXError_cursor.cs deleted file mode 100644 index 9a0b6ee..0000000 --- a/V2/Queries/WindowsServices/WindowsServices4XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.WindowsServices -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WindowsServices4XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WindowsServices4XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices4XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices4XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/WindowsServices/WindowsServices4XXError_results.cs b/V2/Queries/WindowsServices/WindowsServices4XXError_results.cs deleted file mode 100644 index 171bb7b..0000000 --- a/V2/Queries/WindowsServices/WindowsServices4XXError_results.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.WindowsServices -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WindowsServices4XXError_results : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// Display Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Start Type - public global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices4XXError_results_startType? StartType { get; set; } - /// State - public global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices4XXError_results_state? State { get; set; } - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// User Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UserName { get; set; } -#nullable restore -#else - public string UserName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsServices4XXError_results() - { - 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::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices4XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices4XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "startType", n => { StartType = n.GetEnumValue(); } }, - { "state", n => { State = n.GetEnumValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "userName", n => { UserName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("startType", StartType); - writer.WriteEnumValue("state", State); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteStringValue("userName", UserName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/WindowsServices/WindowsServices4XXError_results_startType.cs b/V2/Queries/WindowsServices/WindowsServices4XXError_results_startType.cs deleted file mode 100644 index 93b3107..0000000 --- a/V2/Queries/WindowsServices/WindowsServices4XXError_results_startType.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.WindowsServices -{ - /// Start Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsServices4XXError_results_startType - { - [EnumMember(Value = "AUTO_START")] - #pragma warning disable CS1591 - AUTO_START, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTO_START_DELAYED")] - #pragma warning disable CS1591 - AUTO_START_DELAYED, - #pragma warning restore CS1591 - [EnumMember(Value = "BOOT_START")] - #pragma warning disable CS1591 - BOOT_START, - #pragma warning restore CS1591 - [EnumMember(Value = "DEMAND_START")] - #pragma warning disable CS1591 - DEMAND_START, - #pragma warning restore CS1591 - [EnumMember(Value = "DISABLED")] - #pragma warning disable CS1591 - DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM_START")] - #pragma warning disable CS1591 - SYSTEM_START, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/WindowsServices/WindowsServices4XXError_results_state.cs b/V2/Queries/WindowsServices/WindowsServices4XXError_results_state.cs deleted file mode 100644 index 196a6e1..0000000 --- a/V2/Queries/WindowsServices/WindowsServices4XXError_results_state.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.WindowsServices -{ - /// State - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsServices4XXError_results_state - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "STOPPED")] - #pragma warning disable CS1591 - STOPPED, - #pragma warning restore CS1591 - [EnumMember(Value = "START_PENDING")] - #pragma warning disable CS1591 - START_PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "RUNNING")] - #pragma warning disable CS1591 - RUNNING, - #pragma warning restore CS1591 - [EnumMember(Value = "STOP_PENDING")] - #pragma warning disable CS1591 - STOP_PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "PAUSE_PENDING")] - #pragma warning disable CS1591 - PAUSE_PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "PAUSED")] - #pragma warning disable CS1591 - PAUSED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTINUE_PENDING")] - #pragma warning disable CS1591 - CONTINUE_PENDING, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/WindowsServices/WindowsServices5XXError.cs b/V2/Queries/WindowsServices/WindowsServices5XXError.cs deleted file mode 100644 index db1021c..0000000 --- a/V2/Queries/WindowsServices/WindowsServices5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.WindowsServices -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WindowsServices5XXError : 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 cursor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices5XXError_cursor? Cursor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices5XXError_cursor Cursor { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The results property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Results { get; set; } -#nullable restore -#else - public List Results { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsServices5XXError() - { - 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::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cursor", n => { Cursor = n.GetObjectValue(global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices5XXError_cursor.CreateFromDiscriminatorValue); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices5XXError_results.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cursor", Cursor); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/WindowsServices/WindowsServices5XXError_cursor.cs b/V2/Queries/WindowsServices/WindowsServices5XXError_cursor.cs deleted file mode 100644 index a29bbb8..0000000 --- a/V2/Queries/WindowsServices/WindowsServices5XXError_cursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.WindowsServices -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WindowsServices5XXError_cursor : 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 count property - public int? Count { get; set; } - /// The expires property - public double? Expires { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The offset property - public int? Offset { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WindowsServices5XXError_cursor() - { - 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::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices5XXError_cursor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices5XXError_cursor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "count", n => { Count = n.GetIntValue(); } }, - { "expires", n => { Expires = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "offset", n => { Offset = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("count", Count); - writer.WriteDoubleValue("expires", Expires); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("offset", Offset); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/WindowsServices/WindowsServices5XXError_results.cs b/V2/Queries/WindowsServices/WindowsServices5XXError_results.cs deleted file mode 100644 index 1e8ac9b..0000000 --- a/V2/Queries/WindowsServices/WindowsServices5XXError_results.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Queries.WindowsServices -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WindowsServices5XXError_results : 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; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Device identifier - public int? DeviceId { get; set; } - /// Display Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Start Type - public global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices5XXError_results_startType? StartType { get; set; } - /// State - public global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices5XXError_results_state? State { get; set; } - /// Date/Time when data was collected/updated - public double? Timestamp { get; set; } - /// User Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UserName { get; set; } -#nullable restore -#else - public string UserName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WindowsServices5XXError_results() - { - 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::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices5XXError_results CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices5XXError_results(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "deviceId", n => { DeviceId = n.GetIntValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "startType", n => { StartType = n.GetEnumValue(); } }, - { "state", n => { State = n.GetEnumValue(); } }, - { "timestamp", n => { Timestamp = n.GetDoubleValue(); } }, - { "userName", n => { UserName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("deviceId", DeviceId); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("startType", StartType); - writer.WriteEnumValue("state", State); - writer.WriteDoubleValue("timestamp", Timestamp); - writer.WriteStringValue("userName", UserName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Queries/WindowsServices/WindowsServices5XXError_results_startType.cs b/V2/Queries/WindowsServices/WindowsServices5XXError_results_startType.cs deleted file mode 100644 index 67fc8b4..0000000 --- a/V2/Queries/WindowsServices/WindowsServices5XXError_results_startType.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.WindowsServices -{ - /// Start Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsServices5XXError_results_startType - { - [EnumMember(Value = "AUTO_START")] - #pragma warning disable CS1591 - AUTO_START, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTO_START_DELAYED")] - #pragma warning disable CS1591 - AUTO_START_DELAYED, - #pragma warning restore CS1591 - [EnumMember(Value = "BOOT_START")] - #pragma warning disable CS1591 - BOOT_START, - #pragma warning restore CS1591 - [EnumMember(Value = "DEMAND_START")] - #pragma warning disable CS1591 - DEMAND_START, - #pragma warning restore CS1591 - [EnumMember(Value = "DISABLED")] - #pragma warning disable CS1591 - DISABLED, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM_START")] - #pragma warning disable CS1591 - SYSTEM_START, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/WindowsServices/WindowsServices5XXError_results_state.cs b/V2/Queries/WindowsServices/WindowsServices5XXError_results_state.cs deleted file mode 100644 index 8fcd891..0000000 --- a/V2/Queries/WindowsServices/WindowsServices5XXError_results_state.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Queries.WindowsServices -{ - /// State - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WindowsServices5XXError_results_state - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "STOPPED")] - #pragma warning disable CS1591 - STOPPED, - #pragma warning restore CS1591 - [EnumMember(Value = "START_PENDING")] - #pragma warning disable CS1591 - START_PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "RUNNING")] - #pragma warning disable CS1591 - RUNNING, - #pragma warning restore CS1591 - [EnumMember(Value = "STOP_PENDING")] - #pragma warning disable CS1591 - STOP_PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "PAUSE_PENDING")] - #pragma warning disable CS1591 - PAUSE_PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "PAUSED")] - #pragma warning disable CS1591 - PAUSED, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTINUE_PENDING")] - #pragma warning disable CS1591 - CONTINUE_PENDING, - #pragma warning restore CS1591 - } -} diff --git a/V2/Queries/WindowsServices/WindowsServicesRequestBuilder.cs b/V2/Queries/WindowsServices/WindowsServicesRequestBuilder.cs deleted file mode 100644 index b4318e3..0000000 --- a/V2/Queries/WindowsServices/WindowsServicesRequestBuilder.cs +++ /dev/null @@ -1,152 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Queries.WindowsServices -{ - /// - /// Builds and executes requests for operations under \v2\queries\windows-services - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsServicesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WindowsServicesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/windows-services{?cursor*,df*,name*,pageSize*,state*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WindowsServicesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/queries/windows-services{?cursor*,df*,name*,pageSize*,state*}", rawUrl) - { - } - /// - /// Returns list of Windows Services and their statuses - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServices5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of Windows Services and their statuses - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServicesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Queries.WindowsServices.WindowsServicesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of Windows Services and their statuses - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsServicesRequestBuilderGetQueryParameters - { - /// Cursor name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("cursor")] - public string? Cursor { get; set; } -#nullable restore -#else - [QueryParameter("cursor")] - public string Cursor { get; set; } -#endif - /// Device filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("df")] - public string? Df { get; set; } -#nullable restore -#else - [QueryParameter("df")] - public string Df { get; set; } -#endif - /// Service name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("name")] - public string? Name { get; set; } -#nullable restore -#else - [QueryParameter("name")] - public string Name { get; set; } -#endif - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Service state - [Obsolete("This property is deprecated, use StateAsGetStateQueryParameterType instead")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("state")] - public string? State { get; set; } -#nullable restore -#else - [QueryParameter("state")] - public string State { get; set; } -#endif - /// Service state - [QueryParameter("state")] - public global::NinjaOne.Client.V2.Queries.WindowsServices.GetStateQueryParameterType? StateAsGetStateQueryParameterType { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WindowsServicesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/EntityRequestBuilder.cs b/V2/RelatedItems/Entity/EntityRequestBuilder.cs deleted file mode 100644 index 16f974c..0000000 --- a/V2/RelatedItems/Entity/EntityRequestBuilder.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.RelatedItems.Entity.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity -{ - /// - /// Builds and executes requests for operations under \v2\related-items\entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EntityRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.relatedItems.entity.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.WithEntityTypeItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("entityType", position); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.WithEntityTypeItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public EntityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/entity", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public EntityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/entity", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody.cs deleted file mode 100644 index f258efb..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody.cs +++ /dev/null @@ -1,169 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody : 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 contentDisposition property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_contentDisposition? ContentDisposition { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_contentDisposition ContentDisposition { get; set; } -#endif - /// The entity property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_entity? Entity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_entity Entity { get; set; } -#endif - /// The formDataContentDisposition property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_formDataContentDisposition? FormDataContentDisposition { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_formDataContentDisposition FormDataContentDisposition { get; set; } -#endif - /// The headers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_headers? Headers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_headers Headers { get; set; } -#endif - /// The mediaType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_mediaType? MediaType { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_mediaType MediaType { get; set; } -#endif - /// The messageBodyWorkers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_messageBodyWorkers? MessageBodyWorkers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_messageBodyWorkers MessageBodyWorkers { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The parameterizedHeaders property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parameterizedHeaders? ParameterizedHeaders { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parameterizedHeaders ParameterizedHeaders { get; set; } -#endif - /// The parent property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent? Parent { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent Parent { get; set; } -#endif - /// The providers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_providers? Providers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_providers Providers { get; set; } -#endif - /// The simple property - public bool? Simple { get; set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AttachmentPostRequestBody() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "contentDisposition", n => { ContentDisposition = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_contentDisposition.CreateFromDiscriminatorValue); } }, - { "entity", n => { Entity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_entity.CreateFromDiscriminatorValue); } }, - { "formDataContentDisposition", n => { FormDataContentDisposition = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_formDataContentDisposition.CreateFromDiscriminatorValue); } }, - { "headers", n => { Headers = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_headers.CreateFromDiscriminatorValue); } }, - { "mediaType", n => { MediaType = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_mediaType.CreateFromDiscriminatorValue); } }, - { "messageBodyWorkers", n => { MessageBodyWorkers = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_messageBodyWorkers.CreateFromDiscriminatorValue); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "parameterizedHeaders", n => { ParameterizedHeaders = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parameterizedHeaders.CreateFromDiscriminatorValue); } }, - { "parent", n => { Parent = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent.CreateFromDiscriminatorValue); } }, - { "providers", n => { Providers = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_providers.CreateFromDiscriminatorValue); } }, - { "simple", n => { Simple = n.GetBoolValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("contentDisposition", ContentDisposition); - writer.WriteObjectValue("entity", Entity); - writer.WriteObjectValue("formDataContentDisposition", FormDataContentDisposition); - writer.WriteObjectValue("headers", Headers); - writer.WriteObjectValue("mediaType", MediaType); - writer.WriteObjectValue("messageBodyWorkers", MessageBodyWorkers); - writer.WriteStringValue("name", Name); - writer.WriteObjectValue("parameterizedHeaders", ParameterizedHeaders); - writer.WriteObjectValue("parent", Parent); - writer.WriteObjectValue("providers", Providers); - writer.WriteBoolValue("simple", Simple); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_contentDisposition.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_contentDisposition.cs deleted file mode 100644 index 14b1263..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_contentDisposition.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_contentDisposition : 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 creationDate property - public DateTimeOffset? CreationDate { get; set; } - /// The fileName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileName { get; set; } -#nullable restore -#else - public string FileName { get; set; } -#endif - /// The modificationDate property - public DateTimeOffset? ModificationDate { get; set; } - /// The parameters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_contentDisposition_parameters? Parameters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_contentDisposition_parameters Parameters { get; set; } -#endif - /// The readDate property - public DateTimeOffset? ReadDate { get; set; } - /// The size property - public long? Size { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AttachmentPostRequestBody_contentDisposition() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_contentDisposition CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_contentDisposition(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "creationDate", n => { CreationDate = n.GetDateTimeOffsetValue(); } }, - { "fileName", n => { FileName = n.GetStringValue(); } }, - { "modificationDate", n => { ModificationDate = n.GetDateTimeOffsetValue(); } }, - { "parameters", n => { Parameters = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_contentDisposition_parameters.CreateFromDiscriminatorValue); } }, - { "readDate", n => { ReadDate = n.GetDateTimeOffsetValue(); } }, - { "size", n => { Size = n.GetLongValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDateTimeOffsetValue("creationDate", CreationDate); - writer.WriteStringValue("fileName", FileName); - writer.WriteDateTimeOffsetValue("modificationDate", ModificationDate); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteDateTimeOffsetValue("readDate", ReadDate); - writer.WriteLongValue("size", Size); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_contentDisposition_parameters.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_contentDisposition_parameters.cs deleted file mode 100644 index b21a0a4..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_contentDisposition_parameters.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_contentDisposition_parameters : 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. - /// - public AttachmentPostRequestBody_contentDisposition_parameters() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_contentDisposition_parameters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_contentDisposition_parameters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_entity.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_entity.cs deleted file mode 100644 index c00c065..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_entity.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_entity : 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. - /// - public AttachmentPostRequestBody_entity() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_entity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_entity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_formDataContentDisposition.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_formDataContentDisposition.cs deleted file mode 100644 index 067b7a5..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_formDataContentDisposition.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_formDataContentDisposition : 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 creationDate property - public DateTimeOffset? CreationDate { get; set; } - /// The fileName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileName { get; set; } -#nullable restore -#else - public string FileName { get; set; } -#endif - /// The modificationDate property - public DateTimeOffset? ModificationDate { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The parameters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_formDataContentDisposition_parameters? Parameters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_formDataContentDisposition_parameters Parameters { get; set; } -#endif - /// The readDate property - public DateTimeOffset? ReadDate { get; set; } - /// The size property - public long? Size { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AttachmentPostRequestBody_formDataContentDisposition() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_formDataContentDisposition CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_formDataContentDisposition(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "creationDate", n => { CreationDate = n.GetDateTimeOffsetValue(); } }, - { "fileName", n => { FileName = n.GetStringValue(); } }, - { "modificationDate", n => { ModificationDate = n.GetDateTimeOffsetValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "parameters", n => { Parameters = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_formDataContentDisposition_parameters.CreateFromDiscriminatorValue); } }, - { "readDate", n => { ReadDate = n.GetDateTimeOffsetValue(); } }, - { "size", n => { Size = n.GetLongValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDateTimeOffsetValue("creationDate", CreationDate); - writer.WriteStringValue("fileName", FileName); - writer.WriteDateTimeOffsetValue("modificationDate", ModificationDate); - writer.WriteStringValue("name", Name); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteDateTimeOffsetValue("readDate", ReadDate); - writer.WriteLongValue("size", Size); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_formDataContentDisposition_parameters.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_formDataContentDisposition_parameters.cs deleted file mode 100644 index 37cd0e0..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_formDataContentDisposition_parameters.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_formDataContentDisposition_parameters : 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. - /// - public AttachmentPostRequestBody_formDataContentDisposition_parameters() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_formDataContentDisposition_parameters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_formDataContentDisposition_parameters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_headers.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_headers.cs deleted file mode 100644 index f00fea7..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_headers : 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. - /// - public AttachmentPostRequestBody_headers() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_headers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_headers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_mediaType.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_mediaType.cs deleted file mode 100644 index 41e6bf4..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_mediaType.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_mediaType : 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 parameters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_mediaType_parameters? Parameters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_mediaType_parameters Parameters { get; set; } -#endif - /// The subtype property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subtype { get; set; } -#nullable restore -#else - public string Subtype { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// The wildcardSubtype property - public bool? WildcardSubtype { get; set; } - /// The wildcardType property - public bool? WildcardType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public AttachmentPostRequestBody_mediaType() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_mediaType CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_mediaType(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "parameters", n => { Parameters = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_mediaType_parameters.CreateFromDiscriminatorValue); } }, - { "subtype", n => { Subtype = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - { "wildcardSubtype", n => { WildcardSubtype = n.GetBoolValue(); } }, - { "wildcardType", n => { WildcardType = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteStringValue("subtype", Subtype); - writer.WriteStringValue("type", Type); - writer.WriteBoolValue("wildcardSubtype", WildcardSubtype); - writer.WriteBoolValue("wildcardType", WildcardType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_mediaType_parameters.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_mediaType_parameters.cs deleted file mode 100644 index fd0cec8..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_mediaType_parameters.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_mediaType_parameters : 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. - /// - public AttachmentPostRequestBody_mediaType_parameters() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_mediaType_parameters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_mediaType_parameters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_messageBodyWorkers.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_messageBodyWorkers.cs deleted file mode 100644 index 1a0ad7f..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_messageBodyWorkers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_messageBodyWorkers : 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. - /// - public AttachmentPostRequestBody_messageBodyWorkers() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_messageBodyWorkers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_messageBodyWorkers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parameterizedHeaders.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parameterizedHeaders.cs deleted file mode 100644 index 328ce5d..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parameterizedHeaders.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_parameterizedHeaders : 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. - /// - public AttachmentPostRequestBody_parameterizedHeaders() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parameterizedHeaders CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parameterizedHeaders(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent.cs deleted file mode 100644 index 24e1273..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using NinjaOne.Client.Models; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_parent : 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 bodyParts property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? BodyParts { get; set; } -#nullable restore -#else - public List BodyParts { get; set; } -#endif - /// The contentDisposition property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_contentDisposition? ContentDisposition { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_contentDisposition ContentDisposition { get; set; } -#endif - /// The entity property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_entity? Entity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_entity Entity { get; set; } -#endif - /// The headers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_headers? Headers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_headers Headers { get; set; } -#endif - /// The mediaType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_mediaType? MediaType { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_mediaType MediaType { get; set; } -#endif - /// The messageBodyWorkers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_messageBodyWorkers? MessageBodyWorkers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_messageBodyWorkers MessageBodyWorkers { get; set; } -#endif - /// The parameterizedHeaders property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_parameterizedHeaders? ParameterizedHeaders { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_parameterizedHeaders ParameterizedHeaders { get; set; } -#endif - /// The parent property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.Models.MultiPart? Parent { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.Models.MultiPart Parent { get; set; } -#endif - /// The providers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_providers? Providers { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_providers Providers { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AttachmentPostRequestBody_parent() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "bodyParts", n => { BodyParts = n.GetCollectionOfObjectValues(global::NinjaOne.Client.Models.BodyPart.CreateFromDiscriminatorValue)?.AsList(); } }, - { "contentDisposition", n => { ContentDisposition = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_contentDisposition.CreateFromDiscriminatorValue); } }, - { "entity", n => { Entity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_entity.CreateFromDiscriminatorValue); } }, - { "headers", n => { Headers = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_headers.CreateFromDiscriminatorValue); } }, - { "mediaType", n => { MediaType = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_mediaType.CreateFromDiscriminatorValue); } }, - { "messageBodyWorkers", n => { MessageBodyWorkers = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_messageBodyWorkers.CreateFromDiscriminatorValue); } }, - { "parameterizedHeaders", n => { ParameterizedHeaders = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_parameterizedHeaders.CreateFromDiscriminatorValue); } }, - { "parent", n => { Parent = n.GetObjectValue(global::NinjaOne.Client.Models.MultiPart.CreateFromDiscriminatorValue); } }, - { "providers", n => { Providers = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_providers.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("bodyParts", BodyParts); - writer.WriteObjectValue("contentDisposition", ContentDisposition); - writer.WriteObjectValue("entity", Entity); - writer.WriteObjectValue("headers", Headers); - writer.WriteObjectValue("mediaType", MediaType); - writer.WriteObjectValue("messageBodyWorkers", MessageBodyWorkers); - writer.WriteObjectValue("parameterizedHeaders", ParameterizedHeaders); - writer.WriteObjectValue("parent", Parent); - writer.WriteObjectValue("providers", Providers); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_contentDisposition.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_contentDisposition.cs deleted file mode 100644 index 9503a00..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_contentDisposition.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_parent_contentDisposition : 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 creationDate property - public DateTimeOffset? CreationDate { get; set; } - /// The fileName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileName { get; set; } -#nullable restore -#else - public string FileName { get; set; } -#endif - /// The modificationDate property - public DateTimeOffset? ModificationDate { get; set; } - /// The parameters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_contentDisposition_parameters? Parameters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_contentDisposition_parameters Parameters { get; set; } -#endif - /// The readDate property - public DateTimeOffset? ReadDate { get; set; } - /// The size property - public long? Size { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AttachmentPostRequestBody_parent_contentDisposition() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_contentDisposition CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_contentDisposition(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "creationDate", n => { CreationDate = n.GetDateTimeOffsetValue(); } }, - { "fileName", n => { FileName = n.GetStringValue(); } }, - { "modificationDate", n => { ModificationDate = n.GetDateTimeOffsetValue(); } }, - { "parameters", n => { Parameters = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_contentDisposition_parameters.CreateFromDiscriminatorValue); } }, - { "readDate", n => { ReadDate = n.GetDateTimeOffsetValue(); } }, - { "size", n => { Size = n.GetLongValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDateTimeOffsetValue("creationDate", CreationDate); - writer.WriteStringValue("fileName", FileName); - writer.WriteDateTimeOffsetValue("modificationDate", ModificationDate); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteDateTimeOffsetValue("readDate", ReadDate); - writer.WriteLongValue("size", Size); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_contentDisposition_parameters.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_contentDisposition_parameters.cs deleted file mode 100644 index 1ccd8f1..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_contentDisposition_parameters.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_parent_contentDisposition_parameters : 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. - /// - public AttachmentPostRequestBody_parent_contentDisposition_parameters() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_contentDisposition_parameters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_contentDisposition_parameters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_entity.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_entity.cs deleted file mode 100644 index 540aeb0..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_entity.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_parent_entity : 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. - /// - public AttachmentPostRequestBody_parent_entity() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_entity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_entity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_headers.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_headers.cs deleted file mode 100644 index cadd898..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_parent_headers : 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. - /// - public AttachmentPostRequestBody_parent_headers() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_headers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_headers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_mediaType.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_mediaType.cs deleted file mode 100644 index 2c427f3..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_mediaType.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_parent_mediaType : 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 parameters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_mediaType_parameters? Parameters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_mediaType_parameters Parameters { get; set; } -#endif - /// The subtype property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subtype { get; set; } -#nullable restore -#else - public string Subtype { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// The wildcardSubtype property - public bool? WildcardSubtype { get; set; } - /// The wildcardType property - public bool? WildcardType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public AttachmentPostRequestBody_parent_mediaType() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_mediaType CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_mediaType(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "parameters", n => { Parameters = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_mediaType_parameters.CreateFromDiscriminatorValue); } }, - { "subtype", n => { Subtype = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - { "wildcardSubtype", n => { WildcardSubtype = n.GetBoolValue(); } }, - { "wildcardType", n => { WildcardType = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteStringValue("subtype", Subtype); - writer.WriteStringValue("type", Type); - writer.WriteBoolValue("wildcardSubtype", WildcardSubtype); - writer.WriteBoolValue("wildcardType", WildcardType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_mediaType_parameters.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_mediaType_parameters.cs deleted file mode 100644 index 9f66162..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_mediaType_parameters.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_parent_mediaType_parameters : 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. - /// - public AttachmentPostRequestBody_parent_mediaType_parameters() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_mediaType_parameters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_mediaType_parameters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_messageBodyWorkers.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_messageBodyWorkers.cs deleted file mode 100644 index 7832bd5..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_messageBodyWorkers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_parent_messageBodyWorkers : 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. - /// - public AttachmentPostRequestBody_parent_messageBodyWorkers() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_messageBodyWorkers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_messageBodyWorkers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_parameterizedHeaders.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_parameterizedHeaders.cs deleted file mode 100644 index 5247689..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_parameterizedHeaders.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_parent_parameterizedHeaders : 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. - /// - public AttachmentPostRequestBody_parent_parameterizedHeaders() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_parameterizedHeaders CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_parameterizedHeaders(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_providers.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_providers.cs deleted file mode 100644 index 97b4026..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_parent_providers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_parent_providers : 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. - /// - public AttachmentPostRequestBody_parent_providers() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_providers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_parent_providers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_providers.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_providers.cs deleted file mode 100644 index c420cf9..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostRequestBody_providers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostRequestBody_providers : 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. - /// - public AttachmentPostRequestBody_providers() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_providers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostRequestBody_providers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse.cs deleted file mode 100644 index 8c28351..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentPostResponse : 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 identifier of the user who created the related item - public int? CreatedByAppUserId { get; set; } - /// Creation time - public double? CreateTime { get; set; } - /// Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_entity? Entity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_entity Entity { get; set; } -#endif - /// Entity Identifier - public int? EntityId { get; set; } - /// Entity Type - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_entityType? EntityType { get; set; } - /// Identifier - public int? Id { get; set; } - /// Related Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_relEntity? RelEntity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_relEntity RelEntity { get; set; } -#endif - /// Related Entity Identifier - public int? RelEntityId { get; set; } - /// Related Entity Type - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_relEntityType? RelEntityType { get; set; } - /// Type of Relation - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_type? Type { get; set; } - /// The identifier of the last user to update the related item - public int? UpdatedByAppUserId { get; set; } - /// Last update time - public double? UpdateTime { get; set; } - /// Related item value (Attachment meta data / Secure information) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_value Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AttachmentPostResponse() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "createdByAppUserId", n => { CreatedByAppUserId = n.GetIntValue(); } }, - { "entity", n => { Entity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_entity.CreateFromDiscriminatorValue); } }, - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "entityType", n => { EntityType = n.GetEnumValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "relEntity", n => { RelEntity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_relEntity.CreateFromDiscriminatorValue); } }, - { "relEntityId", n => { RelEntityId = n.GetIntValue(); } }, - { "relEntityType", n => { RelEntityType = n.GetEnumValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updatedByAppUserId", n => { UpdatedByAppUserId = n.GetIntValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_value.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("createdByAppUserId", CreatedByAppUserId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteObjectValue("entity", Entity); - writer.WriteIntValue("entityId", EntityId); - writer.WriteEnumValue("entityType", EntityType); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("relEntity", RelEntity); - writer.WriteIntValue("relEntityId", RelEntityId); - writer.WriteEnumValue("relEntityType", RelEntityType); - writer.WriteEnumValue("type", Type); - writer.WriteIntValue("updatedByAppUserId", UpdatedByAppUserId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteObjectValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_entity.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_entity.cs deleted file mode 100644 index 4b6c77f..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_entity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - /// - /// Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AttachmentPostResponse_entity : 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. - /// - public AttachmentPostResponse_entity() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_entity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_entity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_entityType.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_entityType.cs deleted file mode 100644 index e5a7a32..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_entityType.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - /// Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum AttachmentPostResponse_entityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_relEntity.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_relEntity.cs deleted file mode 100644 index c2d7463..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_relEntity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - /// - /// Related Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AttachmentPostResponse_relEntity : 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. - /// - public AttachmentPostResponse_relEntity() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_relEntity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_relEntity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_relEntityType.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_relEntityType.cs deleted file mode 100644 index 5ec4cb0..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_relEntityType.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - /// Related Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum AttachmentPostResponse_relEntityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL")] - #pragma warning disable CS1591 - CREDENTIAL, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT")] - #pragma warning disable CS1591 - CONTACT, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURE")] - #pragma warning disable CS1591 - SECURE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_type.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_type.cs deleted file mode 100644 index 62281a9..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_type.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - /// Type of Relation - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum AttachmentPostResponse_type - { - [EnumMember(Value = "VALUE")] - #pragma warning disable CS1591 - VALUE, - #pragma warning restore CS1591 - [EnumMember(Value = "ENTITY")] - #pragma warning disable CS1591 - ENTITY, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_value.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_value.cs deleted file mode 100644 index 97a3168..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentPostResponse_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - /// - /// Related item value (Attachment meta data / Secure information) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AttachmentPostResponse_value : 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. - /// - public AttachmentPostResponse_value() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentRequestBuilder.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentRequestBuilder.cs deleted file mode 100644 index 9f8fb52..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentRequestBuilder.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - /// - /// Builds and executes requests for operations under \v2\related-items\entity\{entityType}\{entityId}\attachment - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AttachmentRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public AttachmentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/entity/{entityType}/{entityId}/attachment", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public AttachmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/entity/{entityType}/{entityId}/attachment", rawUrl) - { - } - /// - /// Relate an attachment to an entity - /// - /// A - /// The request body - /// 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 PostAsAttachmentPostResponseAsync(MultipartBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsAttachmentPostResponseAsync(MultipartBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Relate an attachment to an entity - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsAttachmentPostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(MultipartBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(MultipartBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Relate an attachment to an entity - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(MultipartBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(MultipartBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "multipart/form-data", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AttachmentRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentResponse.cs b/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentResponse.cs deleted file mode 100644 index 37440cb..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Attachment/AttachmentResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment -{ - [Obsolete("This class is obsolete. Use AttachmentPostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AttachmentResponse : global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentPostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostRequestBody.cs b/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostRequestBody.cs deleted file mode 100644 index c1ab7c8..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostRequestBody.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RelationPostRequestBody : 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; } - /// Related Entity Identifier - public int? RelEntityId { get; set; } - /// Related Entity Type - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostRequestBody_relEntityType? RelEntityType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RelationPostRequestBody() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "relEntityId", n => { RelEntityId = n.GetIntValue(); } }, - { "relEntityType", n => { RelEntityType = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("relEntityId", RelEntityId); - writer.WriteEnumValue("relEntityType", RelEntityType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostRequestBody_relEntityType.cs b/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostRequestBody_relEntityType.cs deleted file mode 100644 index 57040ee..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostRequestBody_relEntityType.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation -{ - /// Related Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RelationPostRequestBody_relEntityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL")] - #pragma warning disable CS1591 - CREDENTIAL, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT")] - #pragma warning disable CS1591 - CONTACT, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse.cs b/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse.cs deleted file mode 100644 index 80a8d41..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RelationPostResponse : 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 identifier of the user who created the related item - public int? CreatedByAppUserId { get; set; } - /// Creation time - public double? CreateTime { get; set; } - /// Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_entity? Entity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_entity Entity { get; set; } -#endif - /// Entity Identifier - public int? EntityId { get; set; } - /// Entity Type - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_entityType? EntityType { get; set; } - /// Identifier - public int? Id { get; set; } - /// Related Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_relEntity? RelEntity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_relEntity RelEntity { get; set; } -#endif - /// Related Entity Identifier - public int? RelEntityId { get; set; } - /// Related Entity Type - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_relEntityType? RelEntityType { get; set; } - /// Type of Relation - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_type? Type { get; set; } - /// The identifier of the last user to update the related item - public int? UpdatedByAppUserId { get; set; } - /// Last update time - public double? UpdateTime { get; set; } - /// Related item value (Attachment meta data / Secure information) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_value Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RelationPostResponse() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "createdByAppUserId", n => { CreatedByAppUserId = n.GetIntValue(); } }, - { "entity", n => { Entity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_entity.CreateFromDiscriminatorValue); } }, - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "entityType", n => { EntityType = n.GetEnumValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "relEntity", n => { RelEntity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_relEntity.CreateFromDiscriminatorValue); } }, - { "relEntityId", n => { RelEntityId = n.GetIntValue(); } }, - { "relEntityType", n => { RelEntityType = n.GetEnumValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updatedByAppUserId", n => { UpdatedByAppUserId = n.GetIntValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_value.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("createdByAppUserId", CreatedByAppUserId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteObjectValue("entity", Entity); - writer.WriteIntValue("entityId", EntityId); - writer.WriteEnumValue("entityType", EntityType); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("relEntity", RelEntity); - writer.WriteIntValue("relEntityId", RelEntityId); - writer.WriteEnumValue("relEntityType", RelEntityType); - writer.WriteEnumValue("type", Type); - writer.WriteIntValue("updatedByAppUserId", UpdatedByAppUserId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteObjectValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_entity.cs b/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_entity.cs deleted file mode 100644 index ca54890..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_entity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation -{ - /// - /// Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RelationPostResponse_entity : 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. - /// - public RelationPostResponse_entity() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_entity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_entity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_entityType.cs b/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_entityType.cs deleted file mode 100644 index 0e7794e..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_entityType.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation -{ - /// Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RelationPostResponse_entityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_relEntity.cs b/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_relEntity.cs deleted file mode 100644 index baaabd9..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_relEntity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation -{ - /// - /// Related Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RelationPostResponse_relEntity : 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. - /// - public RelationPostResponse_relEntity() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_relEntity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_relEntity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_relEntityType.cs b/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_relEntityType.cs deleted file mode 100644 index af8b9ed..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_relEntityType.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation -{ - /// Related Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RelationPostResponse_relEntityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL")] - #pragma warning disable CS1591 - CREDENTIAL, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT")] - #pragma warning disable CS1591 - CONTACT, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURE")] - #pragma warning disable CS1591 - SECURE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_type.cs b/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_type.cs deleted file mode 100644 index 63d33ff..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_type.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation -{ - /// Type of Relation - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RelationPostResponse_type - { - [EnumMember(Value = "VALUE")] - #pragma warning disable CS1591 - VALUE, - #pragma warning restore CS1591 - [EnumMember(Value = "ENTITY")] - #pragma warning disable CS1591 - ENTITY, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_value.cs b/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_value.cs deleted file mode 100644 index f75f16b..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relation/RelationPostResponse_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation -{ - /// - /// Related item value (Attachment meta data / Secure information) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RelationPostResponse_value : 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. - /// - public RelationPostResponse_value() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Relation/RelationRequestBuilder.cs b/V2/RelatedItems/Entity/Item/Item/Relation/RelationRequestBuilder.cs deleted file mode 100644 index 1a375cf..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relation/RelationRequestBuilder.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation -{ - /// - /// Builds and executes requests for operations under \v2\related-items\entity\{entityType}\{entityId}\relation - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RelationRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RelationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/entity/{entityType}/{entityId}/relation", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RelationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/entity/{entityType}/{entityId}/relation", rawUrl) - { - } - /// - /// Create a relation between two entities - /// - /// A - /// The request body - /// 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 PostAsRelationPostResponseAsync(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsRelationPostResponseAsync(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create a relation between two entities - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsRelationPostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create a relation between two entities - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RelationRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Relation/RelationResponse.cs b/V2/RelatedItems/Entity/Item/Item/Relation/RelationResponse.cs deleted file mode 100644 index ab9bbea..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relation/RelationResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation -{ - [Obsolete("This class is obsolete. Use RelationPostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RelationResponse : global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationPostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Relations/Relations.cs b/V2/RelatedItems/Entity/Item/Item/Relations/Relations.cs deleted file mode 100644 index d40d2b8..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relations/Relations.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Relations : 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 identifier of the user who created the related item - public int? CreatedByAppUserId { get; set; } - /// Creation time - public double? CreateTime { get; set; } - /// Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_entity? Entity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_entity Entity { get; set; } -#endif - /// Entity Identifier - public int? EntityId { get; set; } - /// Entity Type - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_entityType? EntityType { get; set; } - /// Identifier - public int? Id { get; set; } - /// Related Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_relEntity? RelEntity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_relEntity RelEntity { get; set; } -#endif - /// Related Entity Identifier - public int? RelEntityId { get; set; } - /// Related Entity Type - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_relEntityType? RelEntityType { get; set; } - /// Type of Relation - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_type? Type { get; set; } - /// The identifier of the last user to update the related item - public int? UpdatedByAppUserId { get; set; } - /// Last update time - public double? UpdateTime { get; set; } - /// Related item value (Attachment meta data / Secure information) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_value Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Relations() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "createdByAppUserId", n => { CreatedByAppUserId = n.GetIntValue(); } }, - { "entity", n => { Entity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_entity.CreateFromDiscriminatorValue); } }, - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "entityType", n => { EntityType = n.GetEnumValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "relEntity", n => { RelEntity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_relEntity.CreateFromDiscriminatorValue); } }, - { "relEntityId", n => { RelEntityId = n.GetIntValue(); } }, - { "relEntityType", n => { RelEntityType = n.GetEnumValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updatedByAppUserId", n => { UpdatedByAppUserId = n.GetIntValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_value.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("createdByAppUserId", CreatedByAppUserId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteObjectValue("entity", Entity); - writer.WriteIntValue("entityId", EntityId); - writer.WriteEnumValue("entityType", EntityType); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("relEntity", RelEntity); - writer.WriteIntValue("relEntityId", RelEntityId); - writer.WriteEnumValue("relEntityType", RelEntityType); - writer.WriteEnumValue("type", Type); - writer.WriteIntValue("updatedByAppUserId", UpdatedByAppUserId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteObjectValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Relations/RelationsRequestBuilder.cs b/V2/RelatedItems/Entity/Item/Item/Relations/RelationsRequestBuilder.cs deleted file mode 100644 index fda64a8..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relations/RelationsRequestBuilder.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations -{ - /// - /// Builds and executes requests for operations under \v2\related-items\entity\{entityType}\{entityId}\relations - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RelationsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RelationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/entity/{entityType}/{entityId}/relations", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RelationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/entity/{entityType}/{entityId}/relations", rawUrl) - { - } - /// - /// Create multiple relations between two entities - /// - /// A List<global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations> - /// The request body - /// 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?> PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task> PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Create multiple relations between two entities - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.RelationsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.RelationsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RelationsRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Relations/Relations_entity.cs b/V2/RelatedItems/Entity/Item/Item/Relations/Relations_entity.cs deleted file mode 100644 index 42db82a..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relations/Relations_entity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations -{ - /// - /// Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Relations_entity : 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. - /// - public Relations_entity() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_entity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_entity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Relations/Relations_entityType.cs b/V2/RelatedItems/Entity/Item/Item/Relations/Relations_entityType.cs deleted file mode 100644 index e363e7c..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relations/Relations_entityType.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations -{ - /// Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Relations_entityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/Entity/Item/Item/Relations/Relations_relEntity.cs b/V2/RelatedItems/Entity/Item/Item/Relations/Relations_relEntity.cs deleted file mode 100644 index 812b357..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relations/Relations_relEntity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations -{ - /// - /// Related Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Relations_relEntity : 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. - /// - public Relations_relEntity() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_relEntity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_relEntity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Relations/Relations_relEntityType.cs b/V2/RelatedItems/Entity/Item/Item/Relations/Relations_relEntityType.cs deleted file mode 100644 index 02cf363..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relations/Relations_relEntityType.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations -{ - /// Related Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Relations_relEntityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL")] - #pragma warning disable CS1591 - CREDENTIAL, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT")] - #pragma warning disable CS1591 - CONTACT, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURE")] - #pragma warning disable CS1591 - SECURE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/Entity/Item/Item/Relations/Relations_type.cs b/V2/RelatedItems/Entity/Item/Item/Relations/Relations_type.cs deleted file mode 100644 index 954d50d..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relations/Relations_type.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations -{ - /// Type of Relation - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Relations_type - { - [EnumMember(Value = "VALUE")] - #pragma warning disable CS1591 - VALUE, - #pragma warning restore CS1591 - [EnumMember(Value = "ENTITY")] - #pragma warning disable CS1591 - ENTITY, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/Entity/Item/Item/Relations/Relations_value.cs b/V2/RelatedItems/Entity/Item/Item/Relations/Relations_value.cs deleted file mode 100644 index 614e392..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Relations/Relations_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations -{ - /// - /// Related item value (Attachment meta data / Secure information) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Relations_value : 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. - /// - public Relations_value() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.Relations_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostRequestBody.cs b/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostRequestBody.cs deleted file mode 100644 index a975f5e..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostRequestBody.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SecurePostRequestBody : 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; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Notes -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Notes { get; set; } -#nullable restore -#else - public string Notes { get; set; } -#endif - /// Password -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Password { get; set; } -#nullable restore -#else - public string Password { get; set; } -#endif - /// TOTP Secret -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TotpSecret { get; set; } -#nullable restore -#else - public string TotpSecret { get; set; } -#endif - /// URL -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Url { get; set; } -#nullable restore -#else - public string Url { get; set; } -#endif - /// Username -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Username { get; set; } -#nullable restore -#else - public string Username { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SecurePostRequestBody() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "name", n => { Name = n.GetStringValue(); } }, - { "notes", n => { Notes = n.GetStringValue(); } }, - { "password", n => { Password = n.GetStringValue(); } }, - { "totpSecret", n => { TotpSecret = n.GetStringValue(); } }, - { "url", n => { Url = n.GetStringValue(); } }, - { "username", n => { Username = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("notes", Notes); - writer.WriteStringValue("password", Password); - writer.WriteStringValue("totpSecret", TotpSecret); - writer.WriteStringValue("url", Url); - writer.WriteStringValue("username", Username); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse.cs b/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse.cs deleted file mode 100644 index 9aff52c..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SecurePostResponse : 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 identifier of the user who created the related item - public int? CreatedByAppUserId { get; set; } - /// Creation time - public double? CreateTime { get; set; } - /// Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_entity? Entity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_entity Entity { get; set; } -#endif - /// Entity Identifier - public int? EntityId { get; set; } - /// Entity Type - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_entityType? EntityType { get; set; } - /// Identifier - public int? Id { get; set; } - /// Related Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_relEntity? RelEntity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_relEntity RelEntity { get; set; } -#endif - /// Related Entity Identifier - public int? RelEntityId { get; set; } - /// Related Entity Type - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_relEntityType? RelEntityType { get; set; } - /// Type of Relation - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_type? Type { get; set; } - /// The identifier of the last user to update the related item - public int? UpdatedByAppUserId { get; set; } - /// Last update time - public double? UpdateTime { get; set; } - /// Related item value (Attachment meta data / Secure information) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_value Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SecurePostResponse() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "createdByAppUserId", n => { CreatedByAppUserId = n.GetIntValue(); } }, - { "entity", n => { Entity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_entity.CreateFromDiscriminatorValue); } }, - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "entityType", n => { EntityType = n.GetEnumValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "relEntity", n => { RelEntity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_relEntity.CreateFromDiscriminatorValue); } }, - { "relEntityId", n => { RelEntityId = n.GetIntValue(); } }, - { "relEntityType", n => { RelEntityType = n.GetEnumValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updatedByAppUserId", n => { UpdatedByAppUserId = n.GetIntValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_value.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("createdByAppUserId", CreatedByAppUserId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteObjectValue("entity", Entity); - writer.WriteIntValue("entityId", EntityId); - writer.WriteEnumValue("entityType", EntityType); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("relEntity", RelEntity); - writer.WriteIntValue("relEntityId", RelEntityId); - writer.WriteEnumValue("relEntityType", RelEntityType); - writer.WriteEnumValue("type", Type); - writer.WriteIntValue("updatedByAppUserId", UpdatedByAppUserId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteObjectValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_entity.cs b/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_entity.cs deleted file mode 100644 index ad65594..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_entity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure -{ - /// - /// Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SecurePostResponse_entity : 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. - /// - public SecurePostResponse_entity() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_entity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_entity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_entityType.cs b/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_entityType.cs deleted file mode 100644 index ea4c0c5..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_entityType.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure -{ - /// Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum SecurePostResponse_entityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_relEntity.cs b/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_relEntity.cs deleted file mode 100644 index 56fc984..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_relEntity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure -{ - /// - /// Related Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SecurePostResponse_relEntity : 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. - /// - public SecurePostResponse_relEntity() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_relEntity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_relEntity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_relEntityType.cs b/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_relEntityType.cs deleted file mode 100644 index 12efb9a..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_relEntityType.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure -{ - /// Related Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum SecurePostResponse_relEntityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL")] - #pragma warning disable CS1591 - CREDENTIAL, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT")] - #pragma warning disable CS1591 - CONTACT, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURE")] - #pragma warning disable CS1591 - SECURE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_type.cs b/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_type.cs deleted file mode 100644 index a862384..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_type.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure -{ - /// Type of Relation - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum SecurePostResponse_type - { - [EnumMember(Value = "VALUE")] - #pragma warning disable CS1591 - VALUE, - #pragma warning restore CS1591 - [EnumMember(Value = "ENTITY")] - #pragma warning disable CS1591 - ENTITY, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_value.cs b/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_value.cs deleted file mode 100644 index f0297ee..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Secure/SecurePostResponse_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure -{ - /// - /// Related item value (Attachment meta data / Secure information) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SecurePostResponse_value : 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. - /// - public SecurePostResponse_value() - { - 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::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Secure/SecureRequestBuilder.cs b/V2/RelatedItems/Entity/Item/Item/Secure/SecureRequestBuilder.cs deleted file mode 100644 index f9f0c26..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Secure/SecureRequestBuilder.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure -{ - /// - /// Builds and executes requests for operations under \v2\related-items\entity\{entityType}\{entityId}\secure - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SecureRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SecureRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/entity/{entityType}/{entityId}/secure", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SecureRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/entity/{entityType}/{entityId}/secure", rawUrl) - { - } - /// - /// Create a relation to a secure value - /// - /// A - /// The request body - /// 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 PostAsSecurePostResponseAsync(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsSecurePostResponseAsync(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create a relation to a secure value - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsSecurePostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecureResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create a relation to a secure value - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecureRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecureRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SecureRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/Secure/SecureResponse.cs b/V2/RelatedItems/Entity/Item/Item/Secure/SecureResponse.cs deleted file mode 100644 index 8e82bd0..0000000 --- a/V2/RelatedItems/Entity/Item/Item/Secure/SecureResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure -{ - [Obsolete("This class is obsolete. Use SecurePostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SecureResponse : global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecurePostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecureResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecureResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/Item/WithEntityItemRequestBuilder.cs b/V2/RelatedItems/Entity/Item/Item/WithEntityItemRequestBuilder.cs deleted file mode 100644 index 7e62f2a..0000000 --- a/V2/RelatedItems/Entity/Item/Item/WithEntityItemRequestBuilder.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment; -using NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation; -using NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations; -using NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item.Item -{ - /// - /// Builds and executes requests for operations under \v2\related-items\entity\{entityType}\{entityId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntityItemRequestBuilder : BaseRequestBuilder - { - /// The attachment property - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentRequestBuilder Attachment - { - get => new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Attachment.AttachmentRequestBuilder(PathParameters, RequestAdapter); - } - /// The relation property - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationRequestBuilder Relation - { - get => new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relation.RelationRequestBuilder(PathParameters, RequestAdapter); - } - /// The relations property - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.RelationsRequestBuilder Relations - { - get => new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Relations.RelationsRequestBuilder(PathParameters, RequestAdapter); - } - /// The secure property - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecureRequestBuilder Secure - { - get => new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.Secure.SecureRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithEntityItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/entity/{entityType}/{entityId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithEntityItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/entity/{entityType}/{entityId}", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Entity/Item/WithEntityTypeItemRequestBuilder.cs b/V2/RelatedItems/Entity/Item/WithEntityTypeItemRequestBuilder.cs deleted file mode 100644 index 73f11cd..0000000 --- a/V2/RelatedItems/Entity/Item/WithEntityTypeItemRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.RelatedItems.Entity.Item.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Entity.Item -{ - /// - /// Builds and executes requests for operations under \v2\related-items\entity\{entityType} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntityTypeItemRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.relatedItems.entity.item.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.WithEntityItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("entityId", position); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.WithEntityItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.relatedItems.entity.item.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.WithEntityItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("entityId", position); - return new global::NinjaOne.Client.V2.RelatedItems.Entity.Item.Item.WithEntityItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithEntityTypeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/entity/{entityType}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithEntityTypeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/entity/{entityType}", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Item/Attachment/AttachmentRequestBuilder.cs b/V2/RelatedItems/Item/Attachment/AttachmentRequestBuilder.cs deleted file mode 100644 index 1b3e37f..0000000 --- a/V2/RelatedItems/Item/Attachment/AttachmentRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.RelatedItems.Item.Attachment.Download; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Item.Attachment -{ - /// - /// Builds and executes requests for operations under \v2\related-items\{entityType-id}\attachment - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AttachmentRequestBuilder : BaseRequestBuilder - { - /// The download property - public global::NinjaOne.Client.V2.RelatedItems.Item.Attachment.Download.DownloadRequestBuilder Download - { - get => new global::NinjaOne.Client.V2.RelatedItems.Item.Attachment.Download.DownloadRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public AttachmentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/{entityType%2Did}/attachment", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public AttachmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/{entityType%2Did}/attachment", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Item/Attachment/Download/DownloadRequestBuilder.cs b/V2/RelatedItems/Item/Attachment/Download/DownloadRequestBuilder.cs deleted file mode 100644 index 9f9cfad..0000000 --- a/V2/RelatedItems/Item/Attachment/Download/DownloadRequestBuilder.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Item.Attachment.Download -{ - /// - /// Builds and executes requests for operations under \v2\related-items\{entityType-id}\attachment\download - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DownloadRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DownloadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/{entityType%2Did}/attachment/download", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DownloadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/{entityType%2Did}/attachment/download", rawUrl) - { - } - /// - /// Download related item attachment - /// - /// 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) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Download related item attachment - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.RelatedItems.Item.Attachment.Download.DownloadRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.RelatedItems.Item.Attachment.Download.DownloadRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DownloadRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Item/EntityTypeItemRequestBuilder.cs b/V2/RelatedItems/Item/EntityTypeItemRequestBuilder.cs deleted file mode 100644 index fd39cee..0000000 --- a/V2/RelatedItems/Item/EntityTypeItemRequestBuilder.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.RelatedItems.Item.Attachment; -using NinjaOne.Client.V2.RelatedItems.Item.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Item -{ - /// - /// Builds and executes requests for operations under \v2\related-items\{entityType-id} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EntityTypeItemRequestBuilder : BaseRequestBuilder - { - /// The attachment property - public global::NinjaOne.Client.V2.RelatedItems.Item.Attachment.AttachmentRequestBuilder Attachment - { - get => new global::NinjaOne.Client.V2.RelatedItems.Item.Attachment.AttachmentRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the NinjaOne.Client.v2.relatedItems.item.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.RelatedItems.Item.Item.WithEntityItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("entityId", position); - return new global::NinjaOne.Client.V2.RelatedItems.Item.Item.WithEntityItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.relatedItems.item.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.RelatedItems.Item.Item.WithEntityItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("entityId", position); - return new global::NinjaOne.Client.V2.RelatedItems.Item.Item.WithEntityItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public EntityTypeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/{entityType%2Did}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public EntityTypeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/{entityType%2Did}", rawUrl) - { - } - /// - /// Deletes related item - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Deletes related item - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.RelatedItems.Item.EntityTypeItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.RelatedItems.Item.EntityTypeItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EntityTypeItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/Item/Item/WithEntityItemRequestBuilder.cs b/V2/RelatedItems/Item/Item/WithEntityItemRequestBuilder.cs deleted file mode 100644 index 5da088e..0000000 --- a/V2/RelatedItems/Item/Item/WithEntityItemRequestBuilder.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.RelatedItems.Item.Item -{ - /// - /// Builds and executes requests for operations under \v2\related-items\{entityType-id}\{entityId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntityItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithEntityItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/{entityType%2Did}/{entityId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithEntityItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/{entityType%2Did}/{entityId}", rawUrl) - { - } - /// - /// Deletes related items associated with an entity - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Deletes related items associated with an entity - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.RelatedItems.Item.Item.WithEntityItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.RelatedItems.Item.Item.WithEntityItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntityItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/RelatedItems.cs b/V2/RelatedItems/RelatedItems.cs deleted file mode 100644 index 07c32bc..0000000 --- a/V2/RelatedItems/RelatedItems.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RelatedItems : 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 identifier of the user who created the related item - public int? CreatedByAppUserId { get; set; } - /// Creation time - public double? CreateTime { get; set; } - /// Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.RelatedItems_entity? Entity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.RelatedItems_entity Entity { get; set; } -#endif - /// Entity Identifier - public int? EntityId { get; set; } - /// Entity Type - public global::NinjaOne.Client.V2.RelatedItems.RelatedItems_entityType? EntityType { get; set; } - /// Identifier - public int? Id { get; set; } - /// Related Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.RelatedItems_relEntity? RelEntity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.RelatedItems_relEntity RelEntity { get; set; } -#endif - /// Related Entity Identifier - public int? RelEntityId { get; set; } - /// Related Entity Type - public global::NinjaOne.Client.V2.RelatedItems.RelatedItems_relEntityType? RelEntityType { get; set; } - /// Type of Relation - public global::NinjaOne.Client.V2.RelatedItems.RelatedItems_type? Type { get; set; } - /// The identifier of the last user to update the related item - public int? UpdatedByAppUserId { get; set; } - /// Last update time - public double? UpdateTime { get; set; } - /// Related item value (Attachment meta data / Secure information) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.RelatedItems_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.RelatedItems_value Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RelatedItems() - { - 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::NinjaOne.Client.V2.RelatedItems.RelatedItems CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.RelatedItems(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "createdByAppUserId", n => { CreatedByAppUserId = n.GetIntValue(); } }, - { "entity", n => { Entity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.RelatedItems_entity.CreateFromDiscriminatorValue); } }, - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "entityType", n => { EntityType = n.GetEnumValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "relEntity", n => { RelEntity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.RelatedItems_relEntity.CreateFromDiscriminatorValue); } }, - { "relEntityId", n => { RelEntityId = n.GetIntValue(); } }, - { "relEntityType", n => { RelEntityType = n.GetEnumValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updatedByAppUserId", n => { UpdatedByAppUserId = n.GetIntValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.RelatedItems_value.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("createdByAppUserId", CreatedByAppUserId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteObjectValue("entity", Entity); - writer.WriteIntValue("entityId", EntityId); - writer.WriteEnumValue("entityType", EntityType); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("relEntity", RelEntity); - writer.WriteIntValue("relEntityId", RelEntityId); - writer.WriteEnumValue("relEntityType", RelEntityType); - writer.WriteEnumValue("type", Type); - writer.WriteIntValue("updatedByAppUserId", UpdatedByAppUserId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteObjectValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/RelatedItemsRequestBuilder.cs b/V2/RelatedItems/RelatedItemsRequestBuilder.cs deleted file mode 100644 index 1dba5d6..0000000 --- a/V2/RelatedItems/RelatedItemsRequestBuilder.cs +++ /dev/null @@ -1,148 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.RelatedItems.Entity; -using NinjaOne.Client.V2.RelatedItems.Item; -using NinjaOne.Client.V2.RelatedItems.WithEntity; -using NinjaOne.Client.V2.RelatedItems.WithEntityType; -using NinjaOne.Client.V2.RelatedItems.WithRelatedEntity; -using NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.RelatedItems -{ - /// - /// Builds and executes requests for operations under \v2\related-items - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RelatedItemsRequestBuilder : BaseRequestBuilder - { - /// The entity property - public global::NinjaOne.Client.V2.RelatedItems.Entity.EntityRequestBuilder Entity - { - get => new global::NinjaOne.Client.V2.RelatedItems.Entity.EntityRequestBuilder(PathParameters, RequestAdapter); - } - /// The withEntity property - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.WithEntityRequestBuilder WithEntity - { - get => new global::NinjaOne.Client.V2.RelatedItems.WithEntity.WithEntityRequestBuilder(PathParameters, RequestAdapter); - } - /// The withEntityType property - public global::NinjaOne.Client.V2.RelatedItems.WithEntityType.WithEntityTypeRequestBuilder WithEntityType - { - get => new global::NinjaOne.Client.V2.RelatedItems.WithEntityType.WithEntityTypeRequestBuilder(PathParameters, RequestAdapter); - } - /// The withRelatedEntity property - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.WithRelatedEntityRequestBuilder WithRelatedEntity - { - get => new global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.WithRelatedEntityRequestBuilder(PathParameters, RequestAdapter); - } - /// The withRelatedEntityType property - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.WithRelatedEntityTypeRequestBuilder WithRelatedEntityType - { - get => new global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.WithRelatedEntityTypeRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the NinjaOne.Client.v2.relatedItems.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.RelatedItems.Item.EntityTypeItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("entityType%2Did", position); - return new global::NinjaOne.Client.V2.RelatedItems.Item.EntityTypeItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.relatedItems.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.RelatedItems.Item.EntityTypeItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("entityType%2Did", position); - return new global::NinjaOne.Client.V2.RelatedItems.Item.EntityTypeItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RelatedItemsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RelatedItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items", rawUrl) - { - } - /// - /// List all related items - /// - /// A List<global::NinjaOne.Client.V2.RelatedItems.RelatedItems> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.RelatedItems.RelatedItems.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// List all related items - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.RelatedItems.RelatedItemsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.RelatedItems.RelatedItemsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RelatedItemsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/RelatedItems_entity.cs b/V2/RelatedItems/RelatedItems_entity.cs deleted file mode 100644 index bd7fb8d..0000000 --- a/V2/RelatedItems/RelatedItems_entity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems -{ - /// - /// Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RelatedItems_entity : 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. - /// - public RelatedItems_entity() - { - 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::NinjaOne.Client.V2.RelatedItems.RelatedItems_entity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.RelatedItems_entity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/RelatedItems_entityType.cs b/V2/RelatedItems/RelatedItems_entityType.cs deleted file mode 100644 index a9d9aaf..0000000 --- a/V2/RelatedItems/RelatedItems_entityType.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems -{ - /// Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RelatedItems_entityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/RelatedItems_relEntity.cs b/V2/RelatedItems/RelatedItems_relEntity.cs deleted file mode 100644 index 143edbf..0000000 --- a/V2/RelatedItems/RelatedItems_relEntity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems -{ - /// - /// Related Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RelatedItems_relEntity : 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. - /// - public RelatedItems_relEntity() - { - 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::NinjaOne.Client.V2.RelatedItems.RelatedItems_relEntity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.RelatedItems_relEntity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/RelatedItems_relEntityType.cs b/V2/RelatedItems/RelatedItems_relEntityType.cs deleted file mode 100644 index 6176e1f..0000000 --- a/V2/RelatedItems/RelatedItems_relEntityType.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems -{ - /// Related Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RelatedItems_relEntityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL")] - #pragma warning disable CS1591 - CREDENTIAL, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT")] - #pragma warning disable CS1591 - CONTACT, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURE")] - #pragma warning disable CS1591 - SECURE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/RelatedItems_type.cs b/V2/RelatedItems/RelatedItems_type.cs deleted file mode 100644 index d770eb9..0000000 --- a/V2/RelatedItems/RelatedItems_type.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems -{ - /// Type of Relation - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum RelatedItems_type - { - [EnumMember(Value = "VALUE")] - #pragma warning disable CS1591 - VALUE, - #pragma warning restore CS1591 - [EnumMember(Value = "ENTITY")] - #pragma warning disable CS1591 - ENTITY, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/RelatedItems_value.cs b/V2/RelatedItems/RelatedItems_value.cs deleted file mode 100644 index df87eb6..0000000 --- a/V2/RelatedItems/RelatedItems_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems -{ - /// - /// Related item value (Attachment meta data / Secure information) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RelatedItems_value : 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. - /// - public RelatedItems_value() - { - 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::NinjaOne.Client.V2.RelatedItems.RelatedItems_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.RelatedItems_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithEntity/Item/Item/Attachments/AttachmentsRequestBuilder.cs b/V2/RelatedItems/WithEntity/Item/Item/Attachments/AttachmentsRequestBuilder.cs deleted file mode 100644 index 8feb88a..0000000 --- a/V2/RelatedItems/WithEntity/Item/Item/Attachments/AttachmentsRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.Attachments.SignedUrls; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.Attachments -{ - /// - /// Builds and executes requests for operations under \v2\related-items\with-entity\{entityType}\{entityId}\attachments - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AttachmentsRequestBuilder : BaseRequestBuilder - { - /// The signedUrls property - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.Attachments.SignedUrls.SignedUrlsRequestBuilder SignedUrls - { - get => new global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.Attachments.SignedUrls.SignedUrlsRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public AttachmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-entity/{entityType}/{entityId}/attachments", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-entity/{entityType}/{entityId}/attachments", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithEntity/Item/Item/Attachments/SignedUrls/SignedUrlsRequestBuilder.cs b/V2/RelatedItems/WithEntity/Item/Item/Attachments/SignedUrls/SignedUrlsRequestBuilder.cs deleted file mode 100644 index 9cfa654..0000000 --- a/V2/RelatedItems/WithEntity/Item/Item/Attachments/SignedUrls/SignedUrlsRequestBuilder.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.Attachments.SignedUrls -{ - /// - /// Builds and executes requests for operations under \v2\related-items\with-entity\{entityType}\{entityId}\attachments\signed-urls - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SignedUrlsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SignedUrlsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-entity/{entityType}/{entityId}/attachments/signed-urls", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SignedUrlsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-entity/{entityType}/{entityId}/attachments/signed-urls", rawUrl) - { - } - /// - /// Get related item attachments signed urls for an entity - /// - /// 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) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get related item attachments signed urls for an entity - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.Attachments.SignedUrls.SignedUrlsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.Attachments.SignedUrls.SignedUrlsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SignedUrlsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithEntity/Item/Item/GetScopeQueryParameterType.cs b/V2/RelatedItems/WithEntity/Item/Item/GetScopeQueryParameterType.cs deleted file mode 100644 index 08e80eb..0000000 --- a/V2/RelatedItems/WithEntity/Item/Item/GetScopeQueryParameterType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum GetScopeQueryParameterType - #pragma warning restore CS1591 - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "HOSTING")] - #pragma warning disable CS1591 - HOSTING, - #pragma warning restore CS1591 - [EnumMember(Value = "HOSTED_BY")] - #pragma warning disable CS1591 - HOSTED_BY, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/WithEntity/Item/Item/WithEntity.cs b/V2/RelatedItems/WithEntity/Item/Item/WithEntity.cs deleted file mode 100644 index 3e0cb24..0000000 --- a/V2/RelatedItems/WithEntity/Item/Item/WithEntity.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithEntity : 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 identifier of the user who created the related item - public int? CreatedByAppUserId { get; set; } - /// Creation time - public double? CreateTime { get; set; } - /// Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_entity? Entity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_entity Entity { get; set; } -#endif - /// Entity Identifier - public int? EntityId { get; set; } - /// Entity Type - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_entityType? EntityType { get; set; } - /// Identifier - public int? Id { get; set; } - /// Related Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_relEntity? RelEntity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_relEntity RelEntity { get; set; } -#endif - /// Related Entity Identifier - public int? RelEntityId { get; set; } - /// Related Entity Type - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_relEntityType? RelEntityType { get; set; } - /// Type of Relation - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_type? Type { get; set; } - /// The identifier of the last user to update the related item - public int? UpdatedByAppUserId { get; set; } - /// Last update time - public double? UpdateTime { get; set; } - /// Related item value (Attachment meta data / Secure information) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_value Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithEntity() - { - 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::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "createdByAppUserId", n => { CreatedByAppUserId = n.GetIntValue(); } }, - { "entity", n => { Entity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_entity.CreateFromDiscriminatorValue); } }, - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "entityType", n => { EntityType = n.GetEnumValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "relEntity", n => { RelEntity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_relEntity.CreateFromDiscriminatorValue); } }, - { "relEntityId", n => { RelEntityId = n.GetIntValue(); } }, - { "relEntityType", n => { RelEntityType = n.GetEnumValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updatedByAppUserId", n => { UpdatedByAppUserId = n.GetIntValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_value.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("createdByAppUserId", CreatedByAppUserId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteObjectValue("entity", Entity); - writer.WriteIntValue("entityId", EntityId); - writer.WriteEnumValue("entityType", EntityType); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("relEntity", RelEntity); - writer.WriteIntValue("relEntityId", RelEntityId); - writer.WriteEnumValue("relEntityType", RelEntityType); - writer.WriteEnumValue("type", Type); - writer.WriteIntValue("updatedByAppUserId", UpdatedByAppUserId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteObjectValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithEntity/Item/Item/WithEntityItemRequestBuilder.cs b/V2/RelatedItems/WithEntity/Item/Item/WithEntityItemRequestBuilder.cs deleted file mode 100644 index b0e010a..0000000 --- a/V2/RelatedItems/WithEntity/Item/Item/WithEntityItemRequestBuilder.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.Attachments; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item -{ - /// - /// Builds and executes requests for operations under \v2\related-items\with-entity\{entityType}\{entityId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntityItemRequestBuilder : BaseRequestBuilder - { - /// The attachments property - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.Attachments.AttachmentsRequestBuilder Attachments - { - get => new global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.Attachments.AttachmentsRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithEntityItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-entity/{entityType}/{entityId}{?scope*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithEntityItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-entity/{entityType}/{entityId}{?scope*}", rawUrl) - { - } - /// - /// List related items for a specific host entity filterable by scope - /// - /// A List<global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// List related items for a specific host entity filterable by scope - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntityItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntityItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// List related items for a specific host entity filterable by scope - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntityItemRequestBuilderGetQueryParameters - { - [Obsolete("This property is deprecated, use ScopeAsGetScopeQueryParameterType instead")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("scope")] - public string? Scope { get; set; } -#nullable restore -#else - [QueryParameter("scope")] - public string Scope { get; set; } -#endif - [QueryParameter("scope")] - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.GetScopeQueryParameterType? ScopeAsGetScopeQueryParameterType { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntityItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithEntity/Item/Item/WithEntity_entity.cs b/V2/RelatedItems/WithEntity/Item/Item/WithEntity_entity.cs deleted file mode 100644 index 3e7ce70..0000000 --- a/V2/RelatedItems/WithEntity/Item/Item/WithEntity_entity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item -{ - /// - /// Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntity_entity : 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. - /// - public WithEntity_entity() - { - 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::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_entity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_entity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithEntity/Item/Item/WithEntity_entityType.cs b/V2/RelatedItems/WithEntity/Item/Item/WithEntity_entityType.cs deleted file mode 100644 index 2fbf8ca..0000000 --- a/V2/RelatedItems/WithEntity/Item/Item/WithEntity_entityType.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item -{ - /// Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithEntity_entityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/WithEntity/Item/Item/WithEntity_relEntity.cs b/V2/RelatedItems/WithEntity/Item/Item/WithEntity_relEntity.cs deleted file mode 100644 index b9c8c43..0000000 --- a/V2/RelatedItems/WithEntity/Item/Item/WithEntity_relEntity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item -{ - /// - /// Related Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntity_relEntity : 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. - /// - public WithEntity_relEntity() - { - 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::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_relEntity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_relEntity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithEntity/Item/Item/WithEntity_relEntityType.cs b/V2/RelatedItems/WithEntity/Item/Item/WithEntity_relEntityType.cs deleted file mode 100644 index b6c89d8..0000000 --- a/V2/RelatedItems/WithEntity/Item/Item/WithEntity_relEntityType.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item -{ - /// Related Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithEntity_relEntityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL")] - #pragma warning disable CS1591 - CREDENTIAL, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT")] - #pragma warning disable CS1591 - CONTACT, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURE")] - #pragma warning disable CS1591 - SECURE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/WithEntity/Item/Item/WithEntity_type.cs b/V2/RelatedItems/WithEntity/Item/Item/WithEntity_type.cs deleted file mode 100644 index d85780c..0000000 --- a/V2/RelatedItems/WithEntity/Item/Item/WithEntity_type.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item -{ - /// Type of Relation - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithEntity_type - { - [EnumMember(Value = "VALUE")] - #pragma warning disable CS1591 - VALUE, - #pragma warning restore CS1591 - [EnumMember(Value = "ENTITY")] - #pragma warning disable CS1591 - ENTITY, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/WithEntity/Item/Item/WithEntity_value.cs b/V2/RelatedItems/WithEntity/Item/Item/WithEntity_value.cs deleted file mode 100644 index 5fba249..0000000 --- a/V2/RelatedItems/WithEntity/Item/Item/WithEntity_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item -{ - /// - /// Related item value (Attachment meta data / Secure information) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntity_value : 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. - /// - public WithEntity_value() - { - 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::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntity_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithEntity/Item/WithEntityTypeItemRequestBuilder.cs b/V2/RelatedItems/WithEntity/Item/WithEntityTypeItemRequestBuilder.cs deleted file mode 100644 index 410717e..0000000 --- a/V2/RelatedItems/WithEntity/Item/WithEntityTypeItemRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntity.Item -{ - /// - /// Builds and executes requests for operations under \v2\related-items\with-entity\{entityType} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntityTypeItemRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.relatedItems.withEntity.item.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntityItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("entityId", position); - return new global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntityItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.relatedItems.withEntity.item.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntityItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("entityId", position); - return new global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.Item.WithEntityItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithEntityTypeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-entity/{entityType}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithEntityTypeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-entity/{entityType}", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithEntity/WithEntityRequestBuilder.cs b/V2/RelatedItems/WithEntity/WithEntityRequestBuilder.cs deleted file mode 100644 index eed6a4b..0000000 --- a/V2/RelatedItems/WithEntity/WithEntityRequestBuilder.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.RelatedItems.WithEntity.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntity -{ - /// - /// Builds and executes requests for operations under \v2\related-items\with-entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntityRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.relatedItems.withEntity.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.WithEntityTypeItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("entityType", position); - return new global::NinjaOne.Client.V2.RelatedItems.WithEntity.Item.WithEntityTypeItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithEntityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-entity", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithEntityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-entity", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithEntityType/Item/WithEntityType.cs b/V2/RelatedItems/WithEntityType/Item/WithEntityType.cs deleted file mode 100644 index 87ac132..0000000 --- a/V2/RelatedItems/WithEntityType/Item/WithEntityType.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntityType.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithEntityType : 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 identifier of the user who created the related item - public int? CreatedByAppUserId { get; set; } - /// Creation time - public double? CreateTime { get; set; } - /// Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_entity? Entity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_entity Entity { get; set; } -#endif - /// Entity Identifier - public int? EntityId { get; set; } - /// Entity Type - public global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_entityType? EntityType { get; set; } - /// Identifier - public int? Id { get; set; } - /// Related Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_relEntity? RelEntity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_relEntity RelEntity { get; set; } -#endif - /// Related Entity Identifier - public int? RelEntityId { get; set; } - /// Related Entity Type - public global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_relEntityType? RelEntityType { get; set; } - /// Type of Relation - public global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_type? Type { get; set; } - /// The identifier of the last user to update the related item - public int? UpdatedByAppUserId { get; set; } - /// Last update time - public double? UpdateTime { get; set; } - /// Related item value (Attachment meta data / Secure information) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_value Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithEntityType() - { - 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::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "createdByAppUserId", n => { CreatedByAppUserId = n.GetIntValue(); } }, - { "entity", n => { Entity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_entity.CreateFromDiscriminatorValue); } }, - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "entityType", n => { EntityType = n.GetEnumValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "relEntity", n => { RelEntity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_relEntity.CreateFromDiscriminatorValue); } }, - { "relEntityId", n => { RelEntityId = n.GetIntValue(); } }, - { "relEntityType", n => { RelEntityType = n.GetEnumValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updatedByAppUserId", n => { UpdatedByAppUserId = n.GetIntValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_value.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("createdByAppUserId", CreatedByAppUserId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteObjectValue("entity", Entity); - writer.WriteIntValue("entityId", EntityId); - writer.WriteEnumValue("entityType", EntityType); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("relEntity", RelEntity); - writer.WriteIntValue("relEntityId", RelEntityId); - writer.WriteEnumValue("relEntityType", RelEntityType); - writer.WriteEnumValue("type", Type); - writer.WriteIntValue("updatedByAppUserId", UpdatedByAppUserId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteObjectValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithEntityType/Item/WithEntityTypeItemRequestBuilder.cs b/V2/RelatedItems/WithEntityType/Item/WithEntityTypeItemRequestBuilder.cs deleted file mode 100644 index fe0c8b7..0000000 --- a/V2/RelatedItems/WithEntityType/Item/WithEntityTypeItemRequestBuilder.cs +++ /dev/null @@ -1,92 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntityType.Item -{ - /// - /// Builds and executes requests for operations under \v2\related-items\with-entity-type\{entityType} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntityTypeItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithEntityTypeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-entity-type/{entityType}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithEntityTypeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-entity-type/{entityType}", rawUrl) - { - } - /// - /// List relations and references for a host entity type - /// - /// A List<global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// List relations and references for a host entity type - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityTypeItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityTypeItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntityTypeItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithEntityType/Item/WithEntityType_entity.cs b/V2/RelatedItems/WithEntityType/Item/WithEntityType_entity.cs deleted file mode 100644 index 54bf1fe..0000000 --- a/V2/RelatedItems/WithEntityType/Item/WithEntityType_entity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntityType.Item -{ - /// - /// Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntityType_entity : 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. - /// - public WithEntityType_entity() - { - 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::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_entity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_entity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithEntityType/Item/WithEntityType_entityType.cs b/V2/RelatedItems/WithEntityType/Item/WithEntityType_entityType.cs deleted file mode 100644 index 17b8b7c..0000000 --- a/V2/RelatedItems/WithEntityType/Item/WithEntityType_entityType.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntityType.Item -{ - /// Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithEntityType_entityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/WithEntityType/Item/WithEntityType_relEntity.cs b/V2/RelatedItems/WithEntityType/Item/WithEntityType_relEntity.cs deleted file mode 100644 index 07ab4fa..0000000 --- a/V2/RelatedItems/WithEntityType/Item/WithEntityType_relEntity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntityType.Item -{ - /// - /// Related Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntityType_relEntity : 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. - /// - public WithEntityType_relEntity() - { - 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::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_relEntity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_relEntity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithEntityType/Item/WithEntityType_relEntityType.cs b/V2/RelatedItems/WithEntityType/Item/WithEntityType_relEntityType.cs deleted file mode 100644 index 568943d..0000000 --- a/V2/RelatedItems/WithEntityType/Item/WithEntityType_relEntityType.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntityType.Item -{ - /// Related Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithEntityType_relEntityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL")] - #pragma warning disable CS1591 - CREDENTIAL, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT")] - #pragma warning disable CS1591 - CONTACT, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURE")] - #pragma warning disable CS1591 - SECURE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/WithEntityType/Item/WithEntityType_type.cs b/V2/RelatedItems/WithEntityType/Item/WithEntityType_type.cs deleted file mode 100644 index 5e78d72..0000000 --- a/V2/RelatedItems/WithEntityType/Item/WithEntityType_type.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntityType.Item -{ - /// Type of Relation - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithEntityType_type - { - [EnumMember(Value = "VALUE")] - #pragma warning disable CS1591 - VALUE, - #pragma warning restore CS1591 - [EnumMember(Value = "ENTITY")] - #pragma warning disable CS1591 - ENTITY, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/WithEntityType/Item/WithEntityType_value.cs b/V2/RelatedItems/WithEntityType/Item/WithEntityType_value.cs deleted file mode 100644 index c0f0353..0000000 --- a/V2/RelatedItems/WithEntityType/Item/WithEntityType_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntityType.Item -{ - /// - /// Related item value (Attachment meta data / Secure information) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntityType_value : 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. - /// - public WithEntityType_value() - { - 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::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityType_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithEntityType/WithEntityTypeRequestBuilder.cs b/V2/RelatedItems/WithEntityType/WithEntityTypeRequestBuilder.cs deleted file mode 100644 index c2579f5..0000000 --- a/V2/RelatedItems/WithEntityType/WithEntityTypeRequestBuilder.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.RelatedItems.WithEntityType.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithEntityType -{ - /// - /// Builds and executes requests for operations under \v2\related-items\with-entity-type - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithEntityTypeRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.relatedItems.withEntityType.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityTypeItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("entityType", position); - return new global::NinjaOne.Client.V2.RelatedItems.WithEntityType.Item.WithEntityTypeItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithEntityTypeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-entity-type", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithEntityTypeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-entity-type", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity.cs b/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity.cs deleted file mode 100644 index 5e9dc74..0000000 --- a/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithRelEntity : 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 identifier of the user who created the related item - public int? CreatedByAppUserId { get; set; } - /// Creation time - public double? CreateTime { get; set; } - /// Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_entity? Entity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_entity Entity { get; set; } -#endif - /// Entity Identifier - public int? EntityId { get; set; } - /// Entity Type - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_entityType? EntityType { get; set; } - /// Identifier - public int? Id { get; set; } - /// Related Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_relEntity? RelEntity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_relEntity RelEntity { get; set; } -#endif - /// Related Entity Identifier - public int? RelEntityId { get; set; } - /// Related Entity Type - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_relEntityType? RelEntityType { get; set; } - /// Type of Relation - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_type? Type { get; set; } - /// The identifier of the last user to update the related item - public int? UpdatedByAppUserId { get; set; } - /// Last update time - public double? UpdateTime { get; set; } - /// Related item value (Attachment meta data / Secure information) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_value Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithRelEntity() - { - 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::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "createdByAppUserId", n => { CreatedByAppUserId = n.GetIntValue(); } }, - { "entity", n => { Entity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_entity.CreateFromDiscriminatorValue); } }, - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "entityType", n => { EntityType = n.GetEnumValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "relEntity", n => { RelEntity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_relEntity.CreateFromDiscriminatorValue); } }, - { "relEntityId", n => { RelEntityId = n.GetIntValue(); } }, - { "relEntityType", n => { RelEntityType = n.GetEnumValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updatedByAppUserId", n => { UpdatedByAppUserId = n.GetIntValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_value.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("createdByAppUserId", CreatedByAppUserId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteObjectValue("entity", Entity); - writer.WriteIntValue("entityId", EntityId); - writer.WriteEnumValue("entityType", EntityType); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("relEntity", RelEntity); - writer.WriteIntValue("relEntityId", RelEntityId); - writer.WriteEnumValue("relEntityType", RelEntityType); - writer.WriteEnumValue("type", Type); - writer.WriteIntValue("updatedByAppUserId", UpdatedByAppUserId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteObjectValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntityItemRequestBuilder.cs b/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntityItemRequestBuilder.cs deleted file mode 100644 index bfad1a6..0000000 --- a/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntityItemRequestBuilder.cs +++ /dev/null @@ -1,92 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item -{ - /// - /// Builds and executes requests for operations under \v2\related-items\with-related-entity\{relEntityType}\{relEntityId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRelEntityItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithRelEntityItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-related-entity/{relEntityType}/{relEntityId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithRelEntityItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-related-entity/{relEntityType}/{relEntityId}", rawUrl) - { - } - /// - /// List related items for a specific related entity - /// - /// A List<global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// List related items for a specific related entity - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntityItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntityItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRelEntityItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_entity.cs b/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_entity.cs deleted file mode 100644 index 35a22f6..0000000 --- a/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_entity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item -{ - /// - /// Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRelEntity_entity : 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. - /// - public WithRelEntity_entity() - { - 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::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_entity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_entity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_entityType.cs b/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_entityType.cs deleted file mode 100644 index c00d19c..0000000 --- a/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_entityType.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item -{ - /// Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithRelEntity_entityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_relEntity.cs b/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_relEntity.cs deleted file mode 100644 index 474fa1a..0000000 --- a/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_relEntity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item -{ - /// - /// Related Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRelEntity_relEntity : 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. - /// - public WithRelEntity_relEntity() - { - 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::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_relEntity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_relEntity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_relEntityType.cs b/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_relEntityType.cs deleted file mode 100644 index d6d4ed9..0000000 --- a/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_relEntityType.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item -{ - /// Related Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithRelEntity_relEntityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL")] - #pragma warning disable CS1591 - CREDENTIAL, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT")] - #pragma warning disable CS1591 - CONTACT, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURE")] - #pragma warning disable CS1591 - SECURE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_type.cs b/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_type.cs deleted file mode 100644 index f44d14f..0000000 --- a/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_type.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item -{ - /// Type of Relation - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithRelEntity_type - { - [EnumMember(Value = "VALUE")] - #pragma warning disable CS1591 - VALUE, - #pragma warning restore CS1591 - [EnumMember(Value = "ENTITY")] - #pragma warning disable CS1591 - ENTITY, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_value.cs b/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_value.cs deleted file mode 100644 index b246c5f..0000000 --- a/V2/RelatedItems/WithRelatedEntity/Item/Item/WithRelEntity_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item -{ - /// - /// Related item value (Attachment meta data / Secure information) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRelEntity_value : 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. - /// - public WithRelEntity_value() - { - 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::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntity_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithRelatedEntity/Item/WithRelEntityTypeItemRequestBuilder.cs b/V2/RelatedItems/WithRelatedEntity/Item/WithRelEntityTypeItemRequestBuilder.cs deleted file mode 100644 index c95ecaf..0000000 --- a/V2/RelatedItems/WithRelatedEntity/Item/WithRelEntityTypeItemRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item -{ - /// - /// Builds and executes requests for operations under \v2\related-items\with-related-entity\{relEntityType} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRelEntityTypeItemRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.relatedItems.withRelatedEntity.item.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntityItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("relEntityId", position); - return new global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntityItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.relatedItems.withRelatedEntity.item.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntityItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("relEntityId", position); - return new global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.Item.WithRelEntityItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithRelEntityTypeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-related-entity/{relEntityType}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithRelEntityTypeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-related-entity/{relEntityType}", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithRelatedEntity/WithRelatedEntityRequestBuilder.cs b/V2/RelatedItems/WithRelatedEntity/WithRelatedEntityRequestBuilder.cs deleted file mode 100644 index fcb2b70..0000000 --- a/V2/RelatedItems/WithRelatedEntity/WithRelatedEntityRequestBuilder.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntity -{ - /// - /// Builds and executes requests for operations under \v2\related-items\with-related-entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRelatedEntityRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.relatedItems.withRelatedEntity.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.WithRelEntityTypeItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("relEntityType", position); - return new global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntity.Item.WithRelEntityTypeItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithRelatedEntityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-related-entity", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithRelatedEntityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-related-entity", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType.cs b/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType.cs deleted file mode 100644 index 3e89369..0000000 --- a/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithRelatedEntityType : 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 identifier of the user who created the related item - public int? CreatedByAppUserId { get; set; } - /// Creation time - public double? CreateTime { get; set; } - /// Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_entity? Entity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_entity Entity { get; set; } -#endif - /// Entity Identifier - public int? EntityId { get; set; } - /// Entity Type - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_entityType? EntityType { get; set; } - /// Identifier - public int? Id { get; set; } - /// Related Entity -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_relEntity? RelEntity { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_relEntity RelEntity { get; set; } -#endif - /// Related Entity Identifier - public int? RelEntityId { get; set; } - /// Related Entity Type - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_relEntityType? RelEntityType { get; set; } - /// Type of Relation - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_type? Type { get; set; } - /// The identifier of the last user to update the related item - public int? UpdatedByAppUserId { get; set; } - /// Last update time - public double? UpdateTime { get; set; } - /// Related item value (Attachment meta data / Secure information) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_value Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithRelatedEntityType() - { - 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::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "createdByAppUserId", n => { CreatedByAppUserId = n.GetIntValue(); } }, - { "entity", n => { Entity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_entity.CreateFromDiscriminatorValue); } }, - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "entityType", n => { EntityType = n.GetEnumValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "relEntity", n => { RelEntity = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_relEntity.CreateFromDiscriminatorValue); } }, - { "relEntityId", n => { RelEntityId = n.GetIntValue(); } }, - { "relEntityType", n => { RelEntityType = n.GetEnumValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updatedByAppUserId", n => { UpdatedByAppUserId = n.GetIntValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_value.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("createdByAppUserId", CreatedByAppUserId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteObjectValue("entity", Entity); - writer.WriteIntValue("entityId", EntityId); - writer.WriteEnumValue("entityType", EntityType); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("relEntity", RelEntity); - writer.WriteIntValue("relEntityId", RelEntityId); - writer.WriteEnumValue("relEntityType", RelEntityType); - writer.WriteEnumValue("type", Type); - writer.WriteIntValue("updatedByAppUserId", UpdatedByAppUserId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteObjectValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityTypeItemRequestBuilder.cs b/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityTypeItemRequestBuilder.cs deleted file mode 100644 index 3a877b4..0000000 --- a/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityTypeItemRequestBuilder.cs +++ /dev/null @@ -1,92 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item -{ - /// - /// Builds and executes requests for operations under \v2\related-items\with-related-entity-type\{relatedEntityType} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRelatedEntityTypeItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithRelatedEntityTypeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-related-entity-type/{relatedEntityType}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithRelatedEntityTypeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-related-entity-type/{relatedEntityType}", rawUrl) - { - } - /// - /// List related entities for a related entity type - /// - /// A List<global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// List related entities for a related entity type - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityTypeItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityTypeItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRelatedEntityTypeItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_entity.cs b/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_entity.cs deleted file mode 100644 index efede56..0000000 --- a/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_entity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item -{ - /// - /// Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRelatedEntityType_entity : 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. - /// - public WithRelatedEntityType_entity() - { - 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::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_entity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_entity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_entityType.cs b/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_entityType.cs deleted file mode 100644 index d5029e6..0000000 --- a/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_entityType.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item -{ - /// Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithRelatedEntityType_entityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_relEntity.cs b/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_relEntity.cs deleted file mode 100644 index 66777d9..0000000 --- a/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_relEntity.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item -{ - /// - /// Related Entity - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRelatedEntityType_relEntity : 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. - /// - public WithRelatedEntityType_relEntity() - { - 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::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_relEntity CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_relEntity(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_relEntityType.cs b/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_relEntityType.cs deleted file mode 100644 index b90be57..0000000 --- a/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_relEntityType.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item -{ - /// Related Entity Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithRelatedEntityType_relEntityType - { - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "CREDENTIAL")] - #pragma warning disable CS1591 - CREDENTIAL, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKLIST")] - #pragma warning disable CS1591 - CHECKLIST, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT")] - #pragma warning disable CS1591 - CONTACT, - #pragma warning restore CS1591 - [EnumMember(Value = "KB_DOCUMENT")] - #pragma warning disable CS1591 - KB_DOCUMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_LICENSE")] - #pragma warning disable CS1591 - SOFTWARE_LICENSE, - #pragma warning restore CS1591 - [EnumMember(Value = "SECURE")] - #pragma warning disable CS1591 - SECURE, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_type.cs b/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_type.cs deleted file mode 100644 index 09251e9..0000000 --- a/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_type.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item -{ - /// Type of Relation - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithRelatedEntityType_type - { - [EnumMember(Value = "VALUE")] - #pragma warning disable CS1591 - VALUE, - #pragma warning restore CS1591 - [EnumMember(Value = "ENTITY")] - #pragma warning disable CS1591 - ENTITY, - #pragma warning restore CS1591 - } -} diff --git a/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_value.cs b/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_value.cs deleted file mode 100644 index a2820de..0000000 --- a/V2/RelatedItems/WithRelatedEntityType/Item/WithRelatedEntityType_value.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item -{ - /// - /// Related item value (Attachment meta data / Secure information) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRelatedEntityType_value : 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. - /// - public WithRelatedEntityType_value() - { - 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::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityType_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/RelatedItems/WithRelatedEntityType/WithRelatedEntityTypeRequestBuilder.cs b/V2/RelatedItems/WithRelatedEntityType/WithRelatedEntityTypeRequestBuilder.cs deleted file mode 100644 index b7606bd..0000000 --- a/V2/RelatedItems/WithRelatedEntityType/WithRelatedEntityTypeRequestBuilder.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType -{ - /// - /// Builds and executes requests for operations under \v2\related-items\with-related-entity-type - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRelatedEntityTypeRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.relatedItems.withRelatedEntityType.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityTypeItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("relatedEntityType", position); - return new global::NinjaOne.Client.V2.RelatedItems.WithRelatedEntityType.Item.WithRelatedEntityTypeItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithRelatedEntityTypeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-related-entity-type", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithRelatedEntityTypeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/related-items/with-related-entity-type", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Roles/Roles.cs b/V2/Roles/Roles.cs deleted file mode 100644 index 43bf187..0000000 --- a/V2/Roles/Roles.cs +++ /dev/null @@ -1,133 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Roles -{ - /// - /// Device Role - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Roles : ApiException, 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; } - /// Chassis Type - public global::NinjaOne.Client.V2.Roles.Roles_chassisType? ChassisType { get; set; } - /// Date created - public double? Created { get; set; } - /// Is custom node role? - public bool? Custom { get; set; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Roles.Roles_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Roles.Roles_fields Fields { get; set; } -#endif - /// Icon -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Icon { get; set; } -#nullable restore -#else - public string Icon { get; set; } -#endif - /// Device Role identifier - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Node Class - public global::NinjaOne.Client.V2.Roles.Roles_nodeClass? NodeClass { get; set; } - /// Node Role Parent Id - public int? NodeRoleParentId { get; set; } - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Roles() - { - 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::NinjaOne.Client.V2.Roles.Roles CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Roles.Roles(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "chassisType", n => { ChassisType = n.GetEnumValue(); } }, - { "created", n => { Created = n.GetDoubleValue(); } }, - { "custom", n => { Custom = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Roles.Roles_fields.CreateFromDiscriminatorValue); } }, - { "icon", n => { Icon = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nodeClass", n => { NodeClass = n.GetEnumValue(); } }, - { "nodeRoleParentId", n => { NodeRoleParentId = n.GetIntValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("chassisType", ChassisType); - writer.WriteDoubleValue("created", Created); - writer.WriteBoolValue("custom", Custom); - writer.WriteStringValue("description", Description); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("icon", Icon); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("nodeClass", NodeClass); - writer.WriteIntValue("nodeRoleParentId", NodeRoleParentId); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Roles/RolesRequestBuilder.cs b/V2/Roles/RolesRequestBuilder.cs deleted file mode 100644 index de224d5..0000000 --- a/V2/Roles/RolesRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Roles -{ - /// - /// Builds and executes requests for operations under \v2\roles - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RolesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RolesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/roles", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/roles", rawUrl) - { - } - /// - /// Returns list of device roles - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Roles.Roles.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of device roles - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Roles.RolesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Roles.RolesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RolesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Roles/Roles_chassisType.cs b/V2/Roles/Roles_chassisType.cs deleted file mode 100644 index 217c88c..0000000 --- a/V2/Roles/Roles_chassisType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Roles -{ - /// Chassis Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Roles_chassisType - { - [EnumMember(Value = "UNKNOWN")] - #pragma warning disable CS1591 - UNKNOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "DESKTOP")] - #pragma warning disable CS1591 - DESKTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "LAPTOP")] - #pragma warning disable CS1591 - LAPTOP, - #pragma warning restore CS1591 - [EnumMember(Value = "MOBILE")] - #pragma warning disable CS1591 - MOBILE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Roles/Roles_fields.cs b/V2/Roles/Roles_fields.cs deleted file mode 100644 index aa65860..0000000 --- a/V2/Roles/Roles_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Roles -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Roles_fields : 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. - /// - public Roles_fields() - { - 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::NinjaOne.Client.V2.Roles.Roles_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Roles.Roles_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Roles/Roles_nodeClass.cs b/V2/Roles/Roles_nodeClass.cs deleted file mode 100644 index 53a684e..0000000 --- a/V2/Roles/Roles_nodeClass.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Roles -{ - /// Node Class - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Roles_nodeClass - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/Item/WithLicenseGetResponse.cs b/V2/SoftwareLicense/Item/WithLicenseGetResponse.cs deleted file mode 100644 index 56b4a1d..0000000 --- a/V2/SoftwareLicense/Item/WithLicenseGetResponse.cs +++ /dev/null @@ -1,177 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicenseGetResponse : 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 assigmentAutomationSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_assigmentAutomationSettings? AssigmentAutomationSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_assigmentAutomationSettings AssigmentAutomationSettings { get; set; } -#endif - /// The assignedLicenses property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedLicenses { get; set; } -#nullable restore -#else - public List AssignedLicenses { get; set; } -#endif - /// The automated property - public bool? Automated { get; set; } - /// The characterLimit property - public int? CharacterLimit { get; set; } - /// The currentUsage property - public int? CurrentUsage { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The note property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Note { get; set; } -#nullable restore -#else - public string Note { get; set; } -#endif - /// The notificationChannelInfo property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_notificationChannelInfo? NotificationChannelInfo { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_notificationChannelInfo NotificationChannelInfo { get; set; } -#endif - /// The publisherId property - public int? PublisherId { get; set; } - /// The purchaseDate property - public long? PurchaseDate { get; set; } - /// The quantity property - public int? Quantity { get; set; } - /// The scope property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_scope? Scope { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_scope Scope { get; set; } -#endif - /// The term property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_term? Term { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_term Term { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_type? Type { get; set; } - /// The unassignedLicenses property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? UnassignedLicenses { get; set; } -#nullable restore -#else - public List UnassignedLicenses { get; set; } -#endif - /// The vendorId property - public int? VendorId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithLicenseGetResponse() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assigmentAutomationSettings", n => { AssigmentAutomationSettings = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_assigmentAutomationSettings.CreateFromDiscriminatorValue); } }, - { "assignedLicenses", n => { AssignedLicenses = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "automated", n => { Automated = n.GetBoolValue(); } }, - { "characterLimit", n => { CharacterLimit = n.GetIntValue(); } }, - { "currentUsage", n => { CurrentUsage = n.GetIntValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "note", n => { Note = n.GetStringValue(); } }, - { "notificationChannelInfo", n => { NotificationChannelInfo = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_notificationChannelInfo.CreateFromDiscriminatorValue); } }, - { "publisherId", n => { PublisherId = n.GetIntValue(); } }, - { "purchaseDate", n => { PurchaseDate = n.GetLongValue(); } }, - { "quantity", n => { Quantity = n.GetIntValue(); } }, - { "scope", n => { Scope = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_scope.CreateFromDiscriminatorValue); } }, - { "term", n => { Term = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_term.CreateFromDiscriminatorValue); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "unassignedLicenses", n => { UnassignedLicenses = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "vendorId", n => { VendorId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assigmentAutomationSettings", AssigmentAutomationSettings); - writer.WriteCollectionOfPrimitiveValues("assignedLicenses", AssignedLicenses); - writer.WriteBoolValue("automated", Automated); - writer.WriteIntValue("characterLimit", CharacterLimit); - writer.WriteIntValue("currentUsage", CurrentUsage); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("note", Note); - writer.WriteObjectValue("notificationChannelInfo", NotificationChannelInfo); - writer.WriteIntValue("publisherId", PublisherId); - writer.WriteLongValue("purchaseDate", PurchaseDate); - writer.WriteIntValue("quantity", Quantity); - writer.WriteObjectValue("scope", Scope); - writer.WriteObjectValue("term", Term); - writer.WriteEnumValue("type", Type); - writer.WriteCollectionOfPrimitiveValues("unassignedLicenses", UnassignedLicenses); - writer.WriteIntValue("vendorId", VendorId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicenseGetResponse_assigmentAutomationSettings.cs b/V2/SoftwareLicense/Item/WithLicenseGetResponse_assigmentAutomationSettings.cs deleted file mode 100644 index c0a92cf..0000000 --- a/V2/SoftwareLicense/Item/WithLicenseGetResponse_assigmentAutomationSettings.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicenseGetResponse_assigmentAutomationSettings : 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 assignmentType property - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_assigmentAutomationSettings_assignmentType? AssignmentType { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithLicenseGetResponse_assigmentAutomationSettings() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_assigmentAutomationSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_assigmentAutomationSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignmentType", n => { AssignmentType = n.GetEnumValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignmentType", AssignmentType); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicenseGetResponse_assigmentAutomationSettings_assignmentType.cs b/V2/SoftwareLicense/Item/WithLicenseGetResponse_assigmentAutomationSettings_assignmentType.cs deleted file mode 100644 index fd52d94..0000000 --- a/V2/SoftwareLicense/Item/WithLicenseGetResponse_assigmentAutomationSettings_assignmentType.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithLicenseGetResponse_assigmentAutomationSettings_assignmentType - #pragma warning restore CS1591 - { - [EnumMember(Value = "NORMALIZED_SOFTWARE")] - #pragma warning disable CS1591 - NORMALIZED_SOFTWARE, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_INVENTORY")] - #pragma warning disable CS1591 - SOFTWARE_INVENTORY, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_SEARCH_GROUPS")] - #pragma warning disable CS1591 - DEVICE_SEARCH_GROUPS, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLES")] - #pragma warning disable CS1591 - END_USER_ROLES, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/Item/WithLicenseGetResponse_notificationChannelInfo.cs b/V2/SoftwareLicense/Item/WithLicenseGetResponse_notificationChannelInfo.cs deleted file mode 100644 index a80e803..0000000 --- a/V2/SoftwareLicense/Item/WithLicenseGetResponse_notificationChannelInfo.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicenseGetResponse_notificationChannelInfo : 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 email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The pushNotification property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? PushNotification { get; set; } -#nullable restore -#else - public string PushNotification { get; set; } -#endif - /// The sms property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Sms { get; set; } -#nullable restore -#else - public string Sms { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithLicenseGetResponse_notificationChannelInfo() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_notificationChannelInfo CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_notificationChannelInfo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "pushNotification", n => { PushNotification = n.GetStringValue(); } }, - { "sms", n => { Sms = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteStringValue("pushNotification", PushNotification); - writer.WriteStringValue("sms", Sms); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicenseGetResponse_scope.cs b/V2/SoftwareLicense/Item/WithLicenseGetResponse_scope.cs deleted file mode 100644 index 2703e19..0000000 --- a/V2/SoftwareLicense/Item/WithLicenseGetResponse_scope.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicenseGetResponse_scope : 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 global property - public bool? Global { get; set; } - /// The locationIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? LocationIds { get; set; } -#nullable restore -#else - public List LocationIds { get; set; } -#endif - /// The organizationIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? OrganizationIds { get; set; } -#nullable restore -#else - public List OrganizationIds { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithLicenseGetResponse_scope() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_scope CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_scope(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "global", n => { Global = n.GetBoolValue(); } }, - { "locationIds", n => { LocationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "organizationIds", n => { OrganizationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("global", Global); - writer.WriteCollectionOfPrimitiveValues("locationIds", LocationIds); - writer.WriteCollectionOfPrimitiveValues("organizationIds", OrganizationIds); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicenseGetResponse_term.cs b/V2/SoftwareLicense/Item/WithLicenseGetResponse_term.cs deleted file mode 100644 index 14eae29..0000000 --- a/V2/SoftwareLicense/Item/WithLicenseGetResponse_term.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicenseGetResponse_term : 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 autoRenewal property - public bool? AutoRenewal { get; set; } - /// The daysBeforeExpiration property - public int? DaysBeforeExpiration { get; set; } - /// The expirationDate property - public double? ExpirationDate { get; set; } - /// The generateActivityAlert property - public bool? GenerateActivityAlert { get; set; } - /// The hasNotifiedExpirationDate property - public bool? HasNotifiedExpirationDate { get; set; } - /// The hasNotifiedUpToRenewal property - public bool? HasNotifiedUpToRenewal { get; set; } - /// The renewalUnit property - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_term_renewalUnit? RenewalUnit { get; set; } - /// The value property - public int? Value { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithLicenseGetResponse_term() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_term CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse_term(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "autoRenewal", n => { AutoRenewal = n.GetBoolValue(); } }, - { "daysBeforeExpiration", n => { DaysBeforeExpiration = n.GetIntValue(); } }, - { "expirationDate", n => { ExpirationDate = n.GetDoubleValue(); } }, - { "generateActivityAlert", n => { GenerateActivityAlert = n.GetBoolValue(); } }, - { "hasNotifiedExpirationDate", n => { HasNotifiedExpirationDate = n.GetBoolValue(); } }, - { "hasNotifiedUpToRenewal", n => { HasNotifiedUpToRenewal = n.GetBoolValue(); } }, - { "renewalUnit", n => { RenewalUnit = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("autoRenewal", AutoRenewal); - writer.WriteIntValue("daysBeforeExpiration", DaysBeforeExpiration); - writer.WriteDoubleValue("expirationDate", ExpirationDate); - writer.WriteBoolValue("generateActivityAlert", GenerateActivityAlert); - writer.WriteBoolValue("hasNotifiedExpirationDate", HasNotifiedExpirationDate); - writer.WriteBoolValue("hasNotifiedUpToRenewal", HasNotifiedUpToRenewal); - writer.WriteEnumValue("renewalUnit", RenewalUnit); - writer.WriteIntValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicenseGetResponse_term_renewalUnit.cs b/V2/SoftwareLicense/Item/WithLicenseGetResponse_term_renewalUnit.cs deleted file mode 100644 index 5df74e9..0000000 --- a/V2/SoftwareLicense/Item/WithLicenseGetResponse_term_renewalUnit.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithLicenseGetResponse_term_renewalUnit - #pragma warning restore CS1591 - { - [EnumMember(Value = "MONTH")] - #pragma warning disable CS1591 - MONTH, - #pragma warning restore CS1591 - [EnumMember(Value = "YEAR")] - #pragma warning disable CS1591 - YEAR, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/Item/WithLicenseGetResponse_type.cs b/V2/SoftwareLicense/Item/WithLicenseGetResponse_type.cs deleted file mode 100644 index ab7f9fc..0000000 --- a/V2/SoftwareLicense/Item/WithLicenseGetResponse_type.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithLicenseGetResponse_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "PER_DEVICE")] - #pragma warning disable CS1591 - PER_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "PER_END_USER")] - #pragma warning disable CS1591 - PER_END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/Item/WithLicenseItemRequestBuilder.cs b/V2/SoftwareLicense/Item/WithLicenseItemRequestBuilder.cs deleted file mode 100644 index b6c2718..0000000 --- a/V2/SoftwareLicense/Item/WithLicenseItemRequestBuilder.cs +++ /dev/null @@ -1,226 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - /// - /// Builds and executes requests for operations under \v2\software-license\{licenseId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithLicenseItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithLicenseItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/software-license/{licenseId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithLicenseItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/software-license/{licenseId}", rawUrl) - { - } - /// - /// Delete the Software License with the provided id - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get a Software License by Id - /// - /// 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 GetAsWithLicenseGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsWithLicenseGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get a Software License by Id - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use GetAsWithLicenseGetResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Update a Software License with the provided metadata - /// - /// A - /// The request body - /// 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 PutAsWithLicensePutResponseAsync(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PutAsWithLicensePutResponseAsync(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Update a Software License with the provided metadata - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PutAsWithLicensePutResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PutAsync(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PutAsync(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete the Software License with the provided id - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Get a Software License by Id - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Update a Software License with the provided metadata - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithLicenseItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithLicenseItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithLicenseItemRequestBuilderPutRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicensePutRequestBody.cs b/V2/SoftwareLicense/Item/WithLicensePutRequestBody.cs deleted file mode 100644 index 3b30ecd..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutRequestBody.cs +++ /dev/null @@ -1,169 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicensePutRequestBody : 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 assigmentAutomationSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_assigmentAutomationSettings? AssigmentAutomationSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_assigmentAutomationSettings AssigmentAutomationSettings { get; set; } -#endif - /// Indicates the ids of the assigned licensees -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedLicenses { get; set; } -#nullable restore -#else - public List AssignedLicenses { get; set; } -#endif - /// Indicates the current usage of the software license - public int? CurrentUsage { get; set; } - /// Indicates a description for the software license -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Indicates of the name of the software license -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Indicates a note about the software license -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Note { get; set; } -#nullable restore -#else - public string Note { get; set; } -#endif - /// The notificationChannelInfo property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_notificationChannelInfo? NotificationChannelInfo { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_notificationChannelInfo NotificationChannelInfo { get; set; } -#endif - /// Identifier of the publisher - public int? PublisherId { get; set; } - /// Indicates the purchase date of the software license in unix epoch milliseconds - public long? PurchaseDate { get; set; } - /// Indicates the quantity of the software license - public int? Quantity { get; set; } - /// The scope property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_scope? Scope { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_scope Scope { get; set; } -#endif - /// The term property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_term? Term { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_term Term { get; set; } -#endif - /// Indicates the type of the software license - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_type? Type { get; set; } - /// Indicates the ids of the unassigned licensees -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? UnassignedLicenses { get; set; } -#nullable restore -#else - public List UnassignedLicenses { get; set; } -#endif - /// Identifier of the vendor - public int? VendorId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithLicensePutRequestBody() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assigmentAutomationSettings", n => { AssigmentAutomationSettings = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_assigmentAutomationSettings.CreateFromDiscriminatorValue); } }, - { "assignedLicenses", n => { AssignedLicenses = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "currentUsage", n => { CurrentUsage = n.GetIntValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "note", n => { Note = n.GetStringValue(); } }, - { "notificationChannelInfo", n => { NotificationChannelInfo = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_notificationChannelInfo.CreateFromDiscriminatorValue); } }, - { "publisherId", n => { PublisherId = n.GetIntValue(); } }, - { "purchaseDate", n => { PurchaseDate = n.GetLongValue(); } }, - { "quantity", n => { Quantity = n.GetIntValue(); } }, - { "scope", n => { Scope = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_scope.CreateFromDiscriminatorValue); } }, - { "term", n => { Term = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_term.CreateFromDiscriminatorValue); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "unassignedLicenses", n => { UnassignedLicenses = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "vendorId", n => { VendorId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assigmentAutomationSettings", AssigmentAutomationSettings); - writer.WriteCollectionOfPrimitiveValues("assignedLicenses", AssignedLicenses); - writer.WriteIntValue("currentUsage", CurrentUsage); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("note", Note); - writer.WriteObjectValue("notificationChannelInfo", NotificationChannelInfo); - writer.WriteIntValue("publisherId", PublisherId); - writer.WriteLongValue("purchaseDate", PurchaseDate); - writer.WriteIntValue("quantity", Quantity); - writer.WriteObjectValue("scope", Scope); - writer.WriteObjectValue("term", Term); - writer.WriteEnumValue("type", Type); - writer.WriteCollectionOfPrimitiveValues("unassignedLicenses", UnassignedLicenses); - writer.WriteIntValue("vendorId", VendorId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicensePutRequestBody_assigmentAutomationSettings.cs b/V2/SoftwareLicense/Item/WithLicensePutRequestBody_assigmentAutomationSettings.cs deleted file mode 100644 index 4965bd5..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutRequestBody_assigmentAutomationSettings.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicensePutRequestBody_assigmentAutomationSettings : 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 assignmentType property - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_assigmentAutomationSettings_assignmentType? AssignmentType { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithLicensePutRequestBody_assigmentAutomationSettings() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_assigmentAutomationSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_assigmentAutomationSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignmentType", n => { AssignmentType = n.GetEnumValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignmentType", AssignmentType); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicensePutRequestBody_assigmentAutomationSettings_assignmentType.cs b/V2/SoftwareLicense/Item/WithLicensePutRequestBody_assigmentAutomationSettings_assignmentType.cs deleted file mode 100644 index 73673e8..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutRequestBody_assigmentAutomationSettings_assignmentType.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithLicensePutRequestBody_assigmentAutomationSettings_assignmentType - #pragma warning restore CS1591 - { - [EnumMember(Value = "NORMALIZED_SOFTWARE")] - #pragma warning disable CS1591 - NORMALIZED_SOFTWARE, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_INVENTORY")] - #pragma warning disable CS1591 - SOFTWARE_INVENTORY, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_SEARCH_GROUPS")] - #pragma warning disable CS1591 - DEVICE_SEARCH_GROUPS, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLES")] - #pragma warning disable CS1591 - END_USER_ROLES, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/Item/WithLicensePutRequestBody_notificationChannelInfo.cs b/V2/SoftwareLicense/Item/WithLicensePutRequestBody_notificationChannelInfo.cs deleted file mode 100644 index c25e352..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutRequestBody_notificationChannelInfo.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicensePutRequestBody_notificationChannelInfo : 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 email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The pushNotification property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? PushNotification { get; set; } -#nullable restore -#else - public string PushNotification { get; set; } -#endif - /// The sms property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Sms { get; set; } -#nullable restore -#else - public string Sms { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithLicensePutRequestBody_notificationChannelInfo() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_notificationChannelInfo CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_notificationChannelInfo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "pushNotification", n => { PushNotification = n.GetStringValue(); } }, - { "sms", n => { Sms = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteStringValue("pushNotification", PushNotification); - writer.WriteStringValue("sms", Sms); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicensePutRequestBody_scope.cs b/V2/SoftwareLicense/Item/WithLicensePutRequestBody_scope.cs deleted file mode 100644 index 5f44f6c..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutRequestBody_scope.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicensePutRequestBody_scope : 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 global property - public bool? Global { get; set; } - /// The locationIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? LocationIds { get; set; } -#nullable restore -#else - public List LocationIds { get; set; } -#endif - /// The organizationIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? OrganizationIds { get; set; } -#nullable restore -#else - public List OrganizationIds { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithLicensePutRequestBody_scope() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_scope CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_scope(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "global", n => { Global = n.GetBoolValue(); } }, - { "locationIds", n => { LocationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "organizationIds", n => { OrganizationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("global", Global); - writer.WriteCollectionOfPrimitiveValues("locationIds", LocationIds); - writer.WriteCollectionOfPrimitiveValues("organizationIds", OrganizationIds); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicensePutRequestBody_term.cs b/V2/SoftwareLicense/Item/WithLicensePutRequestBody_term.cs deleted file mode 100644 index 6d1e5e3..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutRequestBody_term.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicensePutRequestBody_term : 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 autoRenewal property - public bool? AutoRenewal { get; set; } - /// The daysBeforeExpiration property - public int? DaysBeforeExpiration { get; set; } - /// The expirationDate property - public double? ExpirationDate { get; set; } - /// The generateActivityAlert property - public bool? GenerateActivityAlert { get; set; } - /// The hasNotifiedExpirationDate property - public bool? HasNotifiedExpirationDate { get; set; } - /// The hasNotifiedUpToRenewal property - public bool? HasNotifiedUpToRenewal { get; set; } - /// The renewalUnit property - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_term_renewalUnit? RenewalUnit { get; set; } - /// The value property - public int? Value { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithLicensePutRequestBody_term() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_term CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutRequestBody_term(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "autoRenewal", n => { AutoRenewal = n.GetBoolValue(); } }, - { "daysBeforeExpiration", n => { DaysBeforeExpiration = n.GetIntValue(); } }, - { "expirationDate", n => { ExpirationDate = n.GetDoubleValue(); } }, - { "generateActivityAlert", n => { GenerateActivityAlert = n.GetBoolValue(); } }, - { "hasNotifiedExpirationDate", n => { HasNotifiedExpirationDate = n.GetBoolValue(); } }, - { "hasNotifiedUpToRenewal", n => { HasNotifiedUpToRenewal = n.GetBoolValue(); } }, - { "renewalUnit", n => { RenewalUnit = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("autoRenewal", AutoRenewal); - writer.WriteIntValue("daysBeforeExpiration", DaysBeforeExpiration); - writer.WriteDoubleValue("expirationDate", ExpirationDate); - writer.WriteBoolValue("generateActivityAlert", GenerateActivityAlert); - writer.WriteBoolValue("hasNotifiedExpirationDate", HasNotifiedExpirationDate); - writer.WriteBoolValue("hasNotifiedUpToRenewal", HasNotifiedUpToRenewal); - writer.WriteEnumValue("renewalUnit", RenewalUnit); - writer.WriteIntValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicensePutRequestBody_term_renewalUnit.cs b/V2/SoftwareLicense/Item/WithLicensePutRequestBody_term_renewalUnit.cs deleted file mode 100644 index bc91a23..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutRequestBody_term_renewalUnit.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithLicensePutRequestBody_term_renewalUnit - #pragma warning restore CS1591 - { - [EnumMember(Value = "MONTH")] - #pragma warning disable CS1591 - MONTH, - #pragma warning restore CS1591 - [EnumMember(Value = "YEAR")] - #pragma warning disable CS1591 - YEAR, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/Item/WithLicensePutRequestBody_type.cs b/V2/SoftwareLicense/Item/WithLicensePutRequestBody_type.cs deleted file mode 100644 index ed7405a..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutRequestBody_type.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - /// Indicates the type of the software license - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithLicensePutRequestBody_type - { - [EnumMember(Value = "PER_DEVICE")] - #pragma warning disable CS1591 - PER_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "PER_END_USER")] - #pragma warning disable CS1591 - PER_END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/Item/WithLicensePutResponse.cs b/V2/SoftwareLicense/Item/WithLicensePutResponse.cs deleted file mode 100644 index 03d8e18..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutResponse.cs +++ /dev/null @@ -1,195 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicensePutResponse : 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 assigmentAutomationSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_assigmentAutomationSettings? AssigmentAutomationSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_assigmentAutomationSettings AssigmentAutomationSettings { get; set; } -#endif - /// The automated property - public bool? Automated { get; set; } - /// The currentUsage property - public int? CurrentUsage { get; set; } - /// The daysToExpire property - public int? DaysToExpire { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The expired property - public bool? Expired { get; set; } - /// The id property - public int? Id { get; set; } - /// The licenseAssignmentList property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? LicenseAssignmentList { get; set; } -#nullable restore -#else - public List LicenseAssignmentList { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The note property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Note { get; set; } -#nullable restore -#else - public string Note { get; set; } -#endif - /// The notificationChannelInfo property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_notificationChannelInfo? NotificationChannelInfo { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_notificationChannelInfo NotificationChannelInfo { get; set; } -#endif - /// The publisher property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_publisher? Publisher { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_publisher Publisher { get; set; } -#endif - /// The publisherId property - public int? PublisherId { get; set; } - /// The purchaseDate property - public long? PurchaseDate { get; set; } - /// The quantity property - public int? Quantity { get; set; } - /// The scope property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_scope? Scope { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_scope Scope { get; set; } -#endif - /// The term property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_term? Term { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_term Term { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_type? Type { get; set; } - /// The vendor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_vendor? Vendor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_vendor Vendor { get; set; } -#endif - /// The vendorId property - public int? VendorId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithLicensePutResponse() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assigmentAutomationSettings", n => { AssigmentAutomationSettings = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_assigmentAutomationSettings.CreateFromDiscriminatorValue); } }, - { "automated", n => { Automated = n.GetBoolValue(); } }, - { "currentUsage", n => { CurrentUsage = n.GetIntValue(); } }, - { "daysToExpire", n => { DaysToExpire = n.GetIntValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "expired", n => { Expired = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "licenseAssignmentList", n => { LicenseAssignmentList = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_licenseAssignmentList.CreateFromDiscriminatorValue)?.AsList(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "note", n => { Note = n.GetStringValue(); } }, - { "notificationChannelInfo", n => { NotificationChannelInfo = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_notificationChannelInfo.CreateFromDiscriminatorValue); } }, - { "publisher", n => { Publisher = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_publisher.CreateFromDiscriminatorValue); } }, - { "publisherId", n => { PublisherId = n.GetIntValue(); } }, - { "purchaseDate", n => { PurchaseDate = n.GetLongValue(); } }, - { "quantity", n => { Quantity = n.GetIntValue(); } }, - { "scope", n => { Scope = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_scope.CreateFromDiscriminatorValue); } }, - { "term", n => { Term = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_term.CreateFromDiscriminatorValue); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "vendor", n => { Vendor = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_vendor.CreateFromDiscriminatorValue); } }, - { "vendorId", n => { VendorId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assigmentAutomationSettings", AssigmentAutomationSettings); - writer.WriteBoolValue("automated", Automated); - writer.WriteIntValue("currentUsage", CurrentUsage); - writer.WriteIntValue("daysToExpire", DaysToExpire); - writer.WriteStringValue("description", Description); - writer.WriteBoolValue("expired", Expired); - writer.WriteIntValue("id", Id); - writer.WriteCollectionOfObjectValues("licenseAssignmentList", LicenseAssignmentList); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("note", Note); - writer.WriteObjectValue("notificationChannelInfo", NotificationChannelInfo); - writer.WriteObjectValue("publisher", Publisher); - writer.WriteIntValue("publisherId", PublisherId); - writer.WriteLongValue("purchaseDate", PurchaseDate); - writer.WriteIntValue("quantity", Quantity); - writer.WriteObjectValue("scope", Scope); - writer.WriteObjectValue("term", Term); - writer.WriteEnumValue("type", Type); - writer.WriteObjectValue("vendor", Vendor); - writer.WriteIntValue("vendorId", VendorId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicensePutResponse_assigmentAutomationSettings.cs b/V2/SoftwareLicense/Item/WithLicensePutResponse_assigmentAutomationSettings.cs deleted file mode 100644 index cbb29bf..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutResponse_assigmentAutomationSettings.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicensePutResponse_assigmentAutomationSettings : 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 assignmentType property - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_assigmentAutomationSettings_assignmentType? AssignmentType { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithLicensePutResponse_assigmentAutomationSettings() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_assigmentAutomationSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_assigmentAutomationSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignmentType", n => { AssignmentType = n.GetEnumValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignmentType", AssignmentType); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicensePutResponse_assigmentAutomationSettings_assignmentType.cs b/V2/SoftwareLicense/Item/WithLicensePutResponse_assigmentAutomationSettings_assignmentType.cs deleted file mode 100644 index 04a491d..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutResponse_assigmentAutomationSettings_assignmentType.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithLicensePutResponse_assigmentAutomationSettings_assignmentType - #pragma warning restore CS1591 - { - [EnumMember(Value = "NORMALIZED_SOFTWARE")] - #pragma warning disable CS1591 - NORMALIZED_SOFTWARE, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_INVENTORY")] - #pragma warning disable CS1591 - SOFTWARE_INVENTORY, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_SEARCH_GROUPS")] - #pragma warning disable CS1591 - DEVICE_SEARCH_GROUPS, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLES")] - #pragma warning disable CS1591 - END_USER_ROLES, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/Item/WithLicensePutResponse_licenseAssignmentList.cs b/V2/SoftwareLicense/Item/WithLicensePutResponse_licenseAssignmentList.cs deleted file mode 100644 index 5f9b633..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutResponse_licenseAssignmentList.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicensePutResponse_licenseAssignmentList : 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 licenseeEmail property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LicenseeEmail { get; set; } -#nullable restore -#else - public string LicenseeEmail { get; set; } -#endif - /// The licenseeId property - public int? LicenseeId { get; set; } - /// The licenseeName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LicenseeName { get; set; } -#nullable restore -#else - public string LicenseeName { get; set; } -#endif - /// The licenseeOrganizationId property - public int? LicenseeOrganizationId { get; set; } - /// The licenseeOrganizationName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LicenseeOrganizationName { get; set; } -#nullable restore -#else - public string LicenseeOrganizationName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithLicensePutResponse_licenseAssignmentList() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_licenseAssignmentList CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_licenseAssignmentList(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "licenseeEmail", n => { LicenseeEmail = n.GetStringValue(); } }, - { "licenseeId", n => { LicenseeId = n.GetIntValue(); } }, - { "licenseeName", n => { LicenseeName = n.GetStringValue(); } }, - { "licenseeOrganizationId", n => { LicenseeOrganizationId = n.GetIntValue(); } }, - { "licenseeOrganizationName", n => { LicenseeOrganizationName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("licenseeEmail", LicenseeEmail); - writer.WriteIntValue("licenseeId", LicenseeId); - writer.WriteStringValue("licenseeName", LicenseeName); - writer.WriteIntValue("licenseeOrganizationId", LicenseeOrganizationId); - writer.WriteStringValue("licenseeOrganizationName", LicenseeOrganizationName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicensePutResponse_notificationChannelInfo.cs b/V2/SoftwareLicense/Item/WithLicensePutResponse_notificationChannelInfo.cs deleted file mode 100644 index 188bff2..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutResponse_notificationChannelInfo.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicensePutResponse_notificationChannelInfo : 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 email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The pushNotification property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? PushNotification { get; set; } -#nullable restore -#else - public string PushNotification { get; set; } -#endif - /// The sms property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Sms { get; set; } -#nullable restore -#else - public string Sms { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithLicensePutResponse_notificationChannelInfo() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_notificationChannelInfo CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_notificationChannelInfo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "pushNotification", n => { PushNotification = n.GetStringValue(); } }, - { "sms", n => { Sms = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteStringValue("pushNotification", PushNotification); - writer.WriteStringValue("sms", Sms); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicensePutResponse_publisher.cs b/V2/SoftwareLicense/Item/WithLicensePutResponse_publisher.cs deleted file mode 100644 index 0cec7a4..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutResponse_publisher.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicensePutResponse_publisher : 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 description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithLicensePutResponse_publisher() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_publisher CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_publisher(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicensePutResponse_scope.cs b/V2/SoftwareLicense/Item/WithLicensePutResponse_scope.cs deleted file mode 100644 index f0403ee..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutResponse_scope.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicensePutResponse_scope : 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 global property - public bool? Global { get; set; } - /// The locationIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? LocationIds { get; set; } -#nullable restore -#else - public List LocationIds { get; set; } -#endif - /// The organizationIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? OrganizationIds { get; set; } -#nullable restore -#else - public List OrganizationIds { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithLicensePutResponse_scope() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_scope CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_scope(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "global", n => { Global = n.GetBoolValue(); } }, - { "locationIds", n => { LocationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "organizationIds", n => { OrganizationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("global", Global); - writer.WriteCollectionOfPrimitiveValues("locationIds", LocationIds); - writer.WriteCollectionOfPrimitiveValues("organizationIds", OrganizationIds); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicensePutResponse_term.cs b/V2/SoftwareLicense/Item/WithLicensePutResponse_term.cs deleted file mode 100644 index b199b84..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutResponse_term.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicensePutResponse_term : 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 autoRenewal property - public bool? AutoRenewal { get; set; } - /// The daysBeforeExpiration property - public int? DaysBeforeExpiration { get; set; } - /// The expirationDate property - public double? ExpirationDate { get; set; } - /// The generateActivityAlert property - public bool? GenerateActivityAlert { get; set; } - /// The hasNotifiedExpirationDate property - public bool? HasNotifiedExpirationDate { get; set; } - /// The hasNotifiedUpToRenewal property - public bool? HasNotifiedUpToRenewal { get; set; } - /// The renewalUnit property - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_term_renewalUnit? RenewalUnit { get; set; } - /// The value property - public int? Value { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithLicensePutResponse_term() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_term CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_term(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "autoRenewal", n => { AutoRenewal = n.GetBoolValue(); } }, - { "daysBeforeExpiration", n => { DaysBeforeExpiration = n.GetIntValue(); } }, - { "expirationDate", n => { ExpirationDate = n.GetDoubleValue(); } }, - { "generateActivityAlert", n => { GenerateActivityAlert = n.GetBoolValue(); } }, - { "hasNotifiedExpirationDate", n => { HasNotifiedExpirationDate = n.GetBoolValue(); } }, - { "hasNotifiedUpToRenewal", n => { HasNotifiedUpToRenewal = n.GetBoolValue(); } }, - { "renewalUnit", n => { RenewalUnit = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("autoRenewal", AutoRenewal); - writer.WriteIntValue("daysBeforeExpiration", DaysBeforeExpiration); - writer.WriteDoubleValue("expirationDate", ExpirationDate); - writer.WriteBoolValue("generateActivityAlert", GenerateActivityAlert); - writer.WriteBoolValue("hasNotifiedExpirationDate", HasNotifiedExpirationDate); - writer.WriteBoolValue("hasNotifiedUpToRenewal", HasNotifiedUpToRenewal); - writer.WriteEnumValue("renewalUnit", RenewalUnit); - writer.WriteIntValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicensePutResponse_term_renewalUnit.cs b/V2/SoftwareLicense/Item/WithLicensePutResponse_term_renewalUnit.cs deleted file mode 100644 index eda8525..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutResponse_term_renewalUnit.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithLicensePutResponse_term_renewalUnit - #pragma warning restore CS1591 - { - [EnumMember(Value = "MONTH")] - #pragma warning disable CS1591 - MONTH, - #pragma warning restore CS1591 - [EnumMember(Value = "YEAR")] - #pragma warning disable CS1591 - YEAR, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/Item/WithLicensePutResponse_type.cs b/V2/SoftwareLicense/Item/WithLicensePutResponse_type.cs deleted file mode 100644 index 1bfc5c7..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutResponse_type.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithLicensePutResponse_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "PER_DEVICE")] - #pragma warning disable CS1591 - PER_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "PER_END_USER")] - #pragma warning disable CS1591 - PER_END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/Item/WithLicensePutResponse_vendor.cs b/V2/SoftwareLicense/Item/WithLicensePutResponse_vendor.cs deleted file mode 100644 index b11cb88..0000000 --- a/V2/SoftwareLicense/Item/WithLicensePutResponse_vendor.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicensePutResponse_vendor : 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 description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithLicensePutResponse_vendor() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_vendor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicensePutResponse_vendor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Item/WithLicenseResponse.cs b/V2/SoftwareLicense/Item/WithLicenseResponse.cs deleted file mode 100644 index 509b1fe..0000000 --- a/V2/SoftwareLicense/Item/WithLicenseResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Item -{ - [Obsolete("This class is obsolete. Use WithLicenseGetResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithLicenseResponse : global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseGetResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/SoftwareLicensePostRequestBody.cs b/V2/SoftwareLicense/SoftwareLicensePostRequestBody.cs deleted file mode 100644 index 8807605..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostRequestBody.cs +++ /dev/null @@ -1,169 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwareLicensePostRequestBody : 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 assigmentAutomationSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_assigmentAutomationSettings? AssigmentAutomationSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_assigmentAutomationSettings AssigmentAutomationSettings { get; set; } -#endif - /// Indicates the ids of the assigned licensees -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedLicenses { get; set; } -#nullable restore -#else - public List AssignedLicenses { get; set; } -#endif - /// Indicates the current usage of the software license - public int? CurrentUsage { get; set; } - /// Indicates a description for the software license -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Indicates of the name of the software license -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Indicates a note about the software license -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Note { get; set; } -#nullable restore -#else - public string Note { get; set; } -#endif - /// The notificationChannelInfo property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_notificationChannelInfo? NotificationChannelInfo { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_notificationChannelInfo NotificationChannelInfo { get; set; } -#endif - /// Identifier of the publisher - public int? PublisherId { get; set; } - /// Indicates the purchase date of the software license in unix epoch milliseconds - public long? PurchaseDate { get; set; } - /// Indicates the quantity of the software license - public int? Quantity { get; set; } - /// The scope property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_scope? Scope { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_scope Scope { get; set; } -#endif - /// The term property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_term? Term { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_term Term { get; set; } -#endif - /// Indicates the type of the software license - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_type? Type { get; set; } - /// Indicates the ids of the unassigned licensees -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? UnassignedLicenses { get; set; } -#nullable restore -#else - public List UnassignedLicenses { get; set; } -#endif - /// Identifier of the vendor - public int? VendorId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public SoftwareLicensePostRequestBody() - { - 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::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assigmentAutomationSettings", n => { AssigmentAutomationSettings = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_assigmentAutomationSettings.CreateFromDiscriminatorValue); } }, - { "assignedLicenses", n => { AssignedLicenses = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "currentUsage", n => { CurrentUsage = n.GetIntValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "note", n => { Note = n.GetStringValue(); } }, - { "notificationChannelInfo", n => { NotificationChannelInfo = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_notificationChannelInfo.CreateFromDiscriminatorValue); } }, - { "publisherId", n => { PublisherId = n.GetIntValue(); } }, - { "purchaseDate", n => { PurchaseDate = n.GetLongValue(); } }, - { "quantity", n => { Quantity = n.GetIntValue(); } }, - { "scope", n => { Scope = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_scope.CreateFromDiscriminatorValue); } }, - { "term", n => { Term = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_term.CreateFromDiscriminatorValue); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "unassignedLicenses", n => { UnassignedLicenses = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "vendorId", n => { VendorId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assigmentAutomationSettings", AssigmentAutomationSettings); - writer.WriteCollectionOfPrimitiveValues("assignedLicenses", AssignedLicenses); - writer.WriteIntValue("currentUsage", CurrentUsage); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("note", Note); - writer.WriteObjectValue("notificationChannelInfo", NotificationChannelInfo); - writer.WriteIntValue("publisherId", PublisherId); - writer.WriteLongValue("purchaseDate", PurchaseDate); - writer.WriteIntValue("quantity", Quantity); - writer.WriteObjectValue("scope", Scope); - writer.WriteObjectValue("term", Term); - writer.WriteEnumValue("type", Type); - writer.WriteCollectionOfPrimitiveValues("unassignedLicenses", UnassignedLicenses); - writer.WriteIntValue("vendorId", VendorId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/SoftwareLicensePostRequestBody_assigmentAutomationSettings.cs b/V2/SoftwareLicense/SoftwareLicensePostRequestBody_assigmentAutomationSettings.cs deleted file mode 100644 index 832e358..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostRequestBody_assigmentAutomationSettings.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwareLicensePostRequestBody_assigmentAutomationSettings : 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 assignmentType property - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_assigmentAutomationSettings_assignmentType? AssignmentType { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwareLicensePostRequestBody_assigmentAutomationSettings() - { - 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::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_assigmentAutomationSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_assigmentAutomationSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignmentType", n => { AssignmentType = n.GetEnumValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignmentType", AssignmentType); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/SoftwareLicensePostRequestBody_assigmentAutomationSettings_assignmentType.cs b/V2/SoftwareLicense/SoftwareLicensePostRequestBody_assigmentAutomationSettings_assignmentType.cs deleted file mode 100644 index acd1abb..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostRequestBody_assigmentAutomationSettings_assignmentType.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum SoftwareLicensePostRequestBody_assigmentAutomationSettings_assignmentType - #pragma warning restore CS1591 - { - [EnumMember(Value = "NORMALIZED_SOFTWARE")] - #pragma warning disable CS1591 - NORMALIZED_SOFTWARE, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_INVENTORY")] - #pragma warning disable CS1591 - SOFTWARE_INVENTORY, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_SEARCH_GROUPS")] - #pragma warning disable CS1591 - DEVICE_SEARCH_GROUPS, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLES")] - #pragma warning disable CS1591 - END_USER_ROLES, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/SoftwareLicensePostRequestBody_notificationChannelInfo.cs b/V2/SoftwareLicense/SoftwareLicensePostRequestBody_notificationChannelInfo.cs deleted file mode 100644 index 8d0448d..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostRequestBody_notificationChannelInfo.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwareLicensePostRequestBody_notificationChannelInfo : 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 email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The pushNotification property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? PushNotification { get; set; } -#nullable restore -#else - public string PushNotification { get; set; } -#endif - /// The sms property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Sms { get; set; } -#nullable restore -#else - public string Sms { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwareLicensePostRequestBody_notificationChannelInfo() - { - 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::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_notificationChannelInfo CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_notificationChannelInfo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "pushNotification", n => { PushNotification = n.GetStringValue(); } }, - { "sms", n => { Sms = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteStringValue("pushNotification", PushNotification); - writer.WriteStringValue("sms", Sms); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/SoftwareLicensePostRequestBody_scope.cs b/V2/SoftwareLicense/SoftwareLicensePostRequestBody_scope.cs deleted file mode 100644 index abf3041..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostRequestBody_scope.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwareLicensePostRequestBody_scope : 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 global property - public bool? Global { get; set; } - /// The locationIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? LocationIds { get; set; } -#nullable restore -#else - public List LocationIds { get; set; } -#endif - /// The organizationIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? OrganizationIds { get; set; } -#nullable restore -#else - public List OrganizationIds { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwareLicensePostRequestBody_scope() - { - 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::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_scope CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_scope(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "global", n => { Global = n.GetBoolValue(); } }, - { "locationIds", n => { LocationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "organizationIds", n => { OrganizationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("global", Global); - writer.WriteCollectionOfPrimitiveValues("locationIds", LocationIds); - writer.WriteCollectionOfPrimitiveValues("organizationIds", OrganizationIds); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/SoftwareLicensePostRequestBody_term.cs b/V2/SoftwareLicense/SoftwareLicensePostRequestBody_term.cs deleted file mode 100644 index 97e51c2..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostRequestBody_term.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwareLicensePostRequestBody_term : 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 autoRenewal property - public bool? AutoRenewal { get; set; } - /// The daysBeforeExpiration property - public int? DaysBeforeExpiration { get; set; } - /// The expirationDate property - public double? ExpirationDate { get; set; } - /// The generateActivityAlert property - public bool? GenerateActivityAlert { get; set; } - /// The hasNotifiedExpirationDate property - public bool? HasNotifiedExpirationDate { get; set; } - /// The hasNotifiedUpToRenewal property - public bool? HasNotifiedUpToRenewal { get; set; } - /// The renewalUnit property - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_term_renewalUnit? RenewalUnit { get; set; } - /// The value property - public int? Value { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public SoftwareLicensePostRequestBody_term() - { - 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::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_term CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody_term(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "autoRenewal", n => { AutoRenewal = n.GetBoolValue(); } }, - { "daysBeforeExpiration", n => { DaysBeforeExpiration = n.GetIntValue(); } }, - { "expirationDate", n => { ExpirationDate = n.GetDoubleValue(); } }, - { "generateActivityAlert", n => { GenerateActivityAlert = n.GetBoolValue(); } }, - { "hasNotifiedExpirationDate", n => { HasNotifiedExpirationDate = n.GetBoolValue(); } }, - { "hasNotifiedUpToRenewal", n => { HasNotifiedUpToRenewal = n.GetBoolValue(); } }, - { "renewalUnit", n => { RenewalUnit = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("autoRenewal", AutoRenewal); - writer.WriteIntValue("daysBeforeExpiration", DaysBeforeExpiration); - writer.WriteDoubleValue("expirationDate", ExpirationDate); - writer.WriteBoolValue("generateActivityAlert", GenerateActivityAlert); - writer.WriteBoolValue("hasNotifiedExpirationDate", HasNotifiedExpirationDate); - writer.WriteBoolValue("hasNotifiedUpToRenewal", HasNotifiedUpToRenewal); - writer.WriteEnumValue("renewalUnit", RenewalUnit); - writer.WriteIntValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/SoftwareLicensePostRequestBody_term_renewalUnit.cs b/V2/SoftwareLicense/SoftwareLicensePostRequestBody_term_renewalUnit.cs deleted file mode 100644 index 7c5a64f..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostRequestBody_term_renewalUnit.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum SoftwareLicensePostRequestBody_term_renewalUnit - #pragma warning restore CS1591 - { - [EnumMember(Value = "MONTH")] - #pragma warning disable CS1591 - MONTH, - #pragma warning restore CS1591 - [EnumMember(Value = "YEAR")] - #pragma warning disable CS1591 - YEAR, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/SoftwareLicensePostRequestBody_type.cs b/V2/SoftwareLicense/SoftwareLicensePostRequestBody_type.cs deleted file mode 100644 index 7279345..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostRequestBody_type.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - /// Indicates the type of the software license - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum SoftwareLicensePostRequestBody_type - { - [EnumMember(Value = "PER_DEVICE")] - #pragma warning disable CS1591 - PER_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "PER_END_USER")] - #pragma warning disable CS1591 - PER_END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/SoftwareLicensePostResponse.cs b/V2/SoftwareLicense/SoftwareLicensePostResponse.cs deleted file mode 100644 index 3e894d6..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostResponse.cs +++ /dev/null @@ -1,195 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwareLicensePostResponse : 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 assigmentAutomationSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_assigmentAutomationSettings? AssigmentAutomationSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_assigmentAutomationSettings AssigmentAutomationSettings { get; set; } -#endif - /// The automated property - public bool? Automated { get; set; } - /// The currentUsage property - public int? CurrentUsage { get; set; } - /// The daysToExpire property - public int? DaysToExpire { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The expired property - public bool? Expired { get; set; } - /// The id property - public int? Id { get; set; } - /// The licenseAssignmentList property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? LicenseAssignmentList { get; set; } -#nullable restore -#else - public List LicenseAssignmentList { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The note property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Note { get; set; } -#nullable restore -#else - public string Note { get; set; } -#endif - /// The notificationChannelInfo property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_notificationChannelInfo? NotificationChannelInfo { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_notificationChannelInfo NotificationChannelInfo { get; set; } -#endif - /// The publisher property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_publisher? Publisher { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_publisher Publisher { get; set; } -#endif - /// The publisherId property - public int? PublisherId { get; set; } - /// The purchaseDate property - public long? PurchaseDate { get; set; } - /// The quantity property - public int? Quantity { get; set; } - /// The scope property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_scope? Scope { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_scope Scope { get; set; } -#endif - /// The term property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_term? Term { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_term Term { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_type? Type { get; set; } - /// The vendor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_vendor? Vendor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_vendor Vendor { get; set; } -#endif - /// The vendorId property - public int? VendorId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public SoftwareLicensePostResponse() - { - 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::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assigmentAutomationSettings", n => { AssigmentAutomationSettings = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_assigmentAutomationSettings.CreateFromDiscriminatorValue); } }, - { "automated", n => { Automated = n.GetBoolValue(); } }, - { "currentUsage", n => { CurrentUsage = n.GetIntValue(); } }, - { "daysToExpire", n => { DaysToExpire = n.GetIntValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "expired", n => { Expired = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "licenseAssignmentList", n => { LicenseAssignmentList = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_licenseAssignmentList.CreateFromDiscriminatorValue)?.AsList(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "note", n => { Note = n.GetStringValue(); } }, - { "notificationChannelInfo", n => { NotificationChannelInfo = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_notificationChannelInfo.CreateFromDiscriminatorValue); } }, - { "publisher", n => { Publisher = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_publisher.CreateFromDiscriminatorValue); } }, - { "publisherId", n => { PublisherId = n.GetIntValue(); } }, - { "purchaseDate", n => { PurchaseDate = n.GetLongValue(); } }, - { "quantity", n => { Quantity = n.GetIntValue(); } }, - { "scope", n => { Scope = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_scope.CreateFromDiscriminatorValue); } }, - { "term", n => { Term = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_term.CreateFromDiscriminatorValue); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "vendor", n => { Vendor = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_vendor.CreateFromDiscriminatorValue); } }, - { "vendorId", n => { VendorId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assigmentAutomationSettings", AssigmentAutomationSettings); - writer.WriteBoolValue("automated", Automated); - writer.WriteIntValue("currentUsage", CurrentUsage); - writer.WriteIntValue("daysToExpire", DaysToExpire); - writer.WriteStringValue("description", Description); - writer.WriteBoolValue("expired", Expired); - writer.WriteIntValue("id", Id); - writer.WriteCollectionOfObjectValues("licenseAssignmentList", LicenseAssignmentList); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("note", Note); - writer.WriteObjectValue("notificationChannelInfo", NotificationChannelInfo); - writer.WriteObjectValue("publisher", Publisher); - writer.WriteIntValue("publisherId", PublisherId); - writer.WriteLongValue("purchaseDate", PurchaseDate); - writer.WriteIntValue("quantity", Quantity); - writer.WriteObjectValue("scope", Scope); - writer.WriteObjectValue("term", Term); - writer.WriteEnumValue("type", Type); - writer.WriteObjectValue("vendor", Vendor); - writer.WriteIntValue("vendorId", VendorId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/SoftwareLicensePostResponse_assigmentAutomationSettings.cs b/V2/SoftwareLicense/SoftwareLicensePostResponse_assigmentAutomationSettings.cs deleted file mode 100644 index c81fd10..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostResponse_assigmentAutomationSettings.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwareLicensePostResponse_assigmentAutomationSettings : 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 assignmentType property - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_assigmentAutomationSettings_assignmentType? AssignmentType { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwareLicensePostResponse_assigmentAutomationSettings() - { - 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::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_assigmentAutomationSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_assigmentAutomationSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignmentType", n => { AssignmentType = n.GetEnumValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignmentType", AssignmentType); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/SoftwareLicensePostResponse_assigmentAutomationSettings_assignmentType.cs b/V2/SoftwareLicense/SoftwareLicensePostResponse_assigmentAutomationSettings_assignmentType.cs deleted file mode 100644 index d7d1851..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostResponse_assigmentAutomationSettings_assignmentType.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum SoftwareLicensePostResponse_assigmentAutomationSettings_assignmentType - #pragma warning restore CS1591 - { - [EnumMember(Value = "NORMALIZED_SOFTWARE")] - #pragma warning disable CS1591 - NORMALIZED_SOFTWARE, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_INVENTORY")] - #pragma warning disable CS1591 - SOFTWARE_INVENTORY, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_SEARCH_GROUPS")] - #pragma warning disable CS1591 - DEVICE_SEARCH_GROUPS, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLES")] - #pragma warning disable CS1591 - END_USER_ROLES, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/SoftwareLicensePostResponse_licenseAssignmentList.cs b/V2/SoftwareLicense/SoftwareLicensePostResponse_licenseAssignmentList.cs deleted file mode 100644 index d16be27..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostResponse_licenseAssignmentList.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwareLicensePostResponse_licenseAssignmentList : 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 licenseeEmail property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LicenseeEmail { get; set; } -#nullable restore -#else - public string LicenseeEmail { get; set; } -#endif - /// The licenseeId property - public int? LicenseeId { get; set; } - /// The licenseeName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LicenseeName { get; set; } -#nullable restore -#else - public string LicenseeName { get; set; } -#endif - /// The licenseeOrganizationId property - public int? LicenseeOrganizationId { get; set; } - /// The licenseeOrganizationName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LicenseeOrganizationName { get; set; } -#nullable restore -#else - public string LicenseeOrganizationName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwareLicensePostResponse_licenseAssignmentList() - { - 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::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_licenseAssignmentList CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_licenseAssignmentList(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "licenseeEmail", n => { LicenseeEmail = n.GetStringValue(); } }, - { "licenseeId", n => { LicenseeId = n.GetIntValue(); } }, - { "licenseeName", n => { LicenseeName = n.GetStringValue(); } }, - { "licenseeOrganizationId", n => { LicenseeOrganizationId = n.GetIntValue(); } }, - { "licenseeOrganizationName", n => { LicenseeOrganizationName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("licenseeEmail", LicenseeEmail); - writer.WriteIntValue("licenseeId", LicenseeId); - writer.WriteStringValue("licenseeName", LicenseeName); - writer.WriteIntValue("licenseeOrganizationId", LicenseeOrganizationId); - writer.WriteStringValue("licenseeOrganizationName", LicenseeOrganizationName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/SoftwareLicensePostResponse_notificationChannelInfo.cs b/V2/SoftwareLicense/SoftwareLicensePostResponse_notificationChannelInfo.cs deleted file mode 100644 index e4614e7..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostResponse_notificationChannelInfo.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwareLicensePostResponse_notificationChannelInfo : 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 email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The pushNotification property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? PushNotification { get; set; } -#nullable restore -#else - public string PushNotification { get; set; } -#endif - /// The sms property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Sms { get; set; } -#nullable restore -#else - public string Sms { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwareLicensePostResponse_notificationChannelInfo() - { - 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::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_notificationChannelInfo CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_notificationChannelInfo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "pushNotification", n => { PushNotification = n.GetStringValue(); } }, - { "sms", n => { Sms = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteStringValue("pushNotification", PushNotification); - writer.WriteStringValue("sms", Sms); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/SoftwareLicensePostResponse_publisher.cs b/V2/SoftwareLicense/SoftwareLicensePostResponse_publisher.cs deleted file mode 100644 index 1803a2c..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostResponse_publisher.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwareLicensePostResponse_publisher : 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 description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwareLicensePostResponse_publisher() - { - 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::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_publisher CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_publisher(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/SoftwareLicensePostResponse_scope.cs b/V2/SoftwareLicense/SoftwareLicensePostResponse_scope.cs deleted file mode 100644 index e143ad5..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostResponse_scope.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwareLicensePostResponse_scope : 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 global property - public bool? Global { get; set; } - /// The locationIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? LocationIds { get; set; } -#nullable restore -#else - public List LocationIds { get; set; } -#endif - /// The organizationIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? OrganizationIds { get; set; } -#nullable restore -#else - public List OrganizationIds { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwareLicensePostResponse_scope() - { - 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::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_scope CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_scope(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "global", n => { Global = n.GetBoolValue(); } }, - { "locationIds", n => { LocationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "organizationIds", n => { OrganizationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("global", Global); - writer.WriteCollectionOfPrimitiveValues("locationIds", LocationIds); - writer.WriteCollectionOfPrimitiveValues("organizationIds", OrganizationIds); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/SoftwareLicensePostResponse_term.cs b/V2/SoftwareLicense/SoftwareLicensePostResponse_term.cs deleted file mode 100644 index 310894c..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostResponse_term.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwareLicensePostResponse_term : 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 autoRenewal property - public bool? AutoRenewal { get; set; } - /// The daysBeforeExpiration property - public int? DaysBeforeExpiration { get; set; } - /// The expirationDate property - public double? ExpirationDate { get; set; } - /// The generateActivityAlert property - public bool? GenerateActivityAlert { get; set; } - /// The hasNotifiedExpirationDate property - public bool? HasNotifiedExpirationDate { get; set; } - /// The hasNotifiedUpToRenewal property - public bool? HasNotifiedUpToRenewal { get; set; } - /// The renewalUnit property - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_term_renewalUnit? RenewalUnit { get; set; } - /// The value property - public int? Value { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public SoftwareLicensePostResponse_term() - { - 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::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_term CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_term(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "autoRenewal", n => { AutoRenewal = n.GetBoolValue(); } }, - { "daysBeforeExpiration", n => { DaysBeforeExpiration = n.GetIntValue(); } }, - { "expirationDate", n => { ExpirationDate = n.GetDoubleValue(); } }, - { "generateActivityAlert", n => { GenerateActivityAlert = n.GetBoolValue(); } }, - { "hasNotifiedExpirationDate", n => { HasNotifiedExpirationDate = n.GetBoolValue(); } }, - { "hasNotifiedUpToRenewal", n => { HasNotifiedUpToRenewal = n.GetBoolValue(); } }, - { "renewalUnit", n => { RenewalUnit = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("autoRenewal", AutoRenewal); - writer.WriteIntValue("daysBeforeExpiration", DaysBeforeExpiration); - writer.WriteDoubleValue("expirationDate", ExpirationDate); - writer.WriteBoolValue("generateActivityAlert", GenerateActivityAlert); - writer.WriteBoolValue("hasNotifiedExpirationDate", HasNotifiedExpirationDate); - writer.WriteBoolValue("hasNotifiedUpToRenewal", HasNotifiedUpToRenewal); - writer.WriteEnumValue("renewalUnit", RenewalUnit); - writer.WriteIntValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/SoftwareLicensePostResponse_term_renewalUnit.cs b/V2/SoftwareLicense/SoftwareLicensePostResponse_term_renewalUnit.cs deleted file mode 100644 index 51b8c1a..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostResponse_term_renewalUnit.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum SoftwareLicensePostResponse_term_renewalUnit - #pragma warning restore CS1591 - { - [EnumMember(Value = "MONTH")] - #pragma warning disable CS1591 - MONTH, - #pragma warning restore CS1591 - [EnumMember(Value = "YEAR")] - #pragma warning disable CS1591 - YEAR, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/SoftwareLicensePostResponse_type.cs b/V2/SoftwareLicense/SoftwareLicensePostResponse_type.cs deleted file mode 100644 index 8e159a8..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostResponse_type.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum SoftwareLicensePostResponse_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "PER_DEVICE")] - #pragma warning disable CS1591 - PER_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "PER_END_USER")] - #pragma warning disable CS1591 - PER_END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/SoftwareLicensePostResponse_vendor.cs b/V2/SoftwareLicense/SoftwareLicensePostResponse_vendor.cs deleted file mode 100644 index 6326791..0000000 --- a/V2/SoftwareLicense/SoftwareLicensePostResponse_vendor.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwareLicensePostResponse_vendor : 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 description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwareLicensePostResponse_vendor() - { - 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::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_vendor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse_vendor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/SoftwareLicenseRequestBuilder.cs b/V2/SoftwareLicense/SoftwareLicenseRequestBuilder.cs deleted file mode 100644 index b50f262..0000000 --- a/V2/SoftwareLicense/SoftwareLicenseRequestBuilder.cs +++ /dev/null @@ -1,149 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.SoftwareLicense.Item; -using NinjaOne.Client.V2.SoftwareLicense.Upsert; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - /// - /// Builds and executes requests for operations under \v2\software-license - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwareLicenseRequestBuilder : BaseRequestBuilder - { - /// The upsert property - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertRequestBuilder Upsert - { - get => new global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the NinjaOne.Client.v2.softwareLicense.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("licenseId", position); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.softwareLicense.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("licenseId", position); - return new global::NinjaOne.Client.V2.SoftwareLicense.Item.WithLicenseItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SoftwareLicenseRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/software-license", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SoftwareLicenseRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/software-license", rawUrl) - { - } - /// - /// Create a Software License with the provided name and description - /// - /// A - /// The request body - /// 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 PostAsSoftwareLicensePostResponseAsync(global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsSoftwareLicensePostResponseAsync(global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create a Software License with the provided name and description - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsSoftwareLicensePostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicenseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create a Software License with the provided name and description - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicenseRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicenseRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwareLicenseRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/SoftwareLicenseResponse.cs b/V2/SoftwareLicense/SoftwareLicenseResponse.cs deleted file mode 100644 index f98cb4e..0000000 --- a/V2/SoftwareLicense/SoftwareLicenseResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense -{ - [Obsolete("This class is obsolete. Use SoftwareLicensePostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwareLicenseResponse : global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicensePostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicenseResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicenseResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Upsert/UpsertPostRequestBody.cs b/V2/SoftwareLicense/Upsert/UpsertPostRequestBody.cs deleted file mode 100644 index a0fd3eb..0000000 --- a/V2/SoftwareLicense/Upsert/UpsertPostRequestBody.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Upsert -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UpsertPostRequestBody : 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; } - /// Indicates the names of assigned licensees and removes those not specified -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? CurrentLicensees { get; set; } -#nullable restore -#else - public List CurrentLicensees { get; set; } -#endif - /// Indicates the current usage of the software license - public int? CurrentUsage { get; set; } - /// Indicates the purchase date of the software license in unix epoch milliseconds - public long? Date { get; set; } - /// Indicates a description for the software license -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Indicates the names of the licensees on which the license will be assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? LicenseesToAssign { get; set; } -#nullable restore -#else - public List LicenseesToAssign { get; set; } -#endif - /// Indicates the names of the licensees on which the license will be remowed -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? LicenseesToRemove { get; set; } -#nullable restore -#else - public List LicenseesToRemove { get; set; } -#endif - /// Indicates the name of the software license -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Indicates a note about the software license -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Note { get; set; } -#nullable restore -#else - public string Note { get; set; } -#endif - /// Name of the publisher -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? PublisherName { get; set; } -#nullable restore -#else - public string PublisherName { get; set; } -#endif - /// Indicates the quantity of the software license - public int? Quantity { get; set; } - /// Indicates the scope of the software license -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostRequestBody_scope? Scope { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostRequestBody_scope Scope { get; set; } -#endif - /// Indicates the type of the software license - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostRequestBody_type? Type { get; set; } - /// Name of the vendor -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? VendorName { get; set; } -#nullable restore -#else - public string VendorName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UpsertPostRequestBody() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "currentLicensees", n => { CurrentLicensees = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "currentUsage", n => { CurrentUsage = n.GetIntValue(); } }, - { "date", n => { Date = n.GetLongValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "licenseesToAssign", n => { LicenseesToAssign = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "licenseesToRemove", n => { LicenseesToRemove = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "note", n => { Note = n.GetStringValue(); } }, - { "publisherName", n => { PublisherName = n.GetStringValue(); } }, - { "quantity", n => { Quantity = n.GetIntValue(); } }, - { "scope", n => { Scope = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostRequestBody_scope.CreateFromDiscriminatorValue); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "vendorName", n => { VendorName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("currentLicensees", CurrentLicensees); - writer.WriteIntValue("currentUsage", CurrentUsage); - writer.WriteLongValue("date", Date); - writer.WriteStringValue("description", Description); - writer.WriteCollectionOfPrimitiveValues("licenseesToAssign", LicenseesToAssign); - writer.WriteCollectionOfPrimitiveValues("licenseesToRemove", LicenseesToRemove); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("note", Note); - writer.WriteStringValue("publisherName", PublisherName); - writer.WriteIntValue("quantity", Quantity); - writer.WriteObjectValue("scope", Scope); - writer.WriteEnumValue("type", Type); - writer.WriteStringValue("vendorName", VendorName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Upsert/UpsertPostRequestBody_scope.cs b/V2/SoftwareLicense/Upsert/UpsertPostRequestBody_scope.cs deleted file mode 100644 index e30c043..0000000 --- a/V2/SoftwareLicense/Upsert/UpsertPostRequestBody_scope.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Upsert -{ - /// - /// Indicates the scope of the software license - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class UpsertPostRequestBody_scope : 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; } - /// Indicates if the scope is global - public bool? Global { get; set; } - /// Indicates the location names for the scope -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? LocationNames { get; set; } -#nullable restore -#else - public List LocationNames { get; set; } -#endif - /// Indicates the organization names for the scope -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? OrganizationNames { get; set; } -#nullable restore -#else - public List OrganizationNames { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UpsertPostRequestBody_scope() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostRequestBody_scope CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostRequestBody_scope(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "global", n => { Global = n.GetBoolValue(); } }, - { "locationNames", n => { LocationNames = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "organizationNames", n => { OrganizationNames = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("global", Global); - writer.WriteCollectionOfPrimitiveValues("locationNames", LocationNames); - writer.WriteCollectionOfPrimitiveValues("organizationNames", OrganizationNames); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Upsert/UpsertPostRequestBody_type.cs b/V2/SoftwareLicense/Upsert/UpsertPostRequestBody_type.cs deleted file mode 100644 index cd8870c..0000000 --- a/V2/SoftwareLicense/Upsert/UpsertPostRequestBody_type.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Upsert -{ - /// Indicates the type of the software license - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum UpsertPostRequestBody_type - { - [EnumMember(Value = "PER_DEVICE")] - #pragma warning disable CS1591 - PER_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "PER_END_USER")] - #pragma warning disable CS1591 - PER_END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/Upsert/UpsertPostResponse.cs b/V2/SoftwareLicense/Upsert/UpsertPostResponse.cs deleted file mode 100644 index 44bed57..0000000 --- a/V2/SoftwareLicense/Upsert/UpsertPostResponse.cs +++ /dev/null @@ -1,195 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Upsert -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UpsertPostResponse : 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 assigmentAutomationSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_assigmentAutomationSettings? AssigmentAutomationSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_assigmentAutomationSettings AssigmentAutomationSettings { get; set; } -#endif - /// The automated property - public bool? Automated { get; set; } - /// The currentUsage property - public int? CurrentUsage { get; set; } - /// The daysToExpire property - public int? DaysToExpire { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The expired property - public bool? Expired { get; set; } - /// The id property - public int? Id { get; set; } - /// The licenseAssignmentList property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? LicenseAssignmentList { get; set; } -#nullable restore -#else - public List LicenseAssignmentList { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The note property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Note { get; set; } -#nullable restore -#else - public string Note { get; set; } -#endif - /// The notificationChannelInfo property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_notificationChannelInfo? NotificationChannelInfo { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_notificationChannelInfo NotificationChannelInfo { get; set; } -#endif - /// The publisher property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_publisher? Publisher { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_publisher Publisher { get; set; } -#endif - /// The publisherId property - public int? PublisherId { get; set; } - /// The purchaseDate property - public long? PurchaseDate { get; set; } - /// The quantity property - public int? Quantity { get; set; } - /// The scope property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_scope? Scope { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_scope Scope { get; set; } -#endif - /// The term property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_term? Term { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_term Term { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_type? Type { get; set; } - /// The vendor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_vendor? Vendor { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_vendor Vendor { get; set; } -#endif - /// The vendorId property - public int? VendorId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public UpsertPostResponse() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assigmentAutomationSettings", n => { AssigmentAutomationSettings = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_assigmentAutomationSettings.CreateFromDiscriminatorValue); } }, - { "automated", n => { Automated = n.GetBoolValue(); } }, - { "currentUsage", n => { CurrentUsage = n.GetIntValue(); } }, - { "daysToExpire", n => { DaysToExpire = n.GetIntValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "expired", n => { Expired = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "licenseAssignmentList", n => { LicenseAssignmentList = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_licenseAssignmentList.CreateFromDiscriminatorValue)?.AsList(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "note", n => { Note = n.GetStringValue(); } }, - { "notificationChannelInfo", n => { NotificationChannelInfo = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_notificationChannelInfo.CreateFromDiscriminatorValue); } }, - { "publisher", n => { Publisher = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_publisher.CreateFromDiscriminatorValue); } }, - { "publisherId", n => { PublisherId = n.GetIntValue(); } }, - { "purchaseDate", n => { PurchaseDate = n.GetLongValue(); } }, - { "quantity", n => { Quantity = n.GetIntValue(); } }, - { "scope", n => { Scope = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_scope.CreateFromDiscriminatorValue); } }, - { "term", n => { Term = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_term.CreateFromDiscriminatorValue); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "vendor", n => { Vendor = n.GetObjectValue(global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_vendor.CreateFromDiscriminatorValue); } }, - { "vendorId", n => { VendorId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assigmentAutomationSettings", AssigmentAutomationSettings); - writer.WriteBoolValue("automated", Automated); - writer.WriteIntValue("currentUsage", CurrentUsage); - writer.WriteIntValue("daysToExpire", DaysToExpire); - writer.WriteStringValue("description", Description); - writer.WriteBoolValue("expired", Expired); - writer.WriteIntValue("id", Id); - writer.WriteCollectionOfObjectValues("licenseAssignmentList", LicenseAssignmentList); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("note", Note); - writer.WriteObjectValue("notificationChannelInfo", NotificationChannelInfo); - writer.WriteObjectValue("publisher", Publisher); - writer.WriteIntValue("publisherId", PublisherId); - writer.WriteLongValue("purchaseDate", PurchaseDate); - writer.WriteIntValue("quantity", Quantity); - writer.WriteObjectValue("scope", Scope); - writer.WriteObjectValue("term", Term); - writer.WriteEnumValue("type", Type); - writer.WriteObjectValue("vendor", Vendor); - writer.WriteIntValue("vendorId", VendorId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Upsert/UpsertPostResponse_assigmentAutomationSettings.cs b/V2/SoftwareLicense/Upsert/UpsertPostResponse_assigmentAutomationSettings.cs deleted file mode 100644 index 11c253b..0000000 --- a/V2/SoftwareLicense/Upsert/UpsertPostResponse_assigmentAutomationSettings.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Upsert -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UpsertPostResponse_assigmentAutomationSettings : 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 assignmentType property - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_assigmentAutomationSettings_assignmentType? AssignmentType { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UpsertPostResponse_assigmentAutomationSettings() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_assigmentAutomationSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_assigmentAutomationSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignmentType", n => { AssignmentType = n.GetEnumValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignmentType", AssignmentType); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Upsert/UpsertPostResponse_assigmentAutomationSettings_assignmentType.cs b/V2/SoftwareLicense/Upsert/UpsertPostResponse_assigmentAutomationSettings_assignmentType.cs deleted file mode 100644 index c9f563b..0000000 --- a/V2/SoftwareLicense/Upsert/UpsertPostResponse_assigmentAutomationSettings_assignmentType.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Upsert -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum UpsertPostResponse_assigmentAutomationSettings_assignmentType - #pragma warning restore CS1591 - { - [EnumMember(Value = "NORMALIZED_SOFTWARE")] - #pragma warning disable CS1591 - NORMALIZED_SOFTWARE, - #pragma warning restore CS1591 - [EnumMember(Value = "SOFTWARE_INVENTORY")] - #pragma warning disable CS1591 - SOFTWARE_INVENTORY, - #pragma warning restore CS1591 - [EnumMember(Value = "DEVICE_SEARCH_GROUPS")] - #pragma warning disable CS1591 - DEVICE_SEARCH_GROUPS, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER_ROLES")] - #pragma warning disable CS1591 - END_USER_ROLES, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/Upsert/UpsertPostResponse_licenseAssignmentList.cs b/V2/SoftwareLicense/Upsert/UpsertPostResponse_licenseAssignmentList.cs deleted file mode 100644 index 8285b61..0000000 --- a/V2/SoftwareLicense/Upsert/UpsertPostResponse_licenseAssignmentList.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Upsert -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UpsertPostResponse_licenseAssignmentList : 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 licenseeEmail property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LicenseeEmail { get; set; } -#nullable restore -#else - public string LicenseeEmail { get; set; } -#endif - /// The licenseeId property - public int? LicenseeId { get; set; } - /// The licenseeName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LicenseeName { get; set; } -#nullable restore -#else - public string LicenseeName { get; set; } -#endif - /// The licenseeOrganizationId property - public int? LicenseeOrganizationId { get; set; } - /// The licenseeOrganizationName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LicenseeOrganizationName { get; set; } -#nullable restore -#else - public string LicenseeOrganizationName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UpsertPostResponse_licenseAssignmentList() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_licenseAssignmentList CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_licenseAssignmentList(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "licenseeEmail", n => { LicenseeEmail = n.GetStringValue(); } }, - { "licenseeId", n => { LicenseeId = n.GetIntValue(); } }, - { "licenseeName", n => { LicenseeName = n.GetStringValue(); } }, - { "licenseeOrganizationId", n => { LicenseeOrganizationId = n.GetIntValue(); } }, - { "licenseeOrganizationName", n => { LicenseeOrganizationName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("licenseeEmail", LicenseeEmail); - writer.WriteIntValue("licenseeId", LicenseeId); - writer.WriteStringValue("licenseeName", LicenseeName); - writer.WriteIntValue("licenseeOrganizationId", LicenseeOrganizationId); - writer.WriteStringValue("licenseeOrganizationName", LicenseeOrganizationName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Upsert/UpsertPostResponse_notificationChannelInfo.cs b/V2/SoftwareLicense/Upsert/UpsertPostResponse_notificationChannelInfo.cs deleted file mode 100644 index cc8d337..0000000 --- a/V2/SoftwareLicense/Upsert/UpsertPostResponse_notificationChannelInfo.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Upsert -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UpsertPostResponse_notificationChannelInfo : 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 email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The pushNotification property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? PushNotification { get; set; } -#nullable restore -#else - public string PushNotification { get; set; } -#endif - /// The sms property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Sms { get; set; } -#nullable restore -#else - public string Sms { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UpsertPostResponse_notificationChannelInfo() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_notificationChannelInfo CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_notificationChannelInfo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "pushNotification", n => { PushNotification = n.GetStringValue(); } }, - { "sms", n => { Sms = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteStringValue("pushNotification", PushNotification); - writer.WriteStringValue("sms", Sms); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Upsert/UpsertPostResponse_publisher.cs b/V2/SoftwareLicense/Upsert/UpsertPostResponse_publisher.cs deleted file mode 100644 index 9f29306..0000000 --- a/V2/SoftwareLicense/Upsert/UpsertPostResponse_publisher.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Upsert -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UpsertPostResponse_publisher : 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 description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UpsertPostResponse_publisher() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_publisher CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_publisher(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Upsert/UpsertPostResponse_scope.cs b/V2/SoftwareLicense/Upsert/UpsertPostResponse_scope.cs deleted file mode 100644 index 90540a8..0000000 --- a/V2/SoftwareLicense/Upsert/UpsertPostResponse_scope.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Upsert -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UpsertPostResponse_scope : 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 global property - public bool? Global { get; set; } - /// The locationIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? LocationIds { get; set; } -#nullable restore -#else - public List LocationIds { get; set; } -#endif - /// The organizationIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? OrganizationIds { get; set; } -#nullable restore -#else - public List OrganizationIds { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UpsertPostResponse_scope() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_scope CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_scope(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "global", n => { Global = n.GetBoolValue(); } }, - { "locationIds", n => { LocationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "organizationIds", n => { OrganizationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("global", Global); - writer.WriteCollectionOfPrimitiveValues("locationIds", LocationIds); - writer.WriteCollectionOfPrimitiveValues("organizationIds", OrganizationIds); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Upsert/UpsertPostResponse_term.cs b/V2/SoftwareLicense/Upsert/UpsertPostResponse_term.cs deleted file mode 100644 index a94cb32..0000000 --- a/V2/SoftwareLicense/Upsert/UpsertPostResponse_term.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Upsert -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UpsertPostResponse_term : 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 autoRenewal property - public bool? AutoRenewal { get; set; } - /// The daysBeforeExpiration property - public int? DaysBeforeExpiration { get; set; } - /// The expirationDate property - public double? ExpirationDate { get; set; } - /// The generateActivityAlert property - public bool? GenerateActivityAlert { get; set; } - /// The hasNotifiedExpirationDate property - public bool? HasNotifiedExpirationDate { get; set; } - /// The hasNotifiedUpToRenewal property - public bool? HasNotifiedUpToRenewal { get; set; } - /// The renewalUnit property - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_term_renewalUnit? RenewalUnit { get; set; } - /// The value property - public int? Value { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public UpsertPostResponse_term() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_term CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_term(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "autoRenewal", n => { AutoRenewal = n.GetBoolValue(); } }, - { "daysBeforeExpiration", n => { DaysBeforeExpiration = n.GetIntValue(); } }, - { "expirationDate", n => { ExpirationDate = n.GetDoubleValue(); } }, - { "generateActivityAlert", n => { GenerateActivityAlert = n.GetBoolValue(); } }, - { "hasNotifiedExpirationDate", n => { HasNotifiedExpirationDate = n.GetBoolValue(); } }, - { "hasNotifiedUpToRenewal", n => { HasNotifiedUpToRenewal = n.GetBoolValue(); } }, - { "renewalUnit", n => { RenewalUnit = n.GetEnumValue(); } }, - { "value", n => { Value = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("autoRenewal", AutoRenewal); - writer.WriteIntValue("daysBeforeExpiration", DaysBeforeExpiration); - writer.WriteDoubleValue("expirationDate", ExpirationDate); - writer.WriteBoolValue("generateActivityAlert", GenerateActivityAlert); - writer.WriteBoolValue("hasNotifiedExpirationDate", HasNotifiedExpirationDate); - writer.WriteBoolValue("hasNotifiedUpToRenewal", HasNotifiedUpToRenewal); - writer.WriteEnumValue("renewalUnit", RenewalUnit); - writer.WriteIntValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Upsert/UpsertPostResponse_term_renewalUnit.cs b/V2/SoftwareLicense/Upsert/UpsertPostResponse_term_renewalUnit.cs deleted file mode 100644 index 27850e7..0000000 --- a/V2/SoftwareLicense/Upsert/UpsertPostResponse_term_renewalUnit.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Upsert -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum UpsertPostResponse_term_renewalUnit - #pragma warning restore CS1591 - { - [EnumMember(Value = "MONTH")] - #pragma warning disable CS1591 - MONTH, - #pragma warning restore CS1591 - [EnumMember(Value = "YEAR")] - #pragma warning disable CS1591 - YEAR, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/Upsert/UpsertPostResponse_type.cs b/V2/SoftwareLicense/Upsert/UpsertPostResponse_type.cs deleted file mode 100644 index 1b60acb..0000000 --- a/V2/SoftwareLicense/Upsert/UpsertPostResponse_type.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Upsert -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum UpsertPostResponse_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "PER_DEVICE")] - #pragma warning disable CS1591 - PER_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "PER_END_USER")] - #pragma warning disable CS1591 - PER_END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - } -} diff --git a/V2/SoftwareLicense/Upsert/UpsertPostResponse_vendor.cs b/V2/SoftwareLicense/Upsert/UpsertPostResponse_vendor.cs deleted file mode 100644 index 6698b47..0000000 --- a/V2/SoftwareLicense/Upsert/UpsertPostResponse_vendor.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Upsert -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UpsertPostResponse_vendor : 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 description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UpsertPostResponse_vendor() - { - 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::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_vendor CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse_vendor(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Upsert/UpsertRequestBuilder.cs b/V2/SoftwareLicense/Upsert/UpsertRequestBuilder.cs deleted file mode 100644 index 27d197d..0000000 --- a/V2/SoftwareLicense/Upsert/UpsertRequestBuilder.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Upsert -{ - /// - /// Builds and executes requests for operations under \v2\software-license\upsert - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class UpsertRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public UpsertRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/software-license/upsert", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public UpsertRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/software-license/upsert", rawUrl) - { - } - /// - /// Create or Update a Software License in a simple way - /// - /// A - /// The request body - /// 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 PostAsUpsertPostResponseAsync(global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsUpsertPostResponseAsync(global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create or Update a Software License in a simple way - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsUpsertPostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create or Update a Software License in a simple way - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class UpsertRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareLicense/Upsert/UpsertResponse.cs b/V2/SoftwareLicense/Upsert/UpsertResponse.cs deleted file mode 100644 index 5372950..0000000 --- a/V2/SoftwareLicense/Upsert/UpsertResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareLicense.Upsert -{ - [Obsolete("This class is obsolete. Use UpsertPostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UpsertResponse : global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertPostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareLicense.Upsert.UpsertResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareProducts/SoftwareProducts.cs b/V2/SoftwareProducts/SoftwareProducts.cs deleted file mode 100644 index ab2a214..0000000 --- a/V2/SoftwareProducts/SoftwareProducts.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.SoftwareProducts -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class SoftwareProducts : ApiException, IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Active - public bool? Active { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Product identifier - public Guid? Id { get; set; } - /// Installable - public bool? Installable { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Product Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ProductName { get; set; } -#nullable restore -#else - public string ProductName { get; set; } -#endif - /// Vendor Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? VendorName { get; set; } -#nullable restore -#else - public string VendorName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SoftwareProducts() - { - 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::NinjaOne.Client.V2.SoftwareProducts.SoftwareProducts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.SoftwareProducts.SoftwareProducts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "installable", n => { Installable = n.GetBoolValue(); } }, - { "productName", n => { ProductName = n.GetStringValue(); } }, - { "vendorName", n => { VendorName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteGuidValue("id", Id); - writer.WriteBoolValue("installable", Installable); - writer.WriteStringValue("productName", ProductName); - writer.WriteStringValue("vendorName", VendorName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/SoftwareProducts/SoftwareProductsRequestBuilder.cs b/V2/SoftwareProducts/SoftwareProductsRequestBuilder.cs deleted file mode 100644 index 8fa8e98..0000000 --- a/V2/SoftwareProducts/SoftwareProductsRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.SoftwareProducts -{ - /// - /// Builds and executes requests for operations under \v2\software-products - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwareProductsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SoftwareProductsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/software-products", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SoftwareProductsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/software-products", rawUrl) - { - } - /// - /// Returns available software products (3rd party patching) - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.SoftwareProducts.SoftwareProducts.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns available software products (3rd party patching) - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.SoftwareProducts.SoftwareProductsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.SoftwareProducts.SoftwareProductsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SoftwareProductsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/EndUser/EndUserRequestBuilder.cs b/V2/Tab/EndUser/EndUserRequestBuilder.cs deleted file mode 100644 index d001f44..0000000 --- a/V2/Tab/EndUser/EndUserRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Tab.EndUser.Order; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Tab.EndUser -{ - /// - /// Builds and executes requests for operations under \v2\tab\end-user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUserRequestBuilder : BaseRequestBuilder - { - /// The order property - public global::NinjaOne.Client.V2.Tab.EndUser.Order.OrderRequestBuilder Order - { - get => new global::NinjaOne.Client.V2.Tab.EndUser.Order.OrderRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public EndUserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/end-user", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public EndUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/end-user", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/EndUser/Order/Order.cs b/V2/Tab/EndUser/Order/Order.cs deleted file mode 100644 index aa61097..0000000 --- a/V2/Tab/EndUser/Order/Order.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.EndUser.Order -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Order : 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 position property - public int? Position { get; set; } - /// The tabId property - public int? TabId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Order() - { - 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::NinjaOne.Client.V2.Tab.EndUser.Order.Order CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.EndUser.Order.Order(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "position", n => { Position = n.GetIntValue(); } }, - { "tabId", n => { TabId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("position", Position); - writer.WriteIntValue("tabId", TabId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/EndUser/Order/OrderRequestBuilder.cs b/V2/Tab/EndUser/Order/OrderRequestBuilder.cs deleted file mode 100644 index 1b822f2..0000000 --- a/V2/Tab/EndUser/Order/OrderRequestBuilder.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tab.EndUser.Order -{ - /// - /// Builds and executes requests for operations under \v2\tab\end-user\order - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrderRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OrderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/end-user/order", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OrderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/end-user/order", rawUrl) - { - } - /// - /// Update the order of custom tabs for end-user tabs. NOTE: All tabs defined for end-users must be specified in the payload - /// - /// A - /// The request body - /// 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 PatchAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Update the order of custom tabs for end-user tabs. NOTE: All tabs defined for end-users must be specified in the payload - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tab.EndUser.Order.OrderRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tab.EndUser.Order.OrderRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrderRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/EndUser/EndUserRequestBuilder.cs b/V2/Tab/Item/EndUser/EndUserRequestBuilder.cs deleted file mode 100644 index 28518b2..0000000 --- a/V2/Tab/Item/EndUser/EndUserRequestBuilder.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tab.Item.EndUser -{ - /// - /// Builds and executes requests for operations under \v2\tab\{tabId}\end-user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUserRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public EndUserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/{tabId}/end-user", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public EndUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/{tabId}/end-user", rawUrl) - { - } - /// - /// Retrieve the requested tab along with any extensions for end-user tabs - /// - /// 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) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Retrieve the requested tab along with any extensions for end-user tabs - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tab.Item.EndUser.EndUserRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tab.Item.EndUser.EndUserRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUserRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/Organization/OrganizationRequestBuilder.cs b/V2/Tab/Item/Organization/OrganizationRequestBuilder.cs deleted file mode 100644 index 46d2fc8..0000000 --- a/V2/Tab/Item/Organization/OrganizationRequestBuilder.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tab.Item.Organization -{ - /// - /// Builds and executes requests for operations under \v2\tab\{tabId}\organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OrganizationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/{tabId}/organization", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OrganizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/{tabId}/organization", rawUrl) - { - } - /// - /// Retrieve the requested tab along with any extensions for organization and location tabs - /// - /// 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) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Retrieve the requested tab along with any extensions for organization and location tabs - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tab.Item.Organization.OrganizationRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tab.Item.Organization.OrganizationRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/Role/Item/WithRoleItemRequestBuilder.cs b/V2/Tab/Item/Role/Item/WithRoleItemRequestBuilder.cs deleted file mode 100644 index f8c230c..0000000 --- a/V2/Tab/Item/Role/Item/WithRoleItemRequestBuilder.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tab.Item.Role.Item -{ - /// - /// Builds and executes requests for operations under \v2\tab\{tabId}\role\{roleId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRoleItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithRoleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/{tabId}/role/{roleId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithRoleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/{tabId}/role/{roleId}", rawUrl) - { - } - /// - /// Retrieve the requested tab along with any extensions based on the supplied roleId - /// - /// 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) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Retrieve the requested tab along with any extensions based on the supplied roleId - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tab.Item.Role.Item.WithRoleItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tab.Item.Role.Item.WithRoleItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRoleItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/Role/RoleRequestBuilder.cs b/V2/Tab/Item/Role/RoleRequestBuilder.cs deleted file mode 100644 index f5c12f2..0000000 --- a/V2/Tab/Item/Role/RoleRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Tab.Item.Role.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Tab.Item.Role -{ - /// - /// Builds and executes requests for operations under \v2\tab\{tabId}\role - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RoleRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.tab.item.role.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Tab.Item.Role.Item.WithRoleItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("roleId", position); - return new global::NinjaOne.Client.V2.Tab.Item.Role.Item.WithRoleItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.tab.item.role.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Tab.Item.Role.Item.WithRoleItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("roleId", position); - return new global::NinjaOne.Client.V2.Tab.Item.Role.Item.WithRoleItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RoleRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/{tabId}/role", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RoleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/{tabId}/role", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/WithTabGetResponse.cs b/V2/Tab/Item/WithTabGetResponse.cs deleted file mode 100644 index 8035372..0000000 --- a/V2/Tab/Item/WithTabGetResponse.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTabGetResponse : 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 default property - public bool? Default { get; set; } - /// The description to use for the custom tab -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// For entity types that are bound to an ID, this will be the id of the object. Otherwise, omitted - public int? EntityId { get; set; } - /// The type of object the tab is for (ie, NODE_ROLE, ORGANIZATION, END_USER, etc) - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_entityType? EntityType { get; set; } - /// Tab ID - public int? Id { get; set; } - /// True if this is a default tab, false otherwise - public bool? IsDefault { get; set; } - /// The content of the tab -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Items { get; set; } -#nullable restore -#else - public List Items { get; set; } -#endif - /// Display name of tab -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// For tab extensions, this will be the id of the tab that was extended (ie, the 'root tab') - public int? ParentTabId { get; set; } - /// Integer representing the position of the tab. Used when ordering multiple tabs - public int? Position { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithTabGetResponse() - { - 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::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "default", n => { Default = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "entityType", n => { EntityType = n.GetEnumValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "isDefault", n => { IsDefault = n.GetBoolValue(); } }, - { "items", n => { Items = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items.CreateFromDiscriminatorValue)?.AsList(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "parentTabId", n => { ParentTabId = n.GetIntValue(); } }, - { "position", n => { Position = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("default", Default); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("entityId", EntityId); - writer.WriteEnumValue("entityType", EntityType); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("isDefault", IsDefault); - writer.WriteCollectionOfObjectValues("items", Items); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("parentTabId", ParentTabId); - writer.WriteIntValue("position", Position); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/WithTabGetResponse_entityType.cs b/V2/Tab/Item/WithTabGetResponse_entityType.cs deleted file mode 100644 index 91d8072..0000000 --- a/V2/Tab/Item/WithTabGetResponse_entityType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - /// The type of object the tab is for (ie, NODE_ROLE, ORGANIZATION, END_USER, etc) - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithTabGetResponse_entityType - { - [EnumMember(Value = "NODE_ROLE")] - #pragma warning disable CS1591 - NODE_ROLE, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabGetResponse_items.cs b/V2/Tab/Item/WithTabGetResponse_items.cs deleted file mode 100644 index da67c6c..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items.cs +++ /dev/null @@ -1,182 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - /// - /// This object represents either an attribute, or a UI Element. The available attributes will depend on which type it is - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithTabGetResponse_items : IAdditionalDataHolder, IParsable - { - /// Whether the attribute is active or not - public bool? Active { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Type of API permission on the attribute - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_apiPermission? ApiPermission { get; set; } - /// Scope of the attribute. NOTE: This field is being depricated - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_attributeScope? AttributeScope { get; set; } - /// Type of the attribute - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_attributeType? AttributeType { get; set; } - /// For multi-select attributes, these are the available content options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content? Content { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content Content { get; set; } -#endif - /// The time that the attribute was created (unix epoch) - public double? CreateTime { get; set; } - /// For multi-select attributes, this is the id of the default value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DefaultValue { get; set; } -#nullable restore -#else - public string DefaultValue { get; set; } -#endif - /// Definition scopes of the attribute -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DefinitionScope { get; set; } -#nullable restore -#else - public List DefinitionScope { get; set; } -#endif - /// Description of the content item -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// If the attribute references a specific entity, its type will be specified in this field - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_entityType? EntityType { get; set; } - /// Field name of the attribute -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// ID of an attribute - public int? Id { get; set; } - /// Name of the content item -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Type of script permission on the attribute - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_scriptPermission? ScriptPermission { get; set; } - /// Type of technician permission on the attribute - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_technicianPermission? TechnicianPermission { get; set; } - /// For UI elements, timestamp of when the element was created (unix epoch) - public double? UiElementCreateTime { get; set; } - /// For UI elements, type of the element - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_uiElementType? UiElementType { get; set; } - /// For UI elements, the uuid of the element - public Guid? UiElementUid { get; set; } - /// For UI elements, timestamp of when the element was last updated (unix epoch) - public double? UiElementUpdateTime { get; set; } - /// For UI elements, value of the element -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementValue { get; set; } -#nullable restore -#else - public string UiElementValue { get; set; } -#endif - /// The time that the attribute was last updated (unix epoch) - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithTabGetResponse_items() - { - 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::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "apiPermission", n => { ApiPermission = n.GetEnumValue(); } }, - { "attributeScope", n => { AttributeScope = n.GetEnumValue(); } }, - { "attributeType", n => { AttributeType = n.GetEnumValue(); } }, - { "content", n => { Content = n.GetObjectValue(global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content.CreateFromDiscriminatorValue); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "defaultValue", n => { DefaultValue = n.GetStringValue(); } }, - { "definitionScope", n => { DefinitionScope = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "entityType", n => { EntityType = n.GetEnumValue(); } }, - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "scriptPermission", n => { ScriptPermission = n.GetEnumValue(); } }, - { "technicianPermission", n => { TechnicianPermission = n.GetEnumValue(); } }, - { "uiElementCreateTime", n => { UiElementCreateTime = n.GetDoubleValue(); } }, - { "uiElementType", n => { UiElementType = n.GetEnumValue(); } }, - { "uiElementUid", n => { UiElementUid = n.GetGuidValue(); } }, - { "uiElementUpdateTime", n => { UiElementUpdateTime = n.GetDoubleValue(); } }, - { "uiElementValue", n => { UiElementValue = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteEnumValue("apiPermission", ApiPermission); - writer.WriteEnumValue("attributeScope", AttributeScope); - writer.WriteEnumValue("attributeType", AttributeType); - writer.WriteObjectValue("content", Content); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("defaultValue", DefaultValue); - writer.WriteCollectionOfEnumValues("definitionScope", DefinitionScope); - writer.WriteStringValue("description", Description); - writer.WriteEnumValue("entityType", EntityType); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("scriptPermission", ScriptPermission); - writer.WriteEnumValue("technicianPermission", TechnicianPermission); - writer.WriteDoubleValue("uiElementCreateTime", UiElementCreateTime); - writer.WriteEnumValue("uiElementType", UiElementType); - writer.WriteGuidValue("uiElementUid", UiElementUid); - writer.WriteDoubleValue("uiElementUpdateTime", UiElementUpdateTime); - writer.WriteStringValue("uiElementValue", UiElementValue); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/WithTabGetResponse_items_apiPermission.cs b/V2/Tab/Item/WithTabGetResponse_items_apiPermission.cs deleted file mode 100644 index e9beba6..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_apiPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - /// Type of API permission on the attribute - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithTabGetResponse_items_apiPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabGetResponse_items_attributeScope.cs b/V2/Tab/Item/WithTabGetResponse_items_attributeScope.cs deleted file mode 100644 index 90b04d9..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_attributeScope.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - /// Scope of the attribute. NOTE: This field is being depricated - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithTabGetResponse_items_attributeScope - { - [EnumMember(Value = "NODE_GLOBAL")] - #pragma warning disable CS1591 - NODE_GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ROLE")] - #pragma warning disable CS1591 - NODE_ROLE, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_CLASS")] - #pragma warning disable CS1591 - NODE_CLASS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabGetResponse_items_attributeType.cs b/V2/Tab/Item/WithTabGetResponse_items_attributeType.cs deleted file mode 100644 index ac8b92d..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_attributeType.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - /// Type of the attribute - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithTabGetResponse_items_attributeType - { - [EnumMember(Value = "DROPDOWN")] - #pragma warning disable CS1591 - DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "MULTI_SELECT")] - #pragma warning disable CS1591 - MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKBOX")] - #pragma warning disable CS1591 - CHECKBOX, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT")] - #pragma warning disable CS1591 - TEXT, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_MULTILINE")] - #pragma warning disable CS1591 - TEXT_MULTILINE, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_ENCRYPTED")] - #pragma warning disable CS1591 - TEXT_ENCRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NUMERIC")] - #pragma warning disable CS1591 - NUMERIC, - #pragma warning restore CS1591 - [EnumMember(Value = "DECIMAL")] - #pragma warning disable CS1591 - DECIMAL, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE")] - #pragma warning disable CS1591 - DATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE_TIME")] - #pragma warning disable CS1591 - DATE_TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "TIME")] - #pragma warning disable CS1591 - TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_DROPDOWN")] - #pragma warning disable CS1591 - NODE_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MULTI_SELECT")] - #pragma warning disable CS1591 - NODE_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_LOCATION_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_LOCATION_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "EMAIL")] - #pragma warning disable CS1591 - EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "PHONE")] - #pragma warning disable CS1591 - PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "IP_ADDRESS")] - #pragma warning disable CS1591 - IP_ADDRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "WYSIWYG")] - #pragma warning disable CS1591 - WYSIWYG, - #pragma warning restore CS1591 - [EnumMember(Value = "URL")] - #pragma warning disable CS1591 - URL, - #pragma warning restore CS1591 - [EnumMember(Value = "MONETARY")] - #pragma warning disable CS1591 - MONETARY, - #pragma warning restore CS1591 - [EnumMember(Value = "IDENTIFIER")] - #pragma warning disable CS1591 - IDENTIFIER, - #pragma warning restore CS1591 - [EnumMember(Value = "TOTP")] - #pragma warning disable CS1591 - TOTP, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabGetResponse_items_content.cs b/V2/Tab/Item/WithTabGetResponse_items_content.cs deleted file mode 100644 index 58b7a2d..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_content.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - /// - /// For multi-select attributes, these are the available content options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithTabGetResponse_items_content : 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; } - /// The advancedSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings? AdvancedSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings AdvancedSettings { get; set; } -#endif - /// Whether the attribute should be customized for end users - public bool? CustomizeForEndUser { get; set; } - /// The endUserCustomization property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_endUserCustomization? EndUserCustomization { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_endUserCustomization EndUserCustomization { get; set; } -#endif - /// Text to include after rendering the attribute -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FooterText { get; set; } -#nullable restore -#else - public string FooterText { get; set; } -#endif - /// Boolean representing whether the attribute is required or not - public bool? Required { get; set; } - /// Text to use as a tooltip for the attribute -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TooltipText { get; set; } -#nullable restore -#else - public string TooltipText { get; set; } -#endif - /// For multi-select attributes, this is the list of values available -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithTabGetResponse_items_content() - { - 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::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "advancedSettings", n => { AdvancedSettings = n.GetObjectValue(global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings.CreateFromDiscriminatorValue); } }, - { "customizeForEndUser", n => { CustomizeForEndUser = n.GetBoolValue(); } }, - { "endUserCustomization", n => { EndUserCustomization = n.GetObjectValue(global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_endUserCustomization.CreateFromDiscriminatorValue); } }, - { "footerText", n => { FooterText = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tooltipText", n => { TooltipText = n.GetStringValue(); } }, - { "values", n => { Values = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_values.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("advancedSettings", AdvancedSettings); - writer.WriteBoolValue("customizeForEndUser", CustomizeForEndUser); - writer.WriteObjectValue("endUserCustomization", EndUserCustomization); - writer.WriteStringValue("footerText", FooterText); - writer.WriteBoolValue("required", Required); - writer.WriteStringValue("tooltipText", TooltipText); - writer.WriteCollectionOfObjectValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings.cs b/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings.cs deleted file mode 100644 index 424951d..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTabGetResponse_items_content_advancedSettings : 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 complexityRules property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_complexityRules? ComplexityRules { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_complexityRules ComplexityRules { get; set; } -#endif - /// The dateFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_dateFilters? DateFilters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_dateFilters DateFilters { get; set; } -#endif - /// The expandLargeValueOnRender property - public bool? ExpandLargeValueOnRender { get; set; } - /// The fileExtensions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FileExtensions { get; set; } -#nullable restore -#else - public List FileExtensions { get; set; } -#endif - /// The fileMaxSize property - public int? FileMaxSize { get; set; } - /// The identifier property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_identifier? Identifier { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_identifier Identifier { get; set; } -#endif - /// The ipAddressType property - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_ipAddressType? IpAddressType { get; set; } - /// The maxCharacters property - public int? MaxCharacters { get; set; } - /// The monetary property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_monetary? Monetary { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_monetary Monetary { get; set; } -#endif - /// The nodeClass property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? NodeClass { get; set; } -#nullable restore -#else - public List NodeClass { get; set; } -#endif - /// The numericRange property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_numericRange? NumericRange { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_numericRange NumericRange { get; set; } -#endif - /// The org property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Org { get; set; } -#nullable restore -#else - public List Org { get; set; } -#endif - /// The templates property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Templates { get; set; } -#nullable restore -#else - public List Templates { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithTabGetResponse_items_content_advancedSettings() - { - 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::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "complexityRules", n => { ComplexityRules = n.GetObjectValue(global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_complexityRules.CreateFromDiscriminatorValue); } }, - { "dateFilters", n => { DateFilters = n.GetObjectValue(global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_dateFilters.CreateFromDiscriminatorValue); } }, - { "expandLargeValueOnRender", n => { ExpandLargeValueOnRender = n.GetBoolValue(); } }, - { "fileExtensions", n => { FileExtensions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "fileMaxSize", n => { FileMaxSize = n.GetIntValue(); } }, - { "identifier", n => { Identifier = n.GetObjectValue(global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_identifier.CreateFromDiscriminatorValue); } }, - { "ipAddressType", n => { IpAddressType = n.GetEnumValue(); } }, - { "maxCharacters", n => { MaxCharacters = n.GetIntValue(); } }, - { "monetary", n => { Monetary = n.GetObjectValue(global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_monetary.CreateFromDiscriminatorValue); } }, - { "nodeClass", n => { NodeClass = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "numericRange", n => { NumericRange = n.GetObjectValue(global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_numericRange.CreateFromDiscriminatorValue); } }, - { "org", n => { Org = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "templates", n => { Templates = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("complexityRules", ComplexityRules); - writer.WriteObjectValue("dateFilters", DateFilters); - writer.WriteBoolValue("expandLargeValueOnRender", ExpandLargeValueOnRender); - writer.WriteCollectionOfPrimitiveValues("fileExtensions", FileExtensions); - writer.WriteIntValue("fileMaxSize", FileMaxSize); - writer.WriteObjectValue("identifier", Identifier); - writer.WriteEnumValue("ipAddressType", IpAddressType); - writer.WriteIntValue("maxCharacters", MaxCharacters); - writer.WriteObjectValue("monetary", Monetary); - writer.WriteCollectionOfEnumValues("nodeClass", NodeClass); - writer.WriteObjectValue("numericRange", NumericRange); - writer.WriteCollectionOfPrimitiveValues("org", Org); - writer.WriteCollectionOfPrimitiveValues("templates", Templates); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_complexityRules.cs b/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_complexityRules.cs deleted file mode 100644 index 16ed1fa..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_complexityRules.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTabGetResponse_items_content_advancedSettings_complexityRules : 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 greaterOrEqualThanSixCharacters property - public bool? GreaterOrEqualThanSixCharacters { get; set; } - /// The mustContainOneInteger property - public bool? MustContainOneInteger { get; set; } - /// The mustContainOneLowercaseLetter property - public bool? MustContainOneLowercaseLetter { get; set; } - /// The mustContainOneUppercaseLetter property - public bool? MustContainOneUppercaseLetter { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithTabGetResponse_items_content_advancedSettings_complexityRules() - { - 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::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_complexityRules CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_complexityRules(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "greaterOrEqualThanSixCharacters", n => { GreaterOrEqualThanSixCharacters = n.GetBoolValue(); } }, - { "mustContainOneInteger", n => { MustContainOneInteger = n.GetBoolValue(); } }, - { "mustContainOneLowercaseLetter", n => { MustContainOneLowercaseLetter = n.GetBoolValue(); } }, - { "mustContainOneUppercaseLetter", n => { MustContainOneUppercaseLetter = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("greaterOrEqualThanSixCharacters", GreaterOrEqualThanSixCharacters); - writer.WriteBoolValue("mustContainOneInteger", MustContainOneInteger); - writer.WriteBoolValue("mustContainOneLowercaseLetter", MustContainOneLowercaseLetter); - writer.WriteBoolValue("mustContainOneUppercaseLetter", MustContainOneUppercaseLetter); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_dateFilters.cs b/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_dateFilters.cs deleted file mode 100644 index 16e8ae7..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_dateFilters.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTabGetResponse_items_content_advancedSettings_dateFilters : 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 selected property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Selected { get; set; } -#nullable restore -#else - public List Selected { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_dateFilters_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithTabGetResponse_items_content_advancedSettings_dateFilters() - { - 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::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_dateFilters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_dateFilters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "selected", n => { Selected = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("selected", Selected); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_dateFilters_type.cs b/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_dateFilters_type.cs deleted file mode 100644 index 77c465e..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_dateFilters_type.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTabGetResponse_items_content_advancedSettings_dateFilters_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "INCLUDE")] - #pragma warning disable CS1591 - INCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "EXCLUDE")] - #pragma warning disable CS1591 - EXCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "PAST_DATES_ONLY")] - #pragma warning disable CS1591 - PAST_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "FUTURE_DATES_ONLY")] - #pragma warning disable CS1591 - FUTURE_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "RANGE")] - #pragma warning disable CS1591 - RANGE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_identifier.cs b/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_identifier.cs deleted file mode 100644 index 3682ae3..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_identifier.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTabGetResponse_items_content_advancedSettings_identifier : 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 assignTo property - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_identifier_assignTo? AssignTo { get; set; } - /// The automaticGenerationEnabled property - public bool? AutomaticGenerationEnabled { get; set; } - /// The nextSequenceNumber property - public long? NextSequenceNumber { get; set; } - /// The prefix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Prefix { get; set; } -#nullable restore -#else - public string Prefix { get; set; } -#endif - /// The scope property - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_identifier_scope? Scope { get; set; } - /// The suffix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Suffix { get; set; } -#nullable restore -#else - public string Suffix { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_identifier_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithTabGetResponse_items_content_advancedSettings_identifier() - { - 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::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_identifier CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_identifier(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignTo", n => { AssignTo = n.GetEnumValue(); } }, - { "automaticGenerationEnabled", n => { AutomaticGenerationEnabled = n.GetBoolValue(); } }, - { "nextSequenceNumber", n => { NextSequenceNumber = n.GetLongValue(); } }, - { "prefix", n => { Prefix = n.GetStringValue(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - { "suffix", n => { Suffix = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignTo", AssignTo); - writer.WriteBoolValue("automaticGenerationEnabled", AutomaticGenerationEnabled); - writer.WriteLongValue("nextSequenceNumber", NextSequenceNumber); - writer.WriteStringValue("prefix", Prefix); - writer.WriteEnumValue("scope", Scope); - writer.WriteStringValue("suffix", Suffix); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_identifier_assignTo.cs b/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_identifier_assignTo.cs deleted file mode 100644 index 887ca56..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_identifier_assignTo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTabGetResponse_items_content_advancedSettings_identifier_assignTo - #pragma warning restore CS1591 - { - [EnumMember(Value = "NEW_ASSETS_ONLY")] - #pragma warning disable CS1591 - NEW_ASSETS_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "NEW_AND_EXISTING_ASSETS")] - #pragma warning disable CS1591 - NEW_AND_EXISTING_ASSETS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_identifier_scope.cs b/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_identifier_scope.cs deleted file mode 100644 index 26c510f..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_identifier_scope.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTabGetResponse_items_content_advancedSettings_identifier_scope - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "GLOBAL")] - #pragma warning disable CS1591 - GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_identifier_type.cs b/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_identifier_type.cs deleted file mode 100644 index d01aefb..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_identifier_type.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTabGetResponse_items_content_advancedSettings_identifier_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - [EnumMember(Value = "SEQUENCE")] - #pragma warning disable CS1591 - SEQUENCE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_ipAddressType.cs b/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_ipAddressType.cs deleted file mode 100644 index 36d5ae1..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_ipAddressType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTabGetResponse_items_content_advancedSettings_ipAddressType - #pragma warning restore CS1591 - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV4")] - #pragma warning disable CS1591 - IPV4, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV6")] - #pragma warning disable CS1591 - IPV6, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_monetary.cs b/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_monetary.cs deleted file mode 100644 index 4834342..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_monetary.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTabGetResponse_items_content_advancedSettings_monetary : 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 currency property - public global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_monetary_currency? Currency { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithTabGetResponse_items_content_advancedSettings_monetary() - { - 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::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_monetary CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_monetary(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "currency", n => { Currency = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("currency", Currency); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_monetary_currency.cs b/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_monetary_currency.cs deleted file mode 100644 index bef3702..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_monetary_currency.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTabGetResponse_items_content_advancedSettings_monetary_currency - #pragma warning restore CS1591 - { - [EnumMember(Value = "USD")] - #pragma warning disable CS1591 - USD, - #pragma warning restore CS1591 - [EnumMember(Value = "EUR")] - #pragma warning disable CS1591 - EUR, - #pragma warning restore CS1591 - [EnumMember(Value = "CAD")] - #pragma warning disable CS1591 - CAD, - #pragma warning restore CS1591 - [EnumMember(Value = "GBP")] - #pragma warning disable CS1591 - GBP, - #pragma warning restore CS1591 - [EnumMember(Value = "AUD")] - #pragma warning disable CS1591 - AUD, - #pragma warning restore CS1591 - [EnumMember(Value = "JPY")] - #pragma warning disable CS1591 - JPY, - #pragma warning restore CS1591 - [EnumMember(Value = "SEK")] - #pragma warning disable CS1591 - SEK, - #pragma warning restore CS1591 - [EnumMember(Value = "NOK")] - #pragma warning disable CS1591 - NOK, - #pragma warning restore CS1591 - [EnumMember(Value = "DKK")] - #pragma warning disable CS1591 - DKK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHF")] - #pragma warning disable CS1591 - CHF, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_nodeClass.cs b/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_nodeClass.cs deleted file mode 100644 index 2c36672..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_nodeClass.cs +++ /dev/null @@ -1,144 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTabGetResponse_items_content_advancedSettings_nodeClass - #pragma warning restore CS1591 - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_numericRange.cs b/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_numericRange.cs deleted file mode 100644 index 7a3a772..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_content_advancedSettings_numericRange.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTabGetResponse_items_content_advancedSettings_numericRange : 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 max property - public double? Max { get; set; } - /// The min property - public double? Min { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithTabGetResponse_items_content_advancedSettings_numericRange() - { - 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::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_numericRange CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_advancedSettings_numericRange(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "max", n => { Max = n.GetDoubleValue(); } }, - { "min", n => { Min = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("max", Max); - writer.WriteDoubleValue("min", Min); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/WithTabGetResponse_items_content_endUserCustomization.cs b/V2/Tab/Item/WithTabGetResponse_items_content_endUserCustomization.cs deleted file mode 100644 index 835d4a4..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_content_endUserCustomization.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTabGetResponse_items_content_endUserCustomization : 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 description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithTabGetResponse_items_content_endUserCustomization() - { - 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::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_endUserCustomization CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_endUserCustomization(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "label", n => { Label = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/WithTabGetResponse_items_content_values.cs b/V2/Tab/Item/WithTabGetResponse_items_content_values.cs deleted file mode 100644 index ae99de1..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_content_values.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTabGetResponse_items_content_values : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The active property - public bool? Active { get; set; } - /// 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 id property - public Guid? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The system property - public bool? System { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithTabGetResponse_items_content_values() - { - 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::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_values CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse_items_content_values(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "system", n => { System = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteBoolValue("system", System); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/WithTabGetResponse_items_definitionScope.cs b/V2/Tab/Item/WithTabGetResponse_items_definitionScope.cs deleted file mode 100644 index a94268c..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_definitionScope.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - /// Definition scopes of the attribute - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithTabGetResponse_items_definitionScope - { - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabGetResponse_items_entityType.cs b/V2/Tab/Item/WithTabGetResponse_items_entityType.cs deleted file mode 100644 index 28520a4..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_entityType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - /// If the attribute references a specific entity, its type will be specified in this field - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithTabGetResponse_items_entityType - { - [EnumMember(Value = "USER")] - #pragma warning disable CS1591 - USER, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "TICKET")] - #pragma warning disable CS1591 - TICKET, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabGetResponse_items_scriptPermission.cs b/V2/Tab/Item/WithTabGetResponse_items_scriptPermission.cs deleted file mode 100644 index 32b9151..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_scriptPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - /// Type of script permission on the attribute - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithTabGetResponse_items_scriptPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabGetResponse_items_technicianPermission.cs b/V2/Tab/Item/WithTabGetResponse_items_technicianPermission.cs deleted file mode 100644 index c7a3b60..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_technicianPermission.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - /// Type of technician permission on the attribute - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithTabGetResponse_items_technicianPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "EDITABLE")] - #pragma warning disable CS1591 - EDITABLE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabGetResponse_items_uiElementType.cs b/V2/Tab/Item/WithTabGetResponse_items_uiElementType.cs deleted file mode 100644 index c8e0e3d..0000000 --- a/V2/Tab/Item/WithTabGetResponse_items_uiElementType.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - /// For UI elements, type of the element - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithTabGetResponse_items_uiElementType - { - [EnumMember(Value = "TITLE")] - #pragma warning disable CS1591 - TITLE, - #pragma warning restore CS1591 - [EnumMember(Value = "DESCRIPTION")] - #pragma warning disable CS1591 - DESCRIPTION, - #pragma warning restore CS1591 - [EnumMember(Value = "SEPARATOR")] - #pragma warning disable CS1591 - SEPARATOR, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabItemRequestBuilder.cs b/V2/Tab/Item/WithTabItemRequestBuilder.cs deleted file mode 100644 index ad0b803..0000000 --- a/V2/Tab/Item/WithTabItemRequestBuilder.cs +++ /dev/null @@ -1,221 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Tab.Item.EndUser; -using NinjaOne.Client.V2.Tab.Item.Organization; -using NinjaOne.Client.V2.Tab.Item.Role; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - /// - /// Builds and executes requests for operations under \v2\tab\{tabId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithTabItemRequestBuilder : BaseRequestBuilder - { - /// The endUser property - public global::NinjaOne.Client.V2.Tab.Item.EndUser.EndUserRequestBuilder EndUser - { - get => new global::NinjaOne.Client.V2.Tab.Item.EndUser.EndUserRequestBuilder(PathParameters, RequestAdapter); - } - /// The organization property - public global::NinjaOne.Client.V2.Tab.Item.Organization.OrganizationRequestBuilder Organization - { - get => new global::NinjaOne.Client.V2.Tab.Item.Organization.OrganizationRequestBuilder(PathParameters, RequestAdapter); - } - /// The role property - public global::NinjaOne.Client.V2.Tab.Item.Role.RoleRequestBuilder Role - { - get => new global::NinjaOne.Client.V2.Tab.Item.Role.RoleRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithTabItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/{tabId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithTabItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/{tabId}", rawUrl) - { - } - /// - /// Delete a Custom Tab - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Gets a custom tab. NOTE: This will _not_ fetch tab extensions. You must use the GET tab/{tabId}/role/{roleId} for that - /// - /// 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 GetAsWithTabGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsWithTabGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Gets a custom tab. NOTE: This will _not_ fetch tab extensions. You must use the GET tab/{tabId}/role/{roleId} for that - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use GetAsWithTabGetResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Tab.Item.WithTabResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Update a Custom Tab. This API can be used to either update existing tabs, or create tab 'role extensions' for existing tabs - /// - /// A - /// The request body - /// 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 PatchAsync(global::NinjaOne.Client.V2.Tab.Item.WithTabPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::NinjaOne.Client.V2.Tab.Item.WithTabPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete a Custom Tab - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Gets a custom tab. NOTE: This will _not_ fetch tab extensions. You must use the GET tab/{tabId}/role/{roleId} for that - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Update a Custom Tab. This API can be used to either update existing tabs, or create tab 'role extensions' for existing tabs - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Tab.Item.WithTabPatchRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Tab.Item.WithTabPatchRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tab.Item.WithTabItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tab.Item.WithTabItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithTabItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithTabItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithTabItemRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/WithTabPatchRequestBody.cs b/V2/Tab/Item/WithTabPatchRequestBody.cs deleted file mode 100644 index c0812ee..0000000 --- a/V2/Tab/Item/WithTabPatchRequestBody.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTabPatchRequestBody : 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 items property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Items { get; set; } -#nullable restore -#else - public List Items { get; set; } -#endif - /// The position property - public int? Position { get; set; } - /// The roleId property - public int? RoleId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithTabPatchRequestBody() - { - 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::NinjaOne.Client.V2.Tab.Item.WithTabPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Item.WithTabPatchRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "items", n => { Items = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Tab.Item.WithTabPatchRequestBody_items.CreateFromDiscriminatorValue)?.AsList(); } }, - { "position", n => { Position = n.GetIntValue(); } }, - { "roleId", n => { RoleId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("items", Items); - writer.WriteIntValue("position", Position); - writer.WriteIntValue("roleId", RoleId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/WithTabPatchRequestBody_items.cs b/V2/Tab/Item/WithTabPatchRequestBody_items.cs deleted file mode 100644 index 01408b6..0000000 --- a/V2/Tab/Item/WithTabPatchRequestBody_items.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTabPatchRequestBody_items : 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; } - /// If the content item is an attribute, then this will be the id of that attribute otherwise this should be omitted - public int? Id { get; set; } - /// Specifies whether this item is an ATTRIBUTE or a UI_ELEMENT - public global::NinjaOne.Client.V2.Tab.Item.WithTabPatchRequestBody_items_itemType? ItemType { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The uiElementCreateTime property - public double? UiElementCreateTime { get; set; } - /// The uiElementType property - public global::NinjaOne.Client.V2.Tab.Item.WithTabPatchRequestBody_items_uiElementType? UiElementType { get; set; } - /// The uiElementUid property - public Guid? UiElementUid { get; set; } - /// The uiElementUpdateTime property - public double? UiElementUpdateTime { get; set; } - /// The uiElementValue property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementValue { get; set; } -#nullable restore -#else - public string UiElementValue { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithTabPatchRequestBody_items() - { - 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::NinjaOne.Client.V2.Tab.Item.WithTabPatchRequestBody_items CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Item.WithTabPatchRequestBody_items(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetIntValue(); } }, - { "itemType", n => { ItemType = n.GetEnumValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "uiElementCreateTime", n => { UiElementCreateTime = n.GetDoubleValue(); } }, - { "uiElementType", n => { UiElementType = n.GetEnumValue(); } }, - { "uiElementUid", n => { UiElementUid = n.GetGuidValue(); } }, - { "uiElementUpdateTime", n => { UiElementUpdateTime = n.GetDoubleValue(); } }, - { "uiElementValue", n => { UiElementValue = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("itemType", ItemType); - writer.WriteStringValue("name", Name); - writer.WriteDoubleValue("uiElementCreateTime", UiElementCreateTime); - writer.WriteEnumValue("uiElementType", UiElementType); - writer.WriteGuidValue("uiElementUid", UiElementUid); - writer.WriteDoubleValue("uiElementUpdateTime", UiElementUpdateTime); - writer.WriteStringValue("uiElementValue", UiElementValue); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Item/WithTabPatchRequestBody_items_itemType.cs b/V2/Tab/Item/WithTabPatchRequestBody_items_itemType.cs deleted file mode 100644 index 09de554..0000000 --- a/V2/Tab/Item/WithTabPatchRequestBody_items_itemType.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - /// Specifies whether this item is an ATTRIBUTE or a UI_ELEMENT - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithTabPatchRequestBody_items_itemType - { - [EnumMember(Value = "ATTRIBUTE")] - #pragma warning disable CS1591 - ATTRIBUTE, - #pragma warning restore CS1591 - [EnumMember(Value = "UI_ELEMENT")] - #pragma warning disable CS1591 - UI_ELEMENT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabPatchRequestBody_items_uiElementType.cs b/V2/Tab/Item/WithTabPatchRequestBody_items_uiElementType.cs deleted file mode 100644 index b877902..0000000 --- a/V2/Tab/Item/WithTabPatchRequestBody_items_uiElementType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTabPatchRequestBody_items_uiElementType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TITLE")] - #pragma warning disable CS1591 - TITLE, - #pragma warning restore CS1591 - [EnumMember(Value = "DESCRIPTION")] - #pragma warning disable CS1591 - DESCRIPTION, - #pragma warning restore CS1591 - [EnumMember(Value = "SEPARATOR")] - #pragma warning disable CS1591 - SEPARATOR, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/Item/WithTabResponse.cs b/V2/Tab/Item/WithTabResponse.cs deleted file mode 100644 index 4858692..0000000 --- a/V2/Tab/Item/WithTabResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Item -{ - [Obsolete("This class is obsolete. Use WithTabGetResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTabResponse : global::NinjaOne.Client.V2.Tab.Item.WithTabGetResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.Tab.Item.WithTabResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Item.WithTabResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Organization/Order/Order.cs b/V2/Tab/Organization/Order/Order.cs deleted file mode 100644 index d626759..0000000 --- a/V2/Tab/Organization/Order/Order.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Organization.Order -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Order : 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 position property - public int? Position { get; set; } - /// The tabId property - public int? TabId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Order() - { - 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::NinjaOne.Client.V2.Tab.Organization.Order.Order CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Organization.Order.Order(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "position", n => { Position = n.GetIntValue(); } }, - { "tabId", n => { TabId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("position", Position); - writer.WriteIntValue("tabId", TabId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Organization/Order/OrderRequestBuilder.cs b/V2/Tab/Organization/Order/OrderRequestBuilder.cs deleted file mode 100644 index 68841db..0000000 --- a/V2/Tab/Organization/Order/OrderRequestBuilder.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tab.Organization.Order -{ - /// - /// Builds and executes requests for operations under \v2\tab\organization\order - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrderRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OrderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/organization/order", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OrderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/organization/order", rawUrl) - { - } - /// - /// Update the order of custom tabs for organizations and locations. NOTE: All tabs defined for organizations must be specified in the payload - /// - /// A - /// The request body - /// 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 PatchAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Update the order of custom tabs for organizations and locations. NOTE: All tabs defined for organizations must be specified in the payload - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tab.Organization.Order.OrderRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tab.Organization.Order.OrderRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrderRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Organization/OrganizationRequestBuilder.cs b/V2/Tab/Organization/OrganizationRequestBuilder.cs deleted file mode 100644 index 95ebcda..0000000 --- a/V2/Tab/Organization/OrganizationRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Tab.Organization.Order; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Tab.Organization -{ - /// - /// Builds and executes requests for operations under \v2\tab\organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationRequestBuilder : BaseRequestBuilder - { - /// The order property - public global::NinjaOne.Client.V2.Tab.Organization.Order.OrderRequestBuilder Order - { - get => new global::NinjaOne.Client.V2.Tab.Organization.Order.OrderRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OrganizationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/organization", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OrganizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/organization", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Rename/RenamePatchRequestBody.cs b/V2/Tab/Rename/RenamePatchRequestBody.cs deleted file mode 100644 index 6f4b48a..0000000 --- a/V2/Tab/Rename/RenamePatchRequestBody.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Rename -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RenamePatchRequestBody : 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 description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The tabId property - public int? TabId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RenamePatchRequestBody() - { - 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::NinjaOne.Client.V2.Tab.Rename.RenamePatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Rename.RenamePatchRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tabId", n => { TabId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("tabId", TabId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Rename/RenameRequestBuilder.cs b/V2/Tab/Rename/RenameRequestBuilder.cs deleted file mode 100644 index b11efb2..0000000 --- a/V2/Tab/Rename/RenameRequestBuilder.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tab.Rename -{ - /// - /// Builds and executes requests for operations under \v2\tab\rename - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RenameRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RenameRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/rename", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RenameRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/rename", rawUrl) - { - } - /// - /// Renames a Custom Tab - /// - /// A - /// The request body - /// 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 PatchAsync(global::NinjaOne.Client.V2.Tab.Rename.RenamePatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::NinjaOne.Client.V2.Tab.Rename.RenamePatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Renames a Custom Tab - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Tab.Rename.RenamePatchRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.Tab.Rename.RenamePatchRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tab.Rename.RenameRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tab.Rename.RenameRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RenameRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Role/Item/Order/Order.cs b/V2/Tab/Role/Item/Order/Order.cs deleted file mode 100644 index d9fd070..0000000 --- a/V2/Tab/Role/Item/Order/Order.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Role.Item.Order -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Order : 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 position property - public int? Position { get; set; } - /// The tabId property - public int? TabId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Order() - { - 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::NinjaOne.Client.V2.Tab.Role.Item.Order.Order CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Role.Item.Order.Order(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "position", n => { Position = n.GetIntValue(); } }, - { "tabId", n => { TabId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("position", Position); - writer.WriteIntValue("tabId", TabId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Role/Item/Order/OrderRequestBuilder.cs b/V2/Tab/Role/Item/Order/OrderRequestBuilder.cs deleted file mode 100644 index 4d531ba..0000000 --- a/V2/Tab/Role/Item/Order/OrderRequestBuilder.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tab.Role.Item.Order -{ - /// - /// Builds and executes requests for operations under \v2\tab\role\{roleId}\order - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrderRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OrderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/role/{roleId}/order", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OrderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/role/{roleId}/order", rawUrl) - { - } - /// - /// Update the order of custom tabs for a specific role. NOTE: Only tabs created on this role can be ordered. All tabs defined on the role must be specified in the payload - /// - /// A - /// The request body - /// 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 PatchAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Update the order of custom tabs for a specific role. NOTE: Only tabs created on this role can be ordered. All tabs defined on the role must be specified in the payload - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tab.Role.Item.Order.OrderRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tab.Role.Item.Order.OrderRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrderRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Role/Item/Visibility/Visibility.cs b/V2/Tab/Role/Item/Visibility/Visibility.cs deleted file mode 100644 index b4ce930..0000000 --- a/V2/Tab/Role/Item/Visibility/Visibility.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab.Role.Item.Visibility -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Visibility : 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 hidden property - public bool? Hidden { get; set; } - /// The tabId property - public int? TabId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Visibility() - { - 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::NinjaOne.Client.V2.Tab.Role.Item.Visibility.Visibility CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.Role.Item.Visibility.Visibility(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "hidden", n => { Hidden = n.GetBoolValue(); } }, - { "tabId", n => { TabId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("hidden", Hidden); - writer.WriteIntValue("tabId", TabId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Role/Item/Visibility/VisibilityRequestBuilder.cs b/V2/Tab/Role/Item/Visibility/VisibilityRequestBuilder.cs deleted file mode 100644 index 76022f7..0000000 --- a/V2/Tab/Role/Item/Visibility/VisibilityRequestBuilder.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tab.Role.Item.Visibility -{ - /// - /// Builds and executes requests for operations under \v2\tab\role\{roleId}\visibility - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class VisibilityRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public VisibilityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/role/{roleId}/visibility", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public VisibilityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/role/{roleId}/visibility", rawUrl) - { - } - /// - /// Using this API it is possible to configure tabs to be hidden for roles and their children - /// - /// A - /// The request body - /// 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 PatchAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Using this API it is possible to configure tabs to be hidden for roles and their children - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tab.Role.Item.Visibility.VisibilityRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tab.Role.Item.Visibility.VisibilityRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class VisibilityRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Role/Item/WithRoleItemRequestBuilder.cs b/V2/Tab/Role/Item/WithRoleItemRequestBuilder.cs deleted file mode 100644 index 3ef674d..0000000 --- a/V2/Tab/Role/Item/WithRoleItemRequestBuilder.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Tab.Role.Item.Order; -using NinjaOne.Client.V2.Tab.Role.Item.Visibility; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Tab.Role.Item -{ - /// - /// Builds and executes requests for operations under \v2\tab\role\{roleId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRoleItemRequestBuilder : BaseRequestBuilder - { - /// The order property - public global::NinjaOne.Client.V2.Tab.Role.Item.Order.OrderRequestBuilder Order - { - get => new global::NinjaOne.Client.V2.Tab.Role.Item.Order.OrderRequestBuilder(PathParameters, RequestAdapter); - } - /// The visibility property - public global::NinjaOne.Client.V2.Tab.Role.Item.Visibility.VisibilityRequestBuilder Visibility - { - get => new global::NinjaOne.Client.V2.Tab.Role.Item.Visibility.VisibilityRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithRoleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/role/{roleId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithRoleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/role/{roleId}", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Role/RoleRequestBuilder.cs b/V2/Tab/Role/RoleRequestBuilder.cs deleted file mode 100644 index 6a9e36b..0000000 --- a/V2/Tab/Role/RoleRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Tab.Role.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Tab.Role -{ - /// - /// Builds and executes requests for operations under \v2\tab\role - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RoleRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.tab.role.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Tab.Role.Item.WithRoleItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("roleId", position); - return new global::NinjaOne.Client.V2.Tab.Role.Item.WithRoleItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.tab.role.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Tab.Role.Item.WithRoleItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("roleId", position); - return new global::NinjaOne.Client.V2.Tab.Role.Item.WithRoleItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RoleRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/role", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RoleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/role", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Summary/EndUser/EndUserRequestBuilder.cs b/V2/Tab/Summary/EndUser/EndUserRequestBuilder.cs deleted file mode 100644 index cbbd450..0000000 --- a/V2/Tab/Summary/EndUser/EndUserRequestBuilder.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tab.Summary.EndUser -{ - /// - /// Builds and executes requests for operations under \v2\tab\summary\end-user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUserRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public EndUserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/summary/end-user", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public EndUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/summary/end-user", rawUrl) - { - } - /// - /// Retrieve a summary of the tabs available to end user views - /// - /// 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) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Retrieve a summary of the tabs available to end user views - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tab.Summary.EndUser.EndUserRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tab.Summary.EndUser.EndUserRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUserRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Summary/Organization/OrganizationRequestBuilder.cs b/V2/Tab/Summary/Organization/OrganizationRequestBuilder.cs deleted file mode 100644 index 8952a4f..0000000 --- a/V2/Tab/Summary/Organization/OrganizationRequestBuilder.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tab.Summary.Organization -{ - /// - /// Builds and executes requests for operations under \v2\tab\summary\organization - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public OrganizationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/summary/organization", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public OrganizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/summary/organization", rawUrl) - { - } - /// - /// Retrieve a summary of the tabs available to organizations and locations - /// - /// 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) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Retrieve a summary of the tabs available to organizations and locations - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tab.Summary.Organization.OrganizationRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tab.Summary.Organization.OrganizationRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class OrganizationRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Summary/Role/Item/WithRoleItemRequestBuilder.cs b/V2/Tab/Summary/Role/Item/WithRoleItemRequestBuilder.cs deleted file mode 100644 index 8758ed5..0000000 --- a/V2/Tab/Summary/Role/Item/WithRoleItemRequestBuilder.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tab.Summary.Role.Item -{ - /// - /// Builds and executes requests for operations under \v2\tab\summary\role\{roleId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRoleItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithRoleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/summary/role/{roleId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithRoleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/summary/role/{roleId}", rawUrl) - { - } - /// - /// Retrieve a summary of the tabs available to a given role - /// - /// 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) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Retrieve a summary of the tabs available to a given role - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tab.Summary.Role.Item.WithRoleItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tab.Summary.Role.Item.WithRoleItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRoleItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Summary/Role/RoleRequestBuilder.cs b/V2/Tab/Summary/Role/RoleRequestBuilder.cs deleted file mode 100644 index 4a00590..0000000 --- a/V2/Tab/Summary/Role/RoleRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Tab.Summary.Role.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Tab.Summary.Role -{ - /// - /// Builds and executes requests for operations under \v2\tab\summary\role - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RoleRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.tab.summary.role.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Tab.Summary.Role.Item.WithRoleItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("roleId", position); - return new global::NinjaOne.Client.V2.Tab.Summary.Role.Item.WithRoleItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.tab.summary.role.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Tab.Summary.Role.Item.WithRoleItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("roleId", position); - return new global::NinjaOne.Client.V2.Tab.Summary.Role.Item.WithRoleItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RoleRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/summary/role", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RoleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/summary/role", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/Summary/SummaryRequestBuilder.cs b/V2/Tab/Summary/SummaryRequestBuilder.cs deleted file mode 100644 index 38b1b39..0000000 --- a/V2/Tab/Summary/SummaryRequestBuilder.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Tab.Summary.EndUser; -using NinjaOne.Client.V2.Tab.Summary.Organization; -using NinjaOne.Client.V2.Tab.Summary.Role; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Tab.Summary -{ - /// - /// Builds and executes requests for operations under \v2\tab\summary - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class SummaryRequestBuilder : BaseRequestBuilder - { - /// The endUser property - public global::NinjaOne.Client.V2.Tab.Summary.EndUser.EndUserRequestBuilder EndUser - { - get => new global::NinjaOne.Client.V2.Tab.Summary.EndUser.EndUserRequestBuilder(PathParameters, RequestAdapter); - } - /// The organization property - public global::NinjaOne.Client.V2.Tab.Summary.Organization.OrganizationRequestBuilder Organization - { - get => new global::NinjaOne.Client.V2.Tab.Summary.Organization.OrganizationRequestBuilder(PathParameters, RequestAdapter); - } - /// The role property - public global::NinjaOne.Client.V2.Tab.Summary.Role.RoleRequestBuilder Role - { - get => new global::NinjaOne.Client.V2.Tab.Summary.Role.RoleRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SummaryRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/summary", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SummaryRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab/summary", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/TabPostRequestBody.cs b/V2/Tab/TabPostRequestBody.cs deleted file mode 100644 index 30934b5..0000000 --- a/V2/Tab/TabPostRequestBody.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TabPostRequestBody : 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 description to use for the custom tab -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// For tab types that require an id to create (currently, only NODE_ROLE types), this field is the ID of the entity - public int? EntityId { get; set; } - /// The type to use for the custom tab. Organizations and Locations share the same type of tab - public global::NinjaOne.Client.V2.Tab.TabPostRequestBody_entityType? EntityType { get; set; } - /// The initial list of content items to include in the tab -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Items { get; set; } -#nullable restore -#else - public List Items { get; set; } -#endif - /// The display name to use for the custom tab -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The position property - public int? Position { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TabPostRequestBody() - { - 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::NinjaOne.Client.V2.Tab.TabPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.TabPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "entityType", n => { EntityType = n.GetEnumValue(); } }, - { "items", n => { Items = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Tab.TabPostRequestBody_items.CreateFromDiscriminatorValue)?.AsList(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "position", n => { Position = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("entityId", EntityId); - writer.WriteEnumValue("entityType", EntityType); - writer.WriteCollectionOfObjectValues("items", Items); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("position", Position); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/TabPostRequestBody_entityType.cs b/V2/Tab/TabPostRequestBody_entityType.cs deleted file mode 100644 index 837b6b4..0000000 --- a/V2/Tab/TabPostRequestBody_entityType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - /// The type to use for the custom tab. Organizations and Locations share the same type of tab - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum TabPostRequestBody_entityType - { - [EnumMember(Value = "NODE_ROLE")] - #pragma warning disable CS1591 - NODE_ROLE, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostRequestBody_items.cs b/V2/Tab/TabPostRequestBody_items.cs deleted file mode 100644 index 523c214..0000000 --- a/V2/Tab/TabPostRequestBody_items.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TabPostRequestBody_items : 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; } - /// If the content item is an attribute, then this will be the id of that attribute otherwise this should be omitted - public int? Id { get; set; } - /// Specifies whether this item is an ATTRIBUTE or a UI_ELEMENT - public global::NinjaOne.Client.V2.Tab.TabPostRequestBody_items_itemType? ItemType { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The uiElementCreateTime property - public double? UiElementCreateTime { get; set; } - /// The uiElementType property - public global::NinjaOne.Client.V2.Tab.TabPostRequestBody_items_uiElementType? UiElementType { get; set; } - /// The uiElementUid property - public Guid? UiElementUid { get; set; } - /// The uiElementUpdateTime property - public double? UiElementUpdateTime { get; set; } - /// The uiElementValue property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementValue { get; set; } -#nullable restore -#else - public string UiElementValue { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TabPostRequestBody_items() - { - 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::NinjaOne.Client.V2.Tab.TabPostRequestBody_items CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.TabPostRequestBody_items(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetIntValue(); } }, - { "itemType", n => { ItemType = n.GetEnumValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "uiElementCreateTime", n => { UiElementCreateTime = n.GetDoubleValue(); } }, - { "uiElementType", n => { UiElementType = n.GetEnumValue(); } }, - { "uiElementUid", n => { UiElementUid = n.GetGuidValue(); } }, - { "uiElementUpdateTime", n => { UiElementUpdateTime = n.GetDoubleValue(); } }, - { "uiElementValue", n => { UiElementValue = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("itemType", ItemType); - writer.WriteStringValue("name", Name); - writer.WriteDoubleValue("uiElementCreateTime", UiElementCreateTime); - writer.WriteEnumValue("uiElementType", UiElementType); - writer.WriteGuidValue("uiElementUid", UiElementUid); - writer.WriteDoubleValue("uiElementUpdateTime", UiElementUpdateTime); - writer.WriteStringValue("uiElementValue", UiElementValue); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/TabPostRequestBody_items_itemType.cs b/V2/Tab/TabPostRequestBody_items_itemType.cs deleted file mode 100644 index 97c2731..0000000 --- a/V2/Tab/TabPostRequestBody_items_itemType.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - /// Specifies whether this item is an ATTRIBUTE or a UI_ELEMENT - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum TabPostRequestBody_items_itemType - { - [EnumMember(Value = "ATTRIBUTE")] - #pragma warning disable CS1591 - ATTRIBUTE, - #pragma warning restore CS1591 - [EnumMember(Value = "UI_ELEMENT")] - #pragma warning disable CS1591 - UI_ELEMENT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostRequestBody_items_uiElementType.cs b/V2/Tab/TabPostRequestBody_items_uiElementType.cs deleted file mode 100644 index 97a79b3..0000000 --- a/V2/Tab/TabPostRequestBody_items_uiElementType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TabPostRequestBody_items_uiElementType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TITLE")] - #pragma warning disable CS1591 - TITLE, - #pragma warning restore CS1591 - [EnumMember(Value = "DESCRIPTION")] - #pragma warning disable CS1591 - DESCRIPTION, - #pragma warning restore CS1591 - [EnumMember(Value = "SEPARATOR")] - #pragma warning disable CS1591 - SEPARATOR, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostResponse.cs b/V2/Tab/TabPostResponse.cs deleted file mode 100644 index 9293b39..0000000 --- a/V2/Tab/TabPostResponse.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TabPostResponse : 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 default property - public bool? Default { get; set; } - /// The description to use for the custom tab -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// For entity types that are bound to an ID, this will be the id of the object. Otherwise, omitted - public int? EntityId { get; set; } - /// The type of object the tab is for (ie, NODE_ROLE, ORGANIZATION, END_USER, etc) - public global::NinjaOne.Client.V2.Tab.TabPostResponse_entityType? EntityType { get; set; } - /// Tab ID - public int? Id { get; set; } - /// True if this is a default tab, false otherwise - public bool? IsDefault { get; set; } - /// The content of the tab -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Items { get; set; } -#nullable restore -#else - public List Items { get; set; } -#endif - /// Display name of tab -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// For tab extensions, this will be the id of the tab that was extended (ie, the 'root tab') - public int? ParentTabId { get; set; } - /// Integer representing the position of the tab. Used when ordering multiple tabs - public int? Position { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TabPostResponse() - { - 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::NinjaOne.Client.V2.Tab.TabPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.TabPostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "default", n => { Default = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "entityId", n => { EntityId = n.GetIntValue(); } }, - { "entityType", n => { EntityType = n.GetEnumValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "isDefault", n => { IsDefault = n.GetBoolValue(); } }, - { "items", n => { Items = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Tab.TabPostResponse_items.CreateFromDiscriminatorValue)?.AsList(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "parentTabId", n => { ParentTabId = n.GetIntValue(); } }, - { "position", n => { Position = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("default", Default); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("entityId", EntityId); - writer.WriteEnumValue("entityType", EntityType); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("isDefault", IsDefault); - writer.WriteCollectionOfObjectValues("items", Items); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("parentTabId", ParentTabId); - writer.WriteIntValue("position", Position); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/TabPostResponse_entityType.cs b/V2/Tab/TabPostResponse_entityType.cs deleted file mode 100644 index 04a56ea..0000000 --- a/V2/Tab/TabPostResponse_entityType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - /// The type of object the tab is for (ie, NODE_ROLE, ORGANIZATION, END_USER, etc) - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum TabPostResponse_entityType - { - [EnumMember(Value = "NODE_ROLE")] - #pragma warning disable CS1591 - NODE_ROLE, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "SYSTEM")] - #pragma warning disable CS1591 - SYSTEM, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostResponse_items.cs b/V2/Tab/TabPostResponse_items.cs deleted file mode 100644 index 1654399..0000000 --- a/V2/Tab/TabPostResponse_items.cs +++ /dev/null @@ -1,182 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab -{ - /// - /// This object represents either an attribute, or a UI Element. The available attributes will depend on which type it is - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TabPostResponse_items : IAdditionalDataHolder, IParsable - { - /// Whether the attribute is active or not - public bool? Active { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Type of API permission on the attribute - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_apiPermission? ApiPermission { get; set; } - /// Scope of the attribute. NOTE: This field is being depricated - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_attributeScope? AttributeScope { get; set; } - /// Type of the attribute - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_attributeType? AttributeType { get; set; } - /// For multi-select attributes, these are the available content options -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content? Content { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content Content { get; set; } -#endif - /// The time that the attribute was created (unix epoch) - public double? CreateTime { get; set; } - /// For multi-select attributes, this is the id of the default value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DefaultValue { get; set; } -#nullable restore -#else - public string DefaultValue { get; set; } -#endif - /// Definition scopes of the attribute -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DefinitionScope { get; set; } -#nullable restore -#else - public List DefinitionScope { get; set; } -#endif - /// Description of the content item -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// If the attribute references a specific entity, its type will be specified in this field - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_entityType? EntityType { get; set; } - /// Field name of the attribute -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FieldName { get; set; } -#nullable restore -#else - public string FieldName { get; set; } -#endif - /// ID of an attribute - public int? Id { get; set; } - /// Name of the content item -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Type of script permission on the attribute - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_scriptPermission? ScriptPermission { get; set; } - /// Type of technician permission on the attribute - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_technicianPermission? TechnicianPermission { get; set; } - /// For UI elements, timestamp of when the element was created (unix epoch) - public double? UiElementCreateTime { get; set; } - /// For UI elements, type of the element - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_uiElementType? UiElementType { get; set; } - /// For UI elements, the uuid of the element - public Guid? UiElementUid { get; set; } - /// For UI elements, timestamp of when the element was last updated (unix epoch) - public double? UiElementUpdateTime { get; set; } - /// For UI elements, value of the element -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UiElementValue { get; set; } -#nullable restore -#else - public string UiElementValue { get; set; } -#endif - /// The time that the attribute was last updated (unix epoch) - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TabPostResponse_items() - { - 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::NinjaOne.Client.V2.Tab.TabPostResponse_items CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.TabPostResponse_items(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "apiPermission", n => { ApiPermission = n.GetEnumValue(); } }, - { "attributeScope", n => { AttributeScope = n.GetEnumValue(); } }, - { "attributeType", n => { AttributeType = n.GetEnumValue(); } }, - { "content", n => { Content = n.GetObjectValue(global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content.CreateFromDiscriminatorValue); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "defaultValue", n => { DefaultValue = n.GetStringValue(); } }, - { "definitionScope", n => { DefinitionScope = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "entityType", n => { EntityType = n.GetEnumValue(); } }, - { "fieldName", n => { FieldName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "scriptPermission", n => { ScriptPermission = n.GetEnumValue(); } }, - { "technicianPermission", n => { TechnicianPermission = n.GetEnumValue(); } }, - { "uiElementCreateTime", n => { UiElementCreateTime = n.GetDoubleValue(); } }, - { "uiElementType", n => { UiElementType = n.GetEnumValue(); } }, - { "uiElementUid", n => { UiElementUid = n.GetGuidValue(); } }, - { "uiElementUpdateTime", n => { UiElementUpdateTime = n.GetDoubleValue(); } }, - { "uiElementValue", n => { UiElementValue = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteEnumValue("apiPermission", ApiPermission); - writer.WriteEnumValue("attributeScope", AttributeScope); - writer.WriteEnumValue("attributeType", AttributeType); - writer.WriteObjectValue("content", Content); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("defaultValue", DefaultValue); - writer.WriteCollectionOfEnumValues("definitionScope", DefinitionScope); - writer.WriteStringValue("description", Description); - writer.WriteEnumValue("entityType", EntityType); - writer.WriteStringValue("fieldName", FieldName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteEnumValue("scriptPermission", ScriptPermission); - writer.WriteEnumValue("technicianPermission", TechnicianPermission); - writer.WriteDoubleValue("uiElementCreateTime", UiElementCreateTime); - writer.WriteEnumValue("uiElementType", UiElementType); - writer.WriteGuidValue("uiElementUid", UiElementUid); - writer.WriteDoubleValue("uiElementUpdateTime", UiElementUpdateTime); - writer.WriteStringValue("uiElementValue", UiElementValue); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/TabPostResponse_items_apiPermission.cs b/V2/Tab/TabPostResponse_items_apiPermission.cs deleted file mode 100644 index a62d8e6..0000000 --- a/V2/Tab/TabPostResponse_items_apiPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - /// Type of API permission on the attribute - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum TabPostResponse_items_apiPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostResponse_items_attributeScope.cs b/V2/Tab/TabPostResponse_items_attributeScope.cs deleted file mode 100644 index a7ea094..0000000 --- a/V2/Tab/TabPostResponse_items_attributeScope.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - /// Scope of the attribute. NOTE: This field is being depricated - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum TabPostResponse_items_attributeScope - { - [EnumMember(Value = "NODE_GLOBAL")] - #pragma warning disable CS1591 - NODE_GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_ROLE")] - #pragma warning disable CS1591 - NODE_ROLE, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_CLASS")] - #pragma warning disable CS1591 - NODE_CLASS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostResponse_items_attributeType.cs b/V2/Tab/TabPostResponse_items_attributeType.cs deleted file mode 100644 index a7902d6..0000000 --- a/V2/Tab/TabPostResponse_items_attributeType.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - /// Type of the attribute - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum TabPostResponse_items_attributeType - { - [EnumMember(Value = "DROPDOWN")] - #pragma warning disable CS1591 - DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "MULTI_SELECT")] - #pragma warning disable CS1591 - MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CHECKBOX")] - #pragma warning disable CS1591 - CHECKBOX, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT")] - #pragma warning disable CS1591 - TEXT, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_MULTILINE")] - #pragma warning disable CS1591 - TEXT_MULTILINE, - #pragma warning restore CS1591 - [EnumMember(Value = "TEXT_ENCRYPTED")] - #pragma warning disable CS1591 - TEXT_ENCRYPTED, - #pragma warning restore CS1591 - [EnumMember(Value = "NUMERIC")] - #pragma warning disable CS1591 - NUMERIC, - #pragma warning restore CS1591 - [EnumMember(Value = "DECIMAL")] - #pragma warning disable CS1591 - DECIMAL, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE")] - #pragma warning disable CS1591 - DATE, - #pragma warning restore CS1591 - [EnumMember(Value = "DATE_TIME")] - #pragma warning disable CS1591 - DATE_TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "TIME")] - #pragma warning disable CS1591 - TIME, - #pragma warning restore CS1591 - [EnumMember(Value = "ATTACHMENT")] - #pragma warning disable CS1591 - ATTACHMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_DROPDOWN")] - #pragma warning disable CS1591 - NODE_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE_MULTI_SELECT")] - #pragma warning disable CS1591 - NODE_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_LOCATION_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_LOCATION_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_LOCATION_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_DROPDOWN")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_DROPDOWN, - #pragma warning restore CS1591 - [EnumMember(Value = "CLIENT_DOCUMENT_MULTI_SELECT")] - #pragma warning disable CS1591 - CLIENT_DOCUMENT_MULTI_SELECT, - #pragma warning restore CS1591 - [EnumMember(Value = "EMAIL")] - #pragma warning disable CS1591 - EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "PHONE")] - #pragma warning disable CS1591 - PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "IP_ADDRESS")] - #pragma warning disable CS1591 - IP_ADDRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "WYSIWYG")] - #pragma warning disable CS1591 - WYSIWYG, - #pragma warning restore CS1591 - [EnumMember(Value = "URL")] - #pragma warning disable CS1591 - URL, - #pragma warning restore CS1591 - [EnumMember(Value = "MONETARY")] - #pragma warning disable CS1591 - MONETARY, - #pragma warning restore CS1591 - [EnumMember(Value = "IDENTIFIER")] - #pragma warning disable CS1591 - IDENTIFIER, - #pragma warning restore CS1591 - [EnumMember(Value = "TOTP")] - #pragma warning disable CS1591 - TOTP, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostResponse_items_content.cs b/V2/Tab/TabPostResponse_items_content.cs deleted file mode 100644 index 5012d78..0000000 --- a/V2/Tab/TabPostResponse_items_content.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab -{ - /// - /// For multi-select attributes, these are the available content options - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TabPostResponse_items_content : 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; } - /// The advancedSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings? AdvancedSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings AdvancedSettings { get; set; } -#endif - /// Whether the attribute should be customized for end users - public bool? CustomizeForEndUser { get; set; } - /// The endUserCustomization property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_endUserCustomization? EndUserCustomization { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_endUserCustomization EndUserCustomization { get; set; } -#endif - /// Text to include after rendering the attribute -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FooterText { get; set; } -#nullable restore -#else - public string FooterText { get; set; } -#endif - /// Boolean representing whether the attribute is required or not - public bool? Required { get; set; } - /// Text to use as a tooltip for the attribute -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TooltipText { get; set; } -#nullable restore -#else - public string TooltipText { get; set; } -#endif - /// For multi-select attributes, this is the list of values available -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TabPostResponse_items_content() - { - 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::NinjaOne.Client.V2.Tab.TabPostResponse_items_content CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "advancedSettings", n => { AdvancedSettings = n.GetObjectValue(global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings.CreateFromDiscriminatorValue); } }, - { "customizeForEndUser", n => { CustomizeForEndUser = n.GetBoolValue(); } }, - { "endUserCustomization", n => { EndUserCustomization = n.GetObjectValue(global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_endUserCustomization.CreateFromDiscriminatorValue); } }, - { "footerText", n => { FooterText = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tooltipText", n => { TooltipText = n.GetStringValue(); } }, - { "values", n => { Values = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_values.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("advancedSettings", AdvancedSettings); - writer.WriteBoolValue("customizeForEndUser", CustomizeForEndUser); - writer.WriteObjectValue("endUserCustomization", EndUserCustomization); - writer.WriteStringValue("footerText", FooterText); - writer.WriteBoolValue("required", Required); - writer.WriteStringValue("tooltipText", TooltipText); - writer.WriteCollectionOfObjectValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/TabPostResponse_items_content_advancedSettings.cs b/V2/Tab/TabPostResponse_items_content_advancedSettings.cs deleted file mode 100644 index 866373c..0000000 --- a/V2/Tab/TabPostResponse_items_content_advancedSettings.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TabPostResponse_items_content_advancedSettings : 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 complexityRules property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_complexityRules? ComplexityRules { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_complexityRules ComplexityRules { get; set; } -#endif - /// The dateFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_dateFilters? DateFilters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_dateFilters DateFilters { get; set; } -#endif - /// The expandLargeValueOnRender property - public bool? ExpandLargeValueOnRender { get; set; } - /// The fileExtensions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FileExtensions { get; set; } -#nullable restore -#else - public List FileExtensions { get; set; } -#endif - /// The fileMaxSize property - public int? FileMaxSize { get; set; } - /// The identifier property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_identifier? Identifier { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_identifier Identifier { get; set; } -#endif - /// The ipAddressType property - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_ipAddressType? IpAddressType { get; set; } - /// The maxCharacters property - public int? MaxCharacters { get; set; } - /// The monetary property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_monetary? Monetary { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_monetary Monetary { get; set; } -#endif - /// The nodeClass property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? NodeClass { get; set; } -#nullable restore -#else - public List NodeClass { get; set; } -#endif - /// The numericRange property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_numericRange? NumericRange { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_numericRange NumericRange { get; set; } -#endif - /// The org property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Org { get; set; } -#nullable restore -#else - public List Org { get; set; } -#endif - /// The templates property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Templates { get; set; } -#nullable restore -#else - public List Templates { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TabPostResponse_items_content_advancedSettings() - { - 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::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "complexityRules", n => { ComplexityRules = n.GetObjectValue(global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_complexityRules.CreateFromDiscriminatorValue); } }, - { "dateFilters", n => { DateFilters = n.GetObjectValue(global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_dateFilters.CreateFromDiscriminatorValue); } }, - { "expandLargeValueOnRender", n => { ExpandLargeValueOnRender = n.GetBoolValue(); } }, - { "fileExtensions", n => { FileExtensions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "fileMaxSize", n => { FileMaxSize = n.GetIntValue(); } }, - { "identifier", n => { Identifier = n.GetObjectValue(global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_identifier.CreateFromDiscriminatorValue); } }, - { "ipAddressType", n => { IpAddressType = n.GetEnumValue(); } }, - { "maxCharacters", n => { MaxCharacters = n.GetIntValue(); } }, - { "monetary", n => { Monetary = n.GetObjectValue(global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_monetary.CreateFromDiscriminatorValue); } }, - { "nodeClass", n => { NodeClass = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "numericRange", n => { NumericRange = n.GetObjectValue(global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_numericRange.CreateFromDiscriminatorValue); } }, - { "org", n => { Org = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "templates", n => { Templates = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("complexityRules", ComplexityRules); - writer.WriteObjectValue("dateFilters", DateFilters); - writer.WriteBoolValue("expandLargeValueOnRender", ExpandLargeValueOnRender); - writer.WriteCollectionOfPrimitiveValues("fileExtensions", FileExtensions); - writer.WriteIntValue("fileMaxSize", FileMaxSize); - writer.WriteObjectValue("identifier", Identifier); - writer.WriteEnumValue("ipAddressType", IpAddressType); - writer.WriteIntValue("maxCharacters", MaxCharacters); - writer.WriteObjectValue("monetary", Monetary); - writer.WriteCollectionOfEnumValues("nodeClass", NodeClass); - writer.WriteObjectValue("numericRange", NumericRange); - writer.WriteCollectionOfPrimitiveValues("org", Org); - writer.WriteCollectionOfPrimitiveValues("templates", Templates); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/TabPostResponse_items_content_advancedSettings_complexityRules.cs b/V2/Tab/TabPostResponse_items_content_advancedSettings_complexityRules.cs deleted file mode 100644 index 6ccf301..0000000 --- a/V2/Tab/TabPostResponse_items_content_advancedSettings_complexityRules.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TabPostResponse_items_content_advancedSettings_complexityRules : 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 greaterOrEqualThanSixCharacters property - public bool? GreaterOrEqualThanSixCharacters { get; set; } - /// The mustContainOneInteger property - public bool? MustContainOneInteger { get; set; } - /// The mustContainOneLowercaseLetter property - public bool? MustContainOneLowercaseLetter { get; set; } - /// The mustContainOneUppercaseLetter property - public bool? MustContainOneUppercaseLetter { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TabPostResponse_items_content_advancedSettings_complexityRules() - { - 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::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_complexityRules CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_complexityRules(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "greaterOrEqualThanSixCharacters", n => { GreaterOrEqualThanSixCharacters = n.GetBoolValue(); } }, - { "mustContainOneInteger", n => { MustContainOneInteger = n.GetBoolValue(); } }, - { "mustContainOneLowercaseLetter", n => { MustContainOneLowercaseLetter = n.GetBoolValue(); } }, - { "mustContainOneUppercaseLetter", n => { MustContainOneUppercaseLetter = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("greaterOrEqualThanSixCharacters", GreaterOrEqualThanSixCharacters); - writer.WriteBoolValue("mustContainOneInteger", MustContainOneInteger); - writer.WriteBoolValue("mustContainOneLowercaseLetter", MustContainOneLowercaseLetter); - writer.WriteBoolValue("mustContainOneUppercaseLetter", MustContainOneUppercaseLetter); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/TabPostResponse_items_content_advancedSettings_dateFilters.cs b/V2/Tab/TabPostResponse_items_content_advancedSettings_dateFilters.cs deleted file mode 100644 index b58314c..0000000 --- a/V2/Tab/TabPostResponse_items_content_advancedSettings_dateFilters.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TabPostResponse_items_content_advancedSettings_dateFilters : 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 selected property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Selected { get; set; } -#nullable restore -#else - public List Selected { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_dateFilters_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TabPostResponse_items_content_advancedSettings_dateFilters() - { - 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::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_dateFilters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_dateFilters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "selected", n => { Selected = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("selected", Selected); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/TabPostResponse_items_content_advancedSettings_dateFilters_type.cs b/V2/Tab/TabPostResponse_items_content_advancedSettings_dateFilters_type.cs deleted file mode 100644 index 1014b3a..0000000 --- a/V2/Tab/TabPostResponse_items_content_advancedSettings_dateFilters_type.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TabPostResponse_items_content_advancedSettings_dateFilters_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "INCLUDE")] - #pragma warning disable CS1591 - INCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "EXCLUDE")] - #pragma warning disable CS1591 - EXCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "PAST_DATES_ONLY")] - #pragma warning disable CS1591 - PAST_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "FUTURE_DATES_ONLY")] - #pragma warning disable CS1591 - FUTURE_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "RANGE")] - #pragma warning disable CS1591 - RANGE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostResponse_items_content_advancedSettings_identifier.cs b/V2/Tab/TabPostResponse_items_content_advancedSettings_identifier.cs deleted file mode 100644 index 768df51..0000000 --- a/V2/Tab/TabPostResponse_items_content_advancedSettings_identifier.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TabPostResponse_items_content_advancedSettings_identifier : 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 assignTo property - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_identifier_assignTo? AssignTo { get; set; } - /// The automaticGenerationEnabled property - public bool? AutomaticGenerationEnabled { get; set; } - /// The nextSequenceNumber property - public long? NextSequenceNumber { get; set; } - /// The prefix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Prefix { get; set; } -#nullable restore -#else - public string Prefix { get; set; } -#endif - /// The scope property - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_identifier_scope? Scope { get; set; } - /// The suffix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Suffix { get; set; } -#nullable restore -#else - public string Suffix { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_identifier_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TabPostResponse_items_content_advancedSettings_identifier() - { - 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::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_identifier CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_identifier(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignTo", n => { AssignTo = n.GetEnumValue(); } }, - { "automaticGenerationEnabled", n => { AutomaticGenerationEnabled = n.GetBoolValue(); } }, - { "nextSequenceNumber", n => { NextSequenceNumber = n.GetLongValue(); } }, - { "prefix", n => { Prefix = n.GetStringValue(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - { "suffix", n => { Suffix = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignTo", AssignTo); - writer.WriteBoolValue("automaticGenerationEnabled", AutomaticGenerationEnabled); - writer.WriteLongValue("nextSequenceNumber", NextSequenceNumber); - writer.WriteStringValue("prefix", Prefix); - writer.WriteEnumValue("scope", Scope); - writer.WriteStringValue("suffix", Suffix); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/TabPostResponse_items_content_advancedSettings_identifier_assignTo.cs b/V2/Tab/TabPostResponse_items_content_advancedSettings_identifier_assignTo.cs deleted file mode 100644 index f7e0e2f..0000000 --- a/V2/Tab/TabPostResponse_items_content_advancedSettings_identifier_assignTo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TabPostResponse_items_content_advancedSettings_identifier_assignTo - #pragma warning restore CS1591 - { - [EnumMember(Value = "NEW_ASSETS_ONLY")] - #pragma warning disable CS1591 - NEW_ASSETS_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "NEW_AND_EXISTING_ASSETS")] - #pragma warning disable CS1591 - NEW_AND_EXISTING_ASSETS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostResponse_items_content_advancedSettings_identifier_scope.cs b/V2/Tab/TabPostResponse_items_content_advancedSettings_identifier_scope.cs deleted file mode 100644 index 53163c2..0000000 --- a/V2/Tab/TabPostResponse_items_content_advancedSettings_identifier_scope.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TabPostResponse_items_content_advancedSettings_identifier_scope - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "GLOBAL")] - #pragma warning disable CS1591 - GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostResponse_items_content_advancedSettings_identifier_type.cs b/V2/Tab/TabPostResponse_items_content_advancedSettings_identifier_type.cs deleted file mode 100644 index 136cdbf..0000000 --- a/V2/Tab/TabPostResponse_items_content_advancedSettings_identifier_type.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TabPostResponse_items_content_advancedSettings_identifier_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - [EnumMember(Value = "SEQUENCE")] - #pragma warning disable CS1591 - SEQUENCE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostResponse_items_content_advancedSettings_ipAddressType.cs b/V2/Tab/TabPostResponse_items_content_advancedSettings_ipAddressType.cs deleted file mode 100644 index ac01bee..0000000 --- a/V2/Tab/TabPostResponse_items_content_advancedSettings_ipAddressType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TabPostResponse_items_content_advancedSettings_ipAddressType - #pragma warning restore CS1591 - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV4")] - #pragma warning disable CS1591 - IPV4, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV6")] - #pragma warning disable CS1591 - IPV6, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostResponse_items_content_advancedSettings_monetary.cs b/V2/Tab/TabPostResponse_items_content_advancedSettings_monetary.cs deleted file mode 100644 index 0586bd5..0000000 --- a/V2/Tab/TabPostResponse_items_content_advancedSettings_monetary.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TabPostResponse_items_content_advancedSettings_monetary : 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 currency property - public global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_monetary_currency? Currency { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TabPostResponse_items_content_advancedSettings_monetary() - { - 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::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_monetary CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_monetary(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "currency", n => { Currency = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("currency", Currency); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/TabPostResponse_items_content_advancedSettings_monetary_currency.cs b/V2/Tab/TabPostResponse_items_content_advancedSettings_monetary_currency.cs deleted file mode 100644 index a4b1259..0000000 --- a/V2/Tab/TabPostResponse_items_content_advancedSettings_monetary_currency.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TabPostResponse_items_content_advancedSettings_monetary_currency - #pragma warning restore CS1591 - { - [EnumMember(Value = "USD")] - #pragma warning disable CS1591 - USD, - #pragma warning restore CS1591 - [EnumMember(Value = "EUR")] - #pragma warning disable CS1591 - EUR, - #pragma warning restore CS1591 - [EnumMember(Value = "CAD")] - #pragma warning disable CS1591 - CAD, - #pragma warning restore CS1591 - [EnumMember(Value = "GBP")] - #pragma warning disable CS1591 - GBP, - #pragma warning restore CS1591 - [EnumMember(Value = "AUD")] - #pragma warning disable CS1591 - AUD, - #pragma warning restore CS1591 - [EnumMember(Value = "JPY")] - #pragma warning disable CS1591 - JPY, - #pragma warning restore CS1591 - [EnumMember(Value = "SEK")] - #pragma warning disable CS1591 - SEK, - #pragma warning restore CS1591 - [EnumMember(Value = "NOK")] - #pragma warning disable CS1591 - NOK, - #pragma warning restore CS1591 - [EnumMember(Value = "DKK")] - #pragma warning disable CS1591 - DKK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHF")] - #pragma warning disable CS1591 - CHF, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostResponse_items_content_advancedSettings_nodeClass.cs b/V2/Tab/TabPostResponse_items_content_advancedSettings_nodeClass.cs deleted file mode 100644 index 7c8c2fb..0000000 --- a/V2/Tab/TabPostResponse_items_content_advancedSettings_nodeClass.cs +++ /dev/null @@ -1,144 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TabPostResponse_items_content_advancedSettings_nodeClass - #pragma warning restore CS1591 - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostResponse_items_content_advancedSettings_numericRange.cs b/V2/Tab/TabPostResponse_items_content_advancedSettings_numericRange.cs deleted file mode 100644 index 9ed96b0..0000000 --- a/V2/Tab/TabPostResponse_items_content_advancedSettings_numericRange.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TabPostResponse_items_content_advancedSettings_numericRange : 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 max property - public double? Max { get; set; } - /// The min property - public double? Min { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TabPostResponse_items_content_advancedSettings_numericRange() - { - 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::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_numericRange CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_advancedSettings_numericRange(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "max", n => { Max = n.GetDoubleValue(); } }, - { "min", n => { Min = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("max", Max); - writer.WriteDoubleValue("min", Min); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/TabPostResponse_items_content_endUserCustomization.cs b/V2/Tab/TabPostResponse_items_content_endUserCustomization.cs deleted file mode 100644 index edb54f9..0000000 --- a/V2/Tab/TabPostResponse_items_content_endUserCustomization.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TabPostResponse_items_content_endUserCustomization : 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 description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TabPostResponse_items_content_endUserCustomization() - { - 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::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_endUserCustomization CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_endUserCustomization(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "label", n => { Label = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/TabPostResponse_items_content_values.cs b/V2/Tab/TabPostResponse_items_content_values.cs deleted file mode 100644 index 81cbd8b..0000000 --- a/V2/Tab/TabPostResponse_items_content_values.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TabPostResponse_items_content_values : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The active property - public bool? Active { get; set; } - /// 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 id property - public Guid? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The system property - public bool? System { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TabPostResponse_items_content_values() - { - 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::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_values CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.TabPostResponse_items_content_values(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "system", n => { System = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteBoolValue("system", System); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/TabPostResponse_items_definitionScope.cs b/V2/Tab/TabPostResponse_items_definitionScope.cs deleted file mode 100644 index c715997..0000000 --- a/V2/Tab/TabPostResponse_items_definitionScope.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - /// Definition scopes of the attribute - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum TabPostResponse_items_definitionScope - { - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "LOCATION")] - #pragma warning disable CS1591 - LOCATION, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostResponse_items_entityType.cs b/V2/Tab/TabPostResponse_items_entityType.cs deleted file mode 100644 index 711864f..0000000 --- a/V2/Tab/TabPostResponse_items_entityType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - /// If the attribute references a specific entity, its type will be specified in this field - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum TabPostResponse_items_entityType - { - [EnumMember(Value = "USER")] - #pragma warning disable CS1591 - USER, - #pragma warning restore CS1591 - [EnumMember(Value = "NODE")] - #pragma warning disable CS1591 - NODE, - #pragma warning restore CS1591 - [EnumMember(Value = "TICKET")] - #pragma warning disable CS1591 - TICKET, - #pragma warning restore CS1591 - [EnumMember(Value = "DOCUMENT")] - #pragma warning disable CS1591 - DOCUMENT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostResponse_items_scriptPermission.cs b/V2/Tab/TabPostResponse_items_scriptPermission.cs deleted file mode 100644 index 72dabfb..0000000 --- a/V2/Tab/TabPostResponse_items_scriptPermission.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - /// Type of script permission on the attribute - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum TabPostResponse_items_scriptPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "WRITE_ONLY")] - #pragma warning disable CS1591 - WRITE_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_WRITE")] - #pragma warning disable CS1591 - READ_WRITE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostResponse_items_technicianPermission.cs b/V2/Tab/TabPostResponse_items_technicianPermission.cs deleted file mode 100644 index 280ec1d..0000000 --- a/V2/Tab/TabPostResponse_items_technicianPermission.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - /// Type of technician permission on the attribute - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum TabPostResponse_items_technicianPermission - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "EDITABLE")] - #pragma warning disable CS1591 - EDITABLE, - #pragma warning restore CS1591 - [EnumMember(Value = "READ_ONLY")] - #pragma warning disable CS1591 - READ_ONLY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabPostResponse_items_uiElementType.cs b/V2/Tab/TabPostResponse_items_uiElementType.cs deleted file mode 100644 index 256ee23..0000000 --- a/V2/Tab/TabPostResponse_items_uiElementType.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tab -{ - /// For UI elements, type of the element - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum TabPostResponse_items_uiElementType - { - [EnumMember(Value = "TITLE")] - #pragma warning disable CS1591 - TITLE, - #pragma warning restore CS1591 - [EnumMember(Value = "DESCRIPTION")] - #pragma warning disable CS1591 - DESCRIPTION, - #pragma warning restore CS1591 - [EnumMember(Value = "SEPARATOR")] - #pragma warning disable CS1591 - SEPARATOR, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tab/TabRequestBuilder.cs b/V2/Tab/TabRequestBuilder.cs deleted file mode 100644 index 67fdaaf..0000000 --- a/V2/Tab/TabRequestBuilder.cs +++ /dev/null @@ -1,173 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Tab.EndUser; -using NinjaOne.Client.V2.Tab.Item; -using NinjaOne.Client.V2.Tab.Organization; -using NinjaOne.Client.V2.Tab.Rename; -using NinjaOne.Client.V2.Tab.Role; -using NinjaOne.Client.V2.Tab.Summary; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tab -{ - /// - /// Builds and executes requests for operations under \v2\tab - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TabRequestBuilder : BaseRequestBuilder - { - /// The endUser property - public global::NinjaOne.Client.V2.Tab.EndUser.EndUserRequestBuilder EndUser - { - get => new global::NinjaOne.Client.V2.Tab.EndUser.EndUserRequestBuilder(PathParameters, RequestAdapter); - } - /// The organization property - public global::NinjaOne.Client.V2.Tab.Organization.OrganizationRequestBuilder Organization - { - get => new global::NinjaOne.Client.V2.Tab.Organization.OrganizationRequestBuilder(PathParameters, RequestAdapter); - } - /// The rename property - public global::NinjaOne.Client.V2.Tab.Rename.RenameRequestBuilder Rename - { - get => new global::NinjaOne.Client.V2.Tab.Rename.RenameRequestBuilder(PathParameters, RequestAdapter); - } - /// The role property - public global::NinjaOne.Client.V2.Tab.Role.RoleRequestBuilder Role - { - get => new global::NinjaOne.Client.V2.Tab.Role.RoleRequestBuilder(PathParameters, RequestAdapter); - } - /// The summary property - public global::NinjaOne.Client.V2.Tab.Summary.SummaryRequestBuilder Summary - { - get => new global::NinjaOne.Client.V2.Tab.Summary.SummaryRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the NinjaOne.Client.v2.tab.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Tab.Item.WithTabItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("tabId", position); - return new global::NinjaOne.Client.V2.Tab.Item.WithTabItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.tab.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Tab.Item.WithTabItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("tabId", position); - return new global::NinjaOne.Client.V2.Tab.Item.WithTabItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public TabRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TabRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tab", rawUrl) - { - } - /// - /// Create a Custom Tab with the provided details - /// - /// A - /// The request body - /// 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 PostAsTabPostResponseAsync(global::NinjaOne.Client.V2.Tab.TabPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsTabPostResponseAsync(global::NinjaOne.Client.V2.Tab.TabPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Tab.TabPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create a Custom Tab with the provided details - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsTabPostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.Tab.TabPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Tab.TabPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Tab.TabResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create a Custom Tab with the provided details - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Tab.TabPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Tab.TabPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tab.TabRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tab.TabRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TabRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tab/TabResponse.cs b/V2/Tab/TabResponse.cs deleted file mode 100644 index 7640133..0000000 --- a/V2/Tab/TabResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tab -{ - [Obsolete("This class is obsolete. Use TabPostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TabResponse : global::NinjaOne.Client.V2.Tab.TabPostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.Tab.TabResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tab.TabResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/Delete/DeleteRequestBuilder.cs b/V2/Tag/Delete/DeleteRequestBuilder.cs deleted file mode 100644 index 89d57cd..0000000 --- a/V2/Tag/Delete/DeleteRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tag.Delete -{ - /// - /// Builds and executes requests for operations under \v2\tag\delete - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeleteRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tag/delete", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tag/delete", rawUrl) - { - } - /// - /// Delete Asset Tags having the provided ids - /// - /// A - /// The request body - /// 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 PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete Asset Tags having the provided ids - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromScalarCollection(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tag.Delete.DeleteRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tag.Delete.DeleteRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeleteRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/Item/AssetTypeItemRequestBuilder.cs b/V2/Tag/Item/AssetTypeItemRequestBuilder.cs deleted file mode 100644 index 35b34e6..0000000 --- a/V2/Tag/Item/AssetTypeItemRequestBuilder.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Tag.Item.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tag.Item -{ - /// - /// Builds and executes requests for operations under \v2\tag\{assetType-id} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AssetTypeItemRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.tag.item.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Tag.Item.Item.WithAssetItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("assetId", position); - return new global::NinjaOne.Client.V2.Tag.Item.Item.WithAssetItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.tag.item.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Tag.Item.Item.WithAssetItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("assetId", position); - return new global::NinjaOne.Client.V2.Tag.Item.Item.WithAssetItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public AssetTypeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tag/{assetType%2Did}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public AssetTypeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tag/{assetType%2Did}", rawUrl) - { - } - /// - /// Delete the Asset Tag with the provided id - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Update tags for the supplied assetIds. Tags will be added and removed as specified - /// - /// A - /// The request body - /// 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 PostAsync(global::NinjaOne.Client.V2.Tag.Item.AssetTypePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Tag.Item.AssetTypePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Update an Asset Tag with the provided metadata - /// - /// A - /// The request body - /// 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 PutAsAssetTypePutResponseAsync(global::NinjaOne.Client.V2.Tag.Item.AssetTypePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PutAsAssetTypePutResponseAsync(global::NinjaOne.Client.V2.Tag.Item.AssetTypePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Tag.Item.AssetTypePutResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Update an Asset Tag with the provided metadata - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PutAsAssetTypePutResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PutAsync(global::NinjaOne.Client.V2.Tag.Item.AssetTypePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PutAsync(global::NinjaOne.Client.V2.Tag.Item.AssetTypePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Tag.Item.AssetTypeResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete the Asset Tag with the provided id - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Update tags for the supplied assetIds. Tags will be added and removed as specified - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Tag.Item.AssetTypePostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Tag.Item.AssetTypePostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Update an Asset Tag with the provided metadata - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(global::NinjaOne.Client.V2.Tag.Item.AssetTypePutRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(global::NinjaOne.Client.V2.Tag.Item.AssetTypePutRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tag.Item.AssetTypeItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tag.Item.AssetTypeItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AssetTypeItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AssetTypeItemRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AssetTypeItemRequestBuilderPutRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/Item/AssetTypePostRequestBody.cs b/V2/Tag/Item/AssetTypePostRequestBody.cs deleted file mode 100644 index 5c09460..0000000 --- a/V2/Tag/Item/AssetTypePostRequestBody.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tag.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AssetTypePostRequestBody : 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; } - /// Array of asset IDs to perform bulk operations on (provide the type of asset with the URL) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssetIds { get; set; } -#nullable restore -#else - public List AssetIds { get; set; } -#endif - /// Array of tag IDs to add to the supplied assets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? TagIdsToAdd { get; set; } -#nullable restore -#else - public List TagIdsToAdd { get; set; } -#endif - /// Array of tag IDs to remove from the supplied assets -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? TagIdsToRemove { get; set; } -#nullable restore -#else - public List TagIdsToRemove { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AssetTypePostRequestBody() - { - 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::NinjaOne.Client.V2.Tag.Item.AssetTypePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tag.Item.AssetTypePostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assetIds", n => { AssetIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "tagIdsToAdd", n => { TagIdsToAdd = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "tagIdsToRemove", n => { TagIdsToRemove = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("assetIds", AssetIds); - writer.WriteCollectionOfPrimitiveValues("tagIdsToAdd", TagIdsToAdd); - writer.WriteCollectionOfPrimitiveValues("tagIdsToRemove", TagIdsToRemove); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/Item/AssetTypePutRequestBody.cs b/V2/Tag/Item/AssetTypePutRequestBody.cs deleted file mode 100644 index 7ff468b..0000000 --- a/V2/Tag/Item/AssetTypePutRequestBody.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tag.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AssetTypePutRequestBody : 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 description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AssetTypePutRequestBody() - { - 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::NinjaOne.Client.V2.Tag.Item.AssetTypePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tag.Item.AssetTypePutRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/Item/AssetTypePutResponse.cs b/V2/Tag/Item/AssetTypePutResponse.cs deleted file mode 100644 index 2c69417..0000000 --- a/V2/Tag/Item/AssetTypePutResponse.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tag.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AssetTypePutResponse : 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; } - /// Id of the user that created the tag - public int? CreatedByUserId { get; set; } - /// Creation time for the tag in seconds since unix epoch - public double? CreateTime { get; set; } - /// Description of the tag -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Tag ID - public int? Id { get; set; } - /// Tag name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Id of the user that last updated the the tag - public int? UpdatedByUserId { get; set; } - /// Last update time for the tag in seconds since unix epoch - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public AssetTypePutResponse() - { - 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::NinjaOne.Client.V2.Tag.Item.AssetTypePutResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tag.Item.AssetTypePutResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "createdByUserId", n => { CreatedByUserId = n.GetIntValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updatedByUserId", n => { UpdatedByUserId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("createdByUserId", CreatedByUserId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("updatedByUserId", UpdatedByUserId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/Item/AssetTypeResponse.cs b/V2/Tag/Item/AssetTypeResponse.cs deleted file mode 100644 index 136c4f3..0000000 --- a/V2/Tag/Item/AssetTypeResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tag.Item -{ - [Obsolete("This class is obsolete. Use AssetTypePutResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AssetTypeResponse : global::NinjaOne.Client.V2.Tag.Item.AssetTypePutResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.Tag.Item.AssetTypeResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tag.Item.AssetTypeResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/Item/Item/WithAssetItemRequestBuilder.cs b/V2/Tag/Item/Item/WithAssetItemRequestBuilder.cs deleted file mode 100644 index 6d18113..0000000 --- a/V2/Tag/Item/Item/WithAssetItemRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tag.Item.Item -{ - /// - /// Builds and executes requests for operations under \v2\tag\{assetType-id}\{assetId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithAssetItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithAssetItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tag/{assetType%2Did}/{assetId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithAssetItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tag/{assetType%2Did}/{assetId}", rawUrl) - { - } - /// - /// Set the tags for an asset to exactly the supplied values - /// - /// A - /// The request body - /// 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 PutAsync(global::NinjaOne.Client.V2.Tag.Item.Item.WithAssetPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PutAsync(global::NinjaOne.Client.V2.Tag.Item.Item.WithAssetPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Set the tags for an asset to exactly the supplied values - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(global::NinjaOne.Client.V2.Tag.Item.Item.WithAssetPutRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(global::NinjaOne.Client.V2.Tag.Item.Item.WithAssetPutRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tag.Item.Item.WithAssetItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tag.Item.Item.WithAssetItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithAssetItemRequestBuilderPutRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/Item/Item/WithAssetPutRequestBody.cs b/V2/Tag/Item/Item/WithAssetPutRequestBody.cs deleted file mode 100644 index 28510fd..0000000 --- a/V2/Tag/Item/Item/WithAssetPutRequestBody.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tag.Item.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithAssetPutRequestBody : 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; } - /// Array of tag IDS to assign to asset from URL. The tags on the asset will be set to exactly these tags, removing existing tags if necessary -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? TagIds { get; set; } -#nullable restore -#else - public List TagIds { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithAssetPutRequestBody() - { - 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::NinjaOne.Client.V2.Tag.Item.Item.WithAssetPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tag.Item.Item.WithAssetPutRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "tagIds", n => { TagIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("tagIds", TagIds); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/Merge/Merge4XXError.cs b/V2/Tag/Merge/Merge4XXError.cs deleted file mode 100644 index 9ca8a6b..0000000 --- a/V2/Tag/Merge/Merge4XXError.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tag.Merge -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Merge4XXError : 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; } - /// Id of the user that created the tag - public int? CreatedByUserId { get; set; } - /// Creation time for the tag in seconds since unix epoch - public double? CreateTime { get; set; } - /// Description of the tag -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Tag ID - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Tag name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Id of the user that last updated the the tag - public int? UpdatedByUserId { get; set; } - /// Last update time for the tag in seconds since unix epoch - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Merge4XXError() - { - 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::NinjaOne.Client.V2.Tag.Merge.Merge4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tag.Merge.Merge4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "createdByUserId", n => { CreatedByUserId = n.GetIntValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updatedByUserId", n => { UpdatedByUserId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("createdByUserId", CreatedByUserId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("updatedByUserId", UpdatedByUserId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/Merge/Merge5XXError.cs b/V2/Tag/Merge/Merge5XXError.cs deleted file mode 100644 index 488ec1c..0000000 --- a/V2/Tag/Merge/Merge5XXError.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tag.Merge -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Merge5XXError : 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; } - /// Id of the user that created the tag - public int? CreatedByUserId { get; set; } - /// Creation time for the tag in seconds since unix epoch - public double? CreateTime { get; set; } - /// Description of the tag -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Tag ID - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Tag name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Id of the user that last updated the the tag - public int? UpdatedByUserId { get; set; } - /// Last update time for the tag in seconds since unix epoch - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Merge5XXError() - { - 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::NinjaOne.Client.V2.Tag.Merge.Merge5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tag.Merge.Merge5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "createdByUserId", n => { CreatedByUserId = n.GetIntValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updatedByUserId", n => { UpdatedByUserId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("createdByUserId", CreatedByUserId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("updatedByUserId", UpdatedByUserId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/Merge/MergePostRequestBody.cs b/V2/Tag/Merge/MergePostRequestBody.cs deleted file mode 100644 index 967c8d7..0000000 --- a/V2/Tag/Merge/MergePostRequestBody.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tag.Merge -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class MergePostRequestBody : 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; } - /// If creating a new tag, you can supply the new tag description here -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// If merging into an existing tag, you must provide the target tag id here - public int? MergeIntoTagId { get; set; } - /// Method to use - merge into an existing tag or create a new one - public global::NinjaOne.Client.V2.Tag.Merge.MergePostRequestBody_mergeMethod? MergeMethod { get; set; } - /// If creating a new tag, you must supply the new tag name here -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Array of tag ids to merge -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? TagIds { get; set; } -#nullable restore -#else - public List TagIds { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public MergePostRequestBody() - { - 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::NinjaOne.Client.V2.Tag.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tag.Merge.MergePostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "mergeIntoTagId", n => { MergeIntoTagId = n.GetIntValue(); } }, - { "mergeMethod", n => { MergeMethod = n.GetEnumValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "tagIds", n => { TagIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("mergeIntoTagId", MergeIntoTagId); - writer.WriteEnumValue("mergeMethod", MergeMethod); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tagIds", TagIds); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/Merge/MergePostRequestBody_mergeMethod.cs b/V2/Tag/Merge/MergePostRequestBody_mergeMethod.cs deleted file mode 100644 index c438d44..0000000 --- a/V2/Tag/Merge/MergePostRequestBody_mergeMethod.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Tag.Merge -{ - /// Method to use - merge into an existing tag or create a new one - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum MergePostRequestBody_mergeMethod - { - [EnumMember(Value = "MERGE_INTO_EXISTING_TAG")] - #pragma warning disable CS1591 - MERGE_INTO_EXISTING_TAG, - #pragma warning restore CS1591 - [EnumMember(Value = "MERGE_INTO_NEW_TAG")] - #pragma warning disable CS1591 - MERGE_INTO_NEW_TAG, - #pragma warning restore CS1591 - } -} diff --git a/V2/Tag/Merge/MergeRequestBuilder.cs b/V2/Tag/Merge/MergeRequestBuilder.cs deleted file mode 100644 index 4c8ab8f..0000000 --- a/V2/Tag/Merge/MergeRequestBuilder.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tag.Merge -{ - /// - /// Builds and executes requests for operations under \v2\tag\merge - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class MergeRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public MergeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tag/merge", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public MergeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tag/merge", rawUrl) - { - } - /// - /// Merges tags. Can merge into an existing or new tag depending on the input parameters - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.Tag.Merge.MergePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Tag.Merge.MergePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Tag.Merge.Merge4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Tag.Merge.Merge5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Merges tags. Can merge into an existing or new tag depending on the input parameters - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Tag.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Tag.Merge.MergePostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tag.Merge.MergeRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tag.Merge.MergeRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class MergeRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/TagGetResponse.cs b/V2/Tag/TagGetResponse.cs deleted file mode 100644 index 13dc1ea..0000000 --- a/V2/Tag/TagGetResponse.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tag -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TagGetResponse : 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 tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TagGetResponse() - { - 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::NinjaOne.Client.V2.Tag.TagGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tag.TagGetResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "tags", n => { Tags = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Tag.TagGetResponse_tags.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("tags", Tags); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/TagGetResponse_tags.cs b/V2/Tag/TagGetResponse_tags.cs deleted file mode 100644 index 02cf4bb..0000000 --- a/V2/Tag/TagGetResponse_tags.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tag -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TagGetResponse_tags : 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 createdBy property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tag.TagGetResponse_tags_createdBy? CreatedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tag.TagGetResponse_tags_createdBy CreatedBy { get; set; } -#endif - /// The createdByUserId property - public int? CreatedByUserId { get; set; } - /// The createTime property - public double? CreateTime { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The targetsCount property - public int? TargetsCount { get; set; } - /// The updatedBy property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Tag.TagGetResponse_tags_updatedBy? UpdatedBy { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Tag.TagGetResponse_tags_updatedBy UpdatedBy { get; set; } -#endif - /// The updatedByUserId property - public int? UpdatedByUserId { get; set; } - /// The updateTime property - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TagGetResponse_tags() - { - 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::NinjaOne.Client.V2.Tag.TagGetResponse_tags CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tag.TagGetResponse_tags(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "createdBy", n => { CreatedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Tag.TagGetResponse_tags_createdBy.CreateFromDiscriminatorValue); } }, - { "createdByUserId", n => { CreatedByUserId = n.GetIntValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "targetsCount", n => { TargetsCount = n.GetIntValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updatedBy", n => { UpdatedBy = n.GetObjectValue(global::NinjaOne.Client.V2.Tag.TagGetResponse_tags_updatedBy.CreateFromDiscriminatorValue); } }, - { "updatedByUserId", n => { UpdatedByUserId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("createdBy", CreatedBy); - writer.WriteIntValue("createdByUserId", CreatedByUserId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("targetsCount", TargetsCount); - writer.WriteObjectValue("updatedBy", UpdatedBy); - writer.WriteIntValue("updatedByUserId", UpdatedByUserId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/TagGetResponse_tags_createdBy.cs b/V2/Tag/TagGetResponse_tags_createdBy.cs deleted file mode 100644 index 15c07d9..0000000 --- a/V2/Tag/TagGetResponse_tags_createdBy.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tag -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TagGetResponse_tags_createdBy : 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 email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TagGetResponse_tags_createdBy() - { - 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::NinjaOne.Client.V2.Tag.TagGetResponse_tags_createdBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tag.TagGetResponse_tags_createdBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/TagGetResponse_tags_updatedBy.cs b/V2/Tag/TagGetResponse_tags_updatedBy.cs deleted file mode 100644 index e62913c..0000000 --- a/V2/Tag/TagGetResponse_tags_updatedBy.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tag -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TagGetResponse_tags_updatedBy : 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 email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TagGetResponse_tags_updatedBy() - { - 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::NinjaOne.Client.V2.Tag.TagGetResponse_tags_updatedBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tag.TagGetResponse_tags_updatedBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/TagPostRequestBody.cs b/V2/Tag/TagPostRequestBody.cs deleted file mode 100644 index cecb515..0000000 --- a/V2/Tag/TagPostRequestBody.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tag -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TagPostRequestBody : 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 description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TagPostRequestBody() - { - 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::NinjaOne.Client.V2.Tag.TagPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tag.TagPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/TagPostResponse.cs b/V2/Tag/TagPostResponse.cs deleted file mode 100644 index bbca5ad..0000000 --- a/V2/Tag/TagPostResponse.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tag -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TagPostResponse : 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; } - /// Id of the user that created the tag - public int? CreatedByUserId { get; set; } - /// Creation time for the tag in seconds since unix epoch - public double? CreateTime { get; set; } - /// Description of the tag -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Tag ID - public int? Id { get; set; } - /// Tag name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Id of the user that last updated the the tag - public int? UpdatedByUserId { get; set; } - /// Last update time for the tag in seconds since unix epoch - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TagPostResponse() - { - 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::NinjaOne.Client.V2.Tag.TagPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tag.TagPostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "createdByUserId", n => { CreatedByUserId = n.GetIntValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - { "updatedByUserId", n => { UpdatedByUserId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("createdByUserId", CreatedByUserId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("updatedByUserId", UpdatedByUserId); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/TagRequestBuilder.cs b/V2/Tag/TagRequestBuilder.cs deleted file mode 100644 index dc9d455..0000000 --- a/V2/Tag/TagRequestBuilder.cs +++ /dev/null @@ -1,206 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Tag.Delete; -using NinjaOne.Client.V2.Tag.Item; -using NinjaOne.Client.V2.Tag.Merge; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tag -{ - /// - /// Builds and executes requests for operations under \v2\tag - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TagRequestBuilder : BaseRequestBuilder - { - /// The deletePath property - public global::NinjaOne.Client.V2.Tag.Delete.DeleteRequestBuilder DeletePath - { - get => new global::NinjaOne.Client.V2.Tag.Delete.DeleteRequestBuilder(PathParameters, RequestAdapter); - } - /// The merge property - public global::NinjaOne.Client.V2.Tag.Merge.MergeRequestBuilder Merge - { - get => new global::NinjaOne.Client.V2.Tag.Merge.MergeRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the NinjaOne.Client.v2.tag.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Tag.Item.AssetTypeItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("assetType%2Did", position); - return new global::NinjaOne.Client.V2.Tag.Item.AssetTypeItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public TagRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tag", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TagRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tag", rawUrl) - { - } - /// - /// Get a list of created Asset Tags - /// - /// 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 GetAsTagGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsTagGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Tag.TagGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get a list of created Asset Tags - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use GetAsTagGetResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Tag.TagResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create an Asset Tag with the provided name and description - /// - /// A - /// The request body - /// 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 PostAsTagPostResponseAsync(global::NinjaOne.Client.V2.Tag.TagPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsTagPostResponseAsync(global::NinjaOne.Client.V2.Tag.TagPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Tag.TagPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create an Asset Tag with the provided name and description - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsTagPostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.Tag.TagPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Tag.TagPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Tag.TagResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get a list of created Asset Tags - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Create an Asset Tag with the provided name and description - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Tag.TagPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Tag.TagPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tag.TagRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tag.TagRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TagRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TagRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tag/TagResponse.cs b/V2/Tag/TagResponse.cs deleted file mode 100644 index 35f7ba3..0000000 --- a/V2/Tag/TagResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tag -{ - [Obsolete("This class is obsolete. Use TagGetResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TagResponse : global::NinjaOne.Client.V2.Tag.TagGetResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.Tag.TagResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tag.TagResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tasks/Tasks.cs b/V2/Tasks/Tasks.cs deleted file mode 100644 index 9f7a3bb..0000000 --- a/V2/Tasks/Tasks.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Tasks -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Tasks : 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; } - /// Timestamp of Scheduled Task creation - public double? Created { get; set; } - /// Description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Is Enabled ? - public bool? Enabled { get; set; } - /// Scheduled Task identifier - public int? Id { get; set; } - /// Timestamp of last Scheduled Task run - public double? LastRun { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// Name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Number of times scheduled task ran - public int? RunCount { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Tasks() - { - 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::NinjaOne.Client.V2.Tasks.Tasks CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Tasks.Tasks(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "created", n => { Created = n.GetDoubleValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastRun", n => { LastRun = n.GetDoubleValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "runCount", n => { RunCount = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("created", Created); - writer.WriteStringValue("description", Description); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteIntValue("id", Id); - writer.WriteDoubleValue("lastRun", LastRun); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("runCount", RunCount); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Tasks/TasksRequestBuilder.cs b/V2/Tasks/TasksRequestBuilder.cs deleted file mode 100644 index a4b6e0c..0000000 --- a/V2/Tasks/TasksRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Tasks -{ - /// - /// Builds and executes requests for operations under \v2\tasks - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TasksRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public TasksRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tasks", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TasksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/tasks", rawUrl) - { - } - /// - /// Returns list of registered scheduled tasks - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Tasks.Tasks.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of registered scheduled tasks - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Tasks.TasksRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Tasks.TasksRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TasksRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/AppUserContact/AppUserContact.cs b/V2/Ticketing/AppUserContact/AppUserContact.cs deleted file mode 100644 index 8581407..0000000 --- a/V2/Ticketing/AppUserContact/AppUserContact.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.AppUserContact -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AppUserContact : 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; } - /// Client identifier - public int? ClientId { get; set; } - /// The user's email address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The user's first name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// The user's last name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// Last User Identifier -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NaturalId { get; set; } -#nullable restore -#else - public string NaturalId { get; set; } -#endif - /// Global identifier for the user - public Guid? Uid { get; set; } - /// System User Type - public global::NinjaOne.Client.V2.Ticketing.AppUserContact.AppUserContact_userType? UserType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public AppUserContact() - { - 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::NinjaOne.Client.V2.Ticketing.AppUserContact.AppUserContact CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.AppUserContact.AppUserContact(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "clientId", n => { ClientId = n.GetIntValue(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "naturalId", n => { NaturalId = n.GetStringValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userType", n => { UserType = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("clientId", ClientId); - writer.WriteStringValue("email", Email); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("lastName", LastName); - writer.WriteStringValue("naturalId", NaturalId); - writer.WriteGuidValue("uid", Uid); - writer.WriteEnumValue("userType", UserType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/AppUserContact/AppUserContactRequestBuilder.cs b/V2/Ticketing/AppUserContact/AppUserContactRequestBuilder.cs deleted file mode 100644 index 38c7a51..0000000 --- a/V2/Ticketing/AppUserContact/AppUserContactRequestBuilder.cs +++ /dev/null @@ -1,132 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Ticketing.AppUserContact -{ - /// - /// Builds and executes requests for operations under \v2\ticketing\app-user-contact - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AppUserContactRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public AppUserContactRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/app-user-contact{?anchorNaturalId*,clientId*,pageSize*,searchCriteria*,userType*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public AppUserContactRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/app-user-contact{?anchorNaturalId*,clientId*,pageSize*,searchCriteria*,userType*}", rawUrl) - { - } - /// - /// Returns list of users (contacts, end-user, technician) - /// - /// A List<global::NinjaOne.Client.V2.Ticketing.AppUserContact.AppUserContact> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Ticketing.AppUserContact.AppUserContact.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Returns list of users (contacts, end-user, technician) - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Ticketing.AppUserContact.AppUserContactRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Ticketing.AppUserContact.AppUserContactRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of users (contacts, end-user, technician) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AppUserContactRequestBuilderGetQueryParameters - { - /// Last User Identifier from previous page - [QueryParameter("anchorNaturalId")] - public int? AnchorNaturalId { get; set; } - /// Organization identifier - [QueryParameter("clientId")] - public int? ClientId { get; set; } - /// Limit number of records per page - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - /// Search by first name, last name or email address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("searchCriteria")] - public string? SearchCriteria { get; set; } -#nullable restore -#else - [QueryParameter("searchCriteria")] - public string SearchCriteria { get; set; } -#endif - /// User Type - [Obsolete("This property is deprecated, use UserTypeAsGetUserTypeQueryParameterType instead")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("userType")] - public string? UserType { get; set; } -#nullable restore -#else - [QueryParameter("userType")] - public string UserType { get; set; } -#endif - /// User Type - [QueryParameter("userType")] - public global::NinjaOne.Client.V2.Ticketing.AppUserContact.GetUserTypeQueryParameterType? UserTypeAsGetUserTypeQueryParameterType { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AppUserContactRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/AppUserContact/AppUserContact_userType.cs b/V2/Ticketing/AppUserContact/AppUserContact_userType.cs deleted file mode 100644 index 9a5dbdb..0000000 --- a/V2/Ticketing/AppUserContact/AppUserContact_userType.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.AppUserContact -{ - /// System User Type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum AppUserContact_userType - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT")] - #pragma warning disable CS1591 - CONTACT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/AppUserContact/GetUserTypeQueryParameterType.cs b/V2/Ticketing/AppUserContact/GetUserTypeQueryParameterType.cs deleted file mode 100644 index d12d4b9..0000000 --- a/V2/Ticketing/AppUserContact/GetUserTypeQueryParameterType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.AppUserContact -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum GetUserTypeQueryParameterType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT")] - #pragma warning disable CS1591 - CONTACT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Attributes/Attributes.cs b/V2/Ticketing/Attributes/Attributes.cs deleted file mode 100644 index b001772..0000000 --- a/V2/Ticketing/Attributes/Attributes.cs +++ /dev/null @@ -1,162 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Attributes : ApiException, IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The active property - public bool? Active { get; set; } - /// 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 attributeType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? AttributeType { get; set; } -#nullable restore -#else - public string AttributeType { get; set; } -#endif - /// The content property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content? Content { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content Content { get; set; } -#endif - /// The createTime property - public double? CreateTime { get; set; } - /// The customizeForEndUser property - public bool? CustomizeForEndUser { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The descriptionForEndUser property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DescriptionForEndUser { get; set; } -#nullable restore -#else - public string DescriptionForEndUser { get; set; } -#endif - /// The endUserOption property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? EndUserOption { get; set; } -#nullable restore -#else - public string EndUserOption { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The nameForEndUser property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NameForEndUser { get; set; } -#nullable restore -#else - public string NameForEndUser { get; set; } -#endif - /// The system property - public bool? System { get; set; } - /// The technicianOption property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TechnicianOption { get; set; } -#nullable restore -#else - public string TechnicianOption { get; set; } -#endif - /// The updateTime property - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Attributes() - { - 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::NinjaOne.Client.V2.Ticketing.Attributes.Attributes CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "attributeType", n => { AttributeType = n.GetStringValue(); } }, - { "content", n => { Content = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content.CreateFromDiscriminatorValue); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "customizeForEndUser", n => { CustomizeForEndUser = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "descriptionForEndUser", n => { DescriptionForEndUser = n.GetStringValue(); } }, - { "endUserOption", n => { EndUserOption = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nameForEndUser", n => { NameForEndUser = n.GetStringValue(); } }, - { "system", n => { System = n.GetBoolValue(); } }, - { "technicianOption", n => { TechnicianOption = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteStringValue("attributeType", AttributeType); - writer.WriteObjectValue("content", Content); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteBoolValue("customizeForEndUser", CustomizeForEndUser); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("descriptionForEndUser", DescriptionForEndUser); - writer.WriteStringValue("endUserOption", EndUserOption); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("nameForEndUser", NameForEndUser); - writer.WriteBoolValue("system", System); - writer.WriteStringValue("technicianOption", TechnicianOption); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Attributes/AttributesRequestBuilder.cs b/V2/Ticketing/Attributes/AttributesRequestBuilder.cs deleted file mode 100644 index a1d3fab..0000000 --- a/V2/Ticketing/Attributes/AttributesRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - /// - /// Builds and executes requests for operations under \v2\ticketing\attributes - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AttributesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public AttributesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/attributes", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public AttributesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/attributes", rawUrl) - { - } - /// - /// Returns list of the ticket attributes - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of the ticket attributes - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Ticketing.Attributes.AttributesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Ticketing.Attributes.AttributesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AttributesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Attributes/Attributes_content.cs b/V2/Ticketing/Attributes/Attributes_content.cs deleted file mode 100644 index e7f13a0..0000000 --- a/V2/Ticketing/Attributes/Attributes_content.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Attributes_content : 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 advancedSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings? AdvancedSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings AdvancedSettings { get; set; } -#endif - /// The customizeForEndUser property - public bool? CustomizeForEndUser { get; set; } - /// The endUserCustomization property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_endUserCustomization? EndUserCustomization { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_endUserCustomization EndUserCustomization { get; set; } -#endif - /// The footerText property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FooterText { get; set; } -#nullable restore -#else - public string FooterText { get; set; } -#endif - /// The required property - public bool? Required { get; set; } - /// The tooltipText property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TooltipText { get; set; } -#nullable restore -#else - public string TooltipText { get; set; } -#endif - /// The values property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Attributes_content() - { - 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::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "advancedSettings", n => { AdvancedSettings = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings.CreateFromDiscriminatorValue); } }, - { "customizeForEndUser", n => { CustomizeForEndUser = n.GetBoolValue(); } }, - { "endUserCustomization", n => { EndUserCustomization = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_endUserCustomization.CreateFromDiscriminatorValue); } }, - { "footerText", n => { FooterText = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tooltipText", n => { TooltipText = n.GetStringValue(); } }, - { "values", n => { Values = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_values.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("advancedSettings", AdvancedSettings); - writer.WriteBoolValue("customizeForEndUser", CustomizeForEndUser); - writer.WriteObjectValue("endUserCustomization", EndUserCustomization); - writer.WriteStringValue("footerText", FooterText); - writer.WriteBoolValue("required", Required); - writer.WriteStringValue("tooltipText", TooltipText); - writer.WriteCollectionOfObjectValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Attributes/Attributes_content_advancedSettings.cs b/V2/Ticketing/Attributes/Attributes_content_advancedSettings.cs deleted file mode 100644 index b9b322d..0000000 --- a/V2/Ticketing/Attributes/Attributes_content_advancedSettings.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Attributes_content_advancedSettings : 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 complexityRules property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_complexityRules? ComplexityRules { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_complexityRules ComplexityRules { get; set; } -#endif - /// The dateFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_dateFilters? DateFilters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_dateFilters DateFilters { get; set; } -#endif - /// The expandLargeValueOnRender property - public bool? ExpandLargeValueOnRender { get; set; } - /// The fileExtensions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FileExtensions { get; set; } -#nullable restore -#else - public List FileExtensions { get; set; } -#endif - /// The fileMaxSize property - public int? FileMaxSize { get; set; } - /// The identifier property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_identifier? Identifier { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_identifier Identifier { get; set; } -#endif - /// The ipAddressType property - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_ipAddressType? IpAddressType { get; set; } - /// The maxCharacters property - public int? MaxCharacters { get; set; } - /// The monetary property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_monetary? Monetary { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_monetary Monetary { get; set; } -#endif - /// The nodeClass property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? NodeClass { get; set; } -#nullable restore -#else - public List NodeClass { get; set; } -#endif - /// The numericRange property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_numericRange? NumericRange { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_numericRange NumericRange { get; set; } -#endif - /// The org property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Org { get; set; } -#nullable restore -#else - public List Org { get; set; } -#endif - /// The templates property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Templates { get; set; } -#nullable restore -#else - public List Templates { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Attributes_content_advancedSettings() - { - 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::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "complexityRules", n => { ComplexityRules = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_complexityRules.CreateFromDiscriminatorValue); } }, - { "dateFilters", n => { DateFilters = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_dateFilters.CreateFromDiscriminatorValue); } }, - { "expandLargeValueOnRender", n => { ExpandLargeValueOnRender = n.GetBoolValue(); } }, - { "fileExtensions", n => { FileExtensions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "fileMaxSize", n => { FileMaxSize = n.GetIntValue(); } }, - { "identifier", n => { Identifier = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_identifier.CreateFromDiscriminatorValue); } }, - { "ipAddressType", n => { IpAddressType = n.GetEnumValue(); } }, - { "maxCharacters", n => { MaxCharacters = n.GetIntValue(); } }, - { "monetary", n => { Monetary = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_monetary.CreateFromDiscriminatorValue); } }, - { "nodeClass", n => { NodeClass = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "numericRange", n => { NumericRange = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_numericRange.CreateFromDiscriminatorValue); } }, - { "org", n => { Org = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "templates", n => { Templates = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("complexityRules", ComplexityRules); - writer.WriteObjectValue("dateFilters", DateFilters); - writer.WriteBoolValue("expandLargeValueOnRender", ExpandLargeValueOnRender); - writer.WriteCollectionOfPrimitiveValues("fileExtensions", FileExtensions); - writer.WriteIntValue("fileMaxSize", FileMaxSize); - writer.WriteObjectValue("identifier", Identifier); - writer.WriteEnumValue("ipAddressType", IpAddressType); - writer.WriteIntValue("maxCharacters", MaxCharacters); - writer.WriteObjectValue("monetary", Monetary); - writer.WriteCollectionOfEnumValues("nodeClass", NodeClass); - writer.WriteObjectValue("numericRange", NumericRange); - writer.WriteCollectionOfPrimitiveValues("org", Org); - writer.WriteCollectionOfPrimitiveValues("templates", Templates); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_complexityRules.cs b/V2/Ticketing/Attributes/Attributes_content_advancedSettings_complexityRules.cs deleted file mode 100644 index 41b60dd..0000000 --- a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_complexityRules.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Attributes_content_advancedSettings_complexityRules : 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 greaterOrEqualThanSixCharacters property - public bool? GreaterOrEqualThanSixCharacters { get; set; } - /// The mustContainOneInteger property - public bool? MustContainOneInteger { get; set; } - /// The mustContainOneLowercaseLetter property - public bool? MustContainOneLowercaseLetter { get; set; } - /// The mustContainOneUppercaseLetter property - public bool? MustContainOneUppercaseLetter { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Attributes_content_advancedSettings_complexityRules() - { - 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::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_complexityRules CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_complexityRules(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "greaterOrEqualThanSixCharacters", n => { GreaterOrEqualThanSixCharacters = n.GetBoolValue(); } }, - { "mustContainOneInteger", n => { MustContainOneInteger = n.GetBoolValue(); } }, - { "mustContainOneLowercaseLetter", n => { MustContainOneLowercaseLetter = n.GetBoolValue(); } }, - { "mustContainOneUppercaseLetter", n => { MustContainOneUppercaseLetter = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("greaterOrEqualThanSixCharacters", GreaterOrEqualThanSixCharacters); - writer.WriteBoolValue("mustContainOneInteger", MustContainOneInteger); - writer.WriteBoolValue("mustContainOneLowercaseLetter", MustContainOneLowercaseLetter); - writer.WriteBoolValue("mustContainOneUppercaseLetter", MustContainOneUppercaseLetter); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_dateFilters.cs b/V2/Ticketing/Attributes/Attributes_content_advancedSettings_dateFilters.cs deleted file mode 100644 index c29a87b..0000000 --- a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_dateFilters.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Attributes_content_advancedSettings_dateFilters : 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 selected property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Selected { get; set; } -#nullable restore -#else - public List Selected { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_dateFilters_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Attributes_content_advancedSettings_dateFilters() - { - 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::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_dateFilters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_dateFilters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "selected", n => { Selected = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("selected", Selected); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_dateFilters_type.cs b/V2/Ticketing/Attributes/Attributes_content_advancedSettings_dateFilters_type.cs deleted file mode 100644 index 73240c6..0000000 --- a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_dateFilters_type.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Attributes_content_advancedSettings_dateFilters_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "INCLUDE")] - #pragma warning disable CS1591 - INCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "EXCLUDE")] - #pragma warning disable CS1591 - EXCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "PAST_DATES_ONLY")] - #pragma warning disable CS1591 - PAST_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "FUTURE_DATES_ONLY")] - #pragma warning disable CS1591 - FUTURE_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "RANGE")] - #pragma warning disable CS1591 - RANGE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_identifier.cs b/V2/Ticketing/Attributes/Attributes_content_advancedSettings_identifier.cs deleted file mode 100644 index 1738999..0000000 --- a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_identifier.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Attributes_content_advancedSettings_identifier : 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 assignTo property - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_identifier_assignTo? AssignTo { get; set; } - /// The automaticGenerationEnabled property - public bool? AutomaticGenerationEnabled { get; set; } - /// The nextSequenceNumber property - public long? NextSequenceNumber { get; set; } - /// The prefix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Prefix { get; set; } -#nullable restore -#else - public string Prefix { get; set; } -#endif - /// The scope property - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_identifier_scope? Scope { get; set; } - /// The suffix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Suffix { get; set; } -#nullable restore -#else - public string Suffix { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_identifier_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Attributes_content_advancedSettings_identifier() - { - 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::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_identifier CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_identifier(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignTo", n => { AssignTo = n.GetEnumValue(); } }, - { "automaticGenerationEnabled", n => { AutomaticGenerationEnabled = n.GetBoolValue(); } }, - { "nextSequenceNumber", n => { NextSequenceNumber = n.GetLongValue(); } }, - { "prefix", n => { Prefix = n.GetStringValue(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - { "suffix", n => { Suffix = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignTo", AssignTo); - writer.WriteBoolValue("automaticGenerationEnabled", AutomaticGenerationEnabled); - writer.WriteLongValue("nextSequenceNumber", NextSequenceNumber); - writer.WriteStringValue("prefix", Prefix); - writer.WriteEnumValue("scope", Scope); - writer.WriteStringValue("suffix", Suffix); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_identifier_assignTo.cs b/V2/Ticketing/Attributes/Attributes_content_advancedSettings_identifier_assignTo.cs deleted file mode 100644 index 39bf191..0000000 --- a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_identifier_assignTo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Attributes_content_advancedSettings_identifier_assignTo - #pragma warning restore CS1591 - { - [EnumMember(Value = "NEW_ASSETS_ONLY")] - #pragma warning disable CS1591 - NEW_ASSETS_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "NEW_AND_EXISTING_ASSETS")] - #pragma warning disable CS1591 - NEW_AND_EXISTING_ASSETS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_identifier_scope.cs b/V2/Ticketing/Attributes/Attributes_content_advancedSettings_identifier_scope.cs deleted file mode 100644 index 33fb139..0000000 --- a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_identifier_scope.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Attributes_content_advancedSettings_identifier_scope - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "GLOBAL")] - #pragma warning disable CS1591 - GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_identifier_type.cs b/V2/Ticketing/Attributes/Attributes_content_advancedSettings_identifier_type.cs deleted file mode 100644 index 1b7dd82..0000000 --- a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_identifier_type.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Attributes_content_advancedSettings_identifier_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - [EnumMember(Value = "SEQUENCE")] - #pragma warning disable CS1591 - SEQUENCE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_ipAddressType.cs b/V2/Ticketing/Attributes/Attributes_content_advancedSettings_ipAddressType.cs deleted file mode 100644 index 72fe5b6..0000000 --- a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_ipAddressType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Attributes_content_advancedSettings_ipAddressType - #pragma warning restore CS1591 - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV4")] - #pragma warning disable CS1591 - IPV4, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV6")] - #pragma warning disable CS1591 - IPV6, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_monetary.cs b/V2/Ticketing/Attributes/Attributes_content_advancedSettings_monetary.cs deleted file mode 100644 index 62f5952..0000000 --- a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_monetary.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Attributes_content_advancedSettings_monetary : 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 currency property - public global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_monetary_currency? Currency { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Attributes_content_advancedSettings_monetary() - { - 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::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_monetary CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_monetary(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "currency", n => { Currency = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("currency", Currency); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_monetary_currency.cs b/V2/Ticketing/Attributes/Attributes_content_advancedSettings_monetary_currency.cs deleted file mode 100644 index 4a38fe2..0000000 --- a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_monetary_currency.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Attributes_content_advancedSettings_monetary_currency - #pragma warning restore CS1591 - { - [EnumMember(Value = "USD")] - #pragma warning disable CS1591 - USD, - #pragma warning restore CS1591 - [EnumMember(Value = "EUR")] - #pragma warning disable CS1591 - EUR, - #pragma warning restore CS1591 - [EnumMember(Value = "CAD")] - #pragma warning disable CS1591 - CAD, - #pragma warning restore CS1591 - [EnumMember(Value = "GBP")] - #pragma warning disable CS1591 - GBP, - #pragma warning restore CS1591 - [EnumMember(Value = "AUD")] - #pragma warning disable CS1591 - AUD, - #pragma warning restore CS1591 - [EnumMember(Value = "JPY")] - #pragma warning disable CS1591 - JPY, - #pragma warning restore CS1591 - [EnumMember(Value = "SEK")] - #pragma warning disable CS1591 - SEK, - #pragma warning restore CS1591 - [EnumMember(Value = "NOK")] - #pragma warning disable CS1591 - NOK, - #pragma warning restore CS1591 - [EnumMember(Value = "DKK")] - #pragma warning disable CS1591 - DKK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHF")] - #pragma warning disable CS1591 - CHF, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_nodeClass.cs b/V2/Ticketing/Attributes/Attributes_content_advancedSettings_nodeClass.cs deleted file mode 100644 index 091aa85..0000000 --- a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_nodeClass.cs +++ /dev/null @@ -1,144 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Attributes_content_advancedSettings_nodeClass - #pragma warning restore CS1591 - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_numericRange.cs b/V2/Ticketing/Attributes/Attributes_content_advancedSettings_numericRange.cs deleted file mode 100644 index 5f1aff6..0000000 --- a/V2/Ticketing/Attributes/Attributes_content_advancedSettings_numericRange.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Attributes_content_advancedSettings_numericRange : 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 max property - public double? Max { get; set; } - /// The min property - public double? Min { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Attributes_content_advancedSettings_numericRange() - { - 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::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_numericRange CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_advancedSettings_numericRange(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "max", n => { Max = n.GetDoubleValue(); } }, - { "min", n => { Min = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("max", Max); - writer.WriteDoubleValue("min", Min); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Attributes/Attributes_content_endUserCustomization.cs b/V2/Ticketing/Attributes/Attributes_content_endUserCustomization.cs deleted file mode 100644 index ee68d16..0000000 --- a/V2/Ticketing/Attributes/Attributes_content_endUserCustomization.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Attributes_content_endUserCustomization : 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 description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Attributes_content_endUserCustomization() - { - 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::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_endUserCustomization CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_endUserCustomization(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "label", n => { Label = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Attributes/Attributes_content_values.cs b/V2/Ticketing/Attributes/Attributes_content_values.cs deleted file mode 100644 index 4ffaee1..0000000 --- a/V2/Ticketing/Attributes/Attributes_content_values.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Attributes -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Attributes_content_values : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The active property - public bool? Active { get; set; } - /// 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 id property - public Guid? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The system property - public bool? System { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Attributes_content_values() - { - 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::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_values CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Attributes.Attributes_content_values(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "system", n => { System = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteBoolValue("system", System); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Contact/ContactRequestBuilder.cs b/V2/Ticketing/Contact/ContactRequestBuilder.cs deleted file mode 100644 index 1510def..0000000 --- a/V2/Ticketing/Contact/ContactRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Ticketing.Contact.Contacts; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Ticketing.Contact -{ - /// - /// Builds and executes requests for operations under \v2\ticketing\contact - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ContactRequestBuilder : BaseRequestBuilder - { - /// The contacts property - public global::NinjaOne.Client.V2.Ticketing.Contact.Contacts.ContactsRequestBuilder Contacts - { - get => new global::NinjaOne.Client.V2.Ticketing.Contact.Contacts.ContactsRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ContactRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/contact", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ContactRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/contact", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Contact/Contacts/Contacts.cs b/V2/Ticketing/Contact/Contacts/Contacts.cs deleted file mode 100644 index 855357e..0000000 --- a/V2/Ticketing/Contact/Contacts/Contacts.cs +++ /dev/null @@ -1,148 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Contact.Contacts -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Contacts : 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 clientId property - public int? ClientId { get; set; } - /// The clientName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ClientName { get; set; } -#nullable restore -#else - public string ClientName { get; set; } -#endif - /// The createTime property - public double? CreateTime { get; set; } - /// The displayName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// The email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The jobTitle property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? JobTitle { get; set; } -#nullable restore -#else - public string JobTitle { get; set; } -#endif - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The phone property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// The uid property - public Guid? Uid { get; set; } - /// The updateTime property - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Contacts() - { - 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::NinjaOne.Client.V2.Ticketing.Contact.Contacts.Contacts CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Contact.Contacts.Contacts(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "clientId", n => { ClientId = n.GetIntValue(); } }, - { "clientName", n => { ClientName = n.GetStringValue(); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "jobTitle", n => { JobTitle = n.GetStringValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("clientId", ClientId); - writer.WriteStringValue("clientName", ClientName); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("email", Email); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("jobTitle", JobTitle); - writer.WriteStringValue("lastName", LastName); - writer.WriteStringValue("phone", Phone); - writer.WriteGuidValue("uid", Uid); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Contact/Contacts/ContactsRequestBuilder.cs b/V2/Ticketing/Contact/Contacts/ContactsRequestBuilder.cs deleted file mode 100644 index 40435e5..0000000 --- a/V2/Ticketing/Contact/Contacts/ContactsRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Ticketing.Contact.Contacts -{ - /// - /// Builds and executes requests for operations under \v2\ticketing\contact\contacts - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ContactsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ContactsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/contact/contacts", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ContactsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/contact/contacts", rawUrl) - { - } - /// - /// Returns list of contacts - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Ticketing.Contact.Contacts.Contacts.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of contacts - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Ticketing.Contact.Contacts.ContactsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Ticketing.Contact.Contacts.ContactsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ContactsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Statuses/Statuses.cs b/V2/Ticketing/Statuses/Statuses.cs deleted file mode 100644 index bf7ccb5..0000000 --- a/V2/Ticketing/Statuses/Statuses.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Statuses -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Statuses : 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 displayName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The parentId property - public int? ParentId { get; set; } - /// The statusId property - public int? StatusId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Statuses() - { - 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::NinjaOne.Client.V2.Ticketing.Statuses.Statuses CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Statuses.Statuses(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "parentId", n => { ParentId = n.GetIntValue(); } }, - { "statusId", n => { StatusId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("parentId", ParentId); - writer.WriteIntValue("statusId", StatusId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Statuses/StatusesRequestBuilder.cs b/V2/Ticketing/Statuses/StatusesRequestBuilder.cs deleted file mode 100644 index 2903df4..0000000 --- a/V2/Ticketing/Statuses/StatusesRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Ticketing.Statuses -{ - /// - /// Builds and executes requests for operations under \v2\ticketing\statuses - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class StatusesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public StatusesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/statuses", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public StatusesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/statuses", rawUrl) - { - } - /// - /// Get list of ticket status - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Ticketing.Statuses.Statuses.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Get list of ticket status - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Ticketing.Statuses.StatusesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Ticketing.Statuses.StatusesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class StatusesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/Comment/CommentPostRequestBody.cs b/V2/Ticketing/Ticket/Item/Comment/CommentPostRequestBody.cs deleted file mode 100644 index aa71fce..0000000 --- a/V2/Ticketing/Ticket/Item/Comment/CommentPostRequestBody.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.Comment -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CommentPostRequestBody : 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 body property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Body { get; set; } -#nullable restore -#else - public string Body { get; set; } -#endif - /// The duplicateInIncidents property - public bool? DuplicateInIncidents { get; set; } - /// The htmlBody property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? HtmlBody { get; set; } -#nullable restore -#else - public string HtmlBody { get; set; } -#endif - /// The public property - public bool? Public { get; set; } - /// time in seconds - public int? TimeTracked { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public CommentPostRequestBody() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.Comment.CommentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.Comment.CommentPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "body", n => { Body = n.GetStringValue(); } }, - { "duplicateInIncidents", n => { DuplicateInIncidents = n.GetBoolValue(); } }, - { "htmlBody", n => { HtmlBody = n.GetStringValue(); } }, - { "public", n => { Public = n.GetBoolValue(); } }, - { "timeTracked", n => { TimeTracked = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("body", Body); - writer.WriteBoolValue("duplicateInIncidents", DuplicateInIncidents); - writer.WriteStringValue("htmlBody", HtmlBody); - writer.WriteBoolValue("public", Public); - writer.WriteIntValue("timeTracked", TimeTracked); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/Comment/CommentRequestBuilder.cs b/V2/Ticketing/Ticket/Item/Comment/CommentRequestBuilder.cs deleted file mode 100644 index 7c24879..0000000 --- a/V2/Ticketing/Ticket/Item/Comment/CommentRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.Comment -{ - /// - /// Builds and executes requests for operations under \v2\ticketing\ticket\{ticketId}\comment - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CommentRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public CommentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/ticket/{ticketId}/comment", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public CommentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/ticket/{ticketId}/comment", rawUrl) - { - } - /// - /// Add a new comment to a ticket, allows files - /// - /// A - /// The request body - /// 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 PostAsync(MultipartBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(MultipartBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Add a new comment to a ticket, allows files - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(MultipartBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(MultipartBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "multipart/form-data", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.Comment.CommentRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.Comment.CommentRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CommentRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/LogEntry/GetTypeQueryParameterType.cs b/V2/Ticketing/Ticket/Item/LogEntry/GetTypeQueryParameterType.cs deleted file mode 100644 index 4e84266..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/GetTypeQueryParameterType.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum GetTypeQueryParameterType - #pragma warning restore CS1591 - { - [EnumMember(Value = "DESCRIPTION")] - #pragma warning disable CS1591 - DESCRIPTION, - #pragma warning restore CS1591 - [EnumMember(Value = "COMMENT")] - #pragma warning disable CS1591 - COMMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION")] - #pragma warning disable CS1591 - CONDITION, - #pragma warning restore CS1591 - [EnumMember(Value = "SAVE")] - #pragma warning disable CS1591 - SAVE, - #pragma warning restore CS1591 - [EnumMember(Value = "DELETE")] - #pragma warning disable CS1591 - DELETE, - #pragma warning restore CS1591 - [EnumMember(Value = "PRODUCT")] - #pragma warning disable CS1591 - PRODUCT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry.cs deleted file mode 100644 index 0eacae5..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry.cs +++ /dev/null @@ -1,186 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LogEntry : ApiException, IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The activityId property - public long? ActivityId { get; set; } - /// 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 appUserContactId property - public int? AppUserContactId { get; set; } - /// The appUserContactType property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_appUserContactType? AppUserContactType { get; set; } - /// The appUserContactUid property - public Guid? AppUserContactUid { get; set; } - /// The automation property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_automation? Automation { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_automation Automation { get; set; } -#endif - /// The blockedByInvoice property - public bool? BlockedByInvoice { get; set; } - /// The body property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Body { get; set; } -#nullable restore -#else - public string Body { get; set; } -#endif - /// The changeDiff property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_changeDiff? ChangeDiff { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_changeDiff ChangeDiff { get; set; } -#endif - /// The createTime property - public double? CreateTime { get; set; } - /// The emailResponse property - public bool? EmailResponse { get; set; } - /// The fullEmailBody property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FullEmailBody { get; set; } -#nullable restore -#else - public string FullEmailBody { get; set; } -#endif - /// The htmlBody property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? HtmlBody { get; set; } -#nullable restore -#else - public string HtmlBody { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// The publicEntry property - public bool? PublicEntry { get; set; } - /// The system property - public bool? System { get; set; } - /// The techniciansTaggedMetadata property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? TechniciansTaggedMetadata { get; set; } -#nullable restore -#else - public List TechniciansTaggedMetadata { get; set; } -#endif - /// The technicianTagged property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? TechnicianTagged { get; set; } -#nullable restore -#else - public List TechnicianTagged { get; set; } -#endif - /// The ticketTimeEntry property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry? TicketTimeEntry { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry TicketTimeEntry { get; set; } -#endif - /// The timeTracked property - public int? TimeTracked { get; set; } - /// The type property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public LogEntry() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "activityId", n => { ActivityId = n.GetLongValue(); } }, - { "appUserContactId", n => { AppUserContactId = n.GetIntValue(); } }, - { "appUserContactType", n => { AppUserContactType = n.GetEnumValue(); } }, - { "appUserContactUid", n => { AppUserContactUid = n.GetGuidValue(); } }, - { "automation", n => { Automation = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_automation.CreateFromDiscriminatorValue); } }, - { "blockedByInvoice", n => { BlockedByInvoice = n.GetBoolValue(); } }, - { "body", n => { Body = n.GetStringValue(); } }, - { "changeDiff", n => { ChangeDiff = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_changeDiff.CreateFromDiscriminatorValue); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "emailResponse", n => { EmailResponse = n.GetBoolValue(); } }, - { "fullEmailBody", n => { FullEmailBody = n.GetStringValue(); } }, - { "htmlBody", n => { HtmlBody = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "publicEntry", n => { PublicEntry = n.GetBoolValue(); } }, - { "system", n => { System = n.GetBoolValue(); } }, - { "technicianTagged", n => { TechnicianTagged = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "techniciansTaggedMetadata", n => { TechniciansTaggedMetadata = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_techniciansTaggedMetadata.CreateFromDiscriminatorValue)?.AsList(); } }, - { "ticketTimeEntry", n => { TicketTimeEntry = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry.CreateFromDiscriminatorValue); } }, - { "timeTracked", n => { TimeTracked = n.GetIntValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteLongValue("activityId", ActivityId); - writer.WriteIntValue("appUserContactId", AppUserContactId); - writer.WriteEnumValue("appUserContactType", AppUserContactType); - writer.WriteGuidValue("appUserContactUid", AppUserContactUid); - writer.WriteObjectValue("automation", Automation); - writer.WriteBoolValue("blockedByInvoice", BlockedByInvoice); - writer.WriteStringValue("body", Body); - writer.WriteObjectValue("changeDiff", ChangeDiff); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteBoolValue("emailResponse", EmailResponse); - writer.WriteStringValue("fullEmailBody", FullEmailBody); - writer.WriteStringValue("htmlBody", HtmlBody); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("publicEntry", PublicEntry); - writer.WriteBoolValue("system", System); - writer.WriteCollectionOfObjectValues("techniciansTaggedMetadata", TechniciansTaggedMetadata); - writer.WriteCollectionOfPrimitiveValues("technicianTagged", TechnicianTagged); - writer.WriteObjectValue("ticketTimeEntry", TicketTimeEntry); - writer.WriteIntValue("timeTracked", TimeTracked); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntryRequestBuilder.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntryRequestBuilder.cs deleted file mode 100644 index 7e34db0..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntryRequestBuilder.cs +++ /dev/null @@ -1,128 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - /// - /// Builds and executes requests for operations under \v2\ticketing\ticket\{ticketId}\log-entry - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LogEntryRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public LogEntryRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/ticket/{ticketId}/log-entry{?anchorId*,createTime*,pageSize*,type*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public LogEntryRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/ticket/{ticketId}/log-entry{?anchorId*,createTime*,pageSize*,type*}", rawUrl) - { - } - /// - /// Returns list of the ticket log entries for a ticket - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of the ticket log entries for a ticket - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntryRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntryRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of the ticket log entries for a ticket - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LogEntryRequestBuilderGetQueryParameters - { - [QueryParameter("anchorId")] - public int? AnchorId { get; set; } -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("createTime")] - public string? CreateTime { get; set; } -#nullable restore -#else - [QueryParameter("createTime")] - public string CreateTime { get; set; } -#endif - [QueryParameter("pageSize")] - public int? PageSize { get; set; } - [Obsolete("This property is deprecated, use TypeAsGetTypeQueryParameterType instead")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("type")] - public string? Type { get; set; } -#nullable restore -#else - [QueryParameter("type")] - public string Type { get; set; } -#endif - [QueryParameter("type")] - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.GetTypeQueryParameterType? TypeAsGetTypeQueryParameterType { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class LogEntryRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_appUserContactType.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_appUserContactType.cs deleted file mode 100644 index 9162c4e..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_appUserContactType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum LogEntry_appUserContactType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CONTACT")] - #pragma warning disable CS1591 - CONTACT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_automation.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_automation.cs deleted file mode 100644 index 45cf64f..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_automation.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LogEntry_automation : 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 id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The system property - public bool? System { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public LogEntry_automation() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_automation CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_automation(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "system", n => { System = n.GetBoolValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteBoolValue("system", System); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_changeDiff.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_changeDiff.cs deleted file mode 100644 index 7a5e95c..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_changeDiff.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LogEntry_changeDiff : 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. - /// - public LogEntry_changeDiff() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_changeDiff CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_changeDiff(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_techniciansTaggedMetadata.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_techniciansTaggedMetadata.cs deleted file mode 100644 index 38e6df9..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_techniciansTaggedMetadata.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LogEntry_techniciansTaggedMetadata : 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 deleted property - public bool? Deleted { get; set; } - /// The displayName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// The email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The permitted property - public bool? Permitted { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public LogEntry_techniciansTaggedMetadata() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_techniciansTaggedMetadata CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_techniciansTaggedMetadata(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "permitted", n => { Permitted = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("email", Email); - writer.WriteIntValue("id", Id); - writer.WriteBoolValue("permitted", Permitted); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry.cs deleted file mode 100644 index 8d9d3b3..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LogEntry_ticketTimeEntry : 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 inHours property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours? InHours { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours InHours { get; set; } -#endif - /// The offHours property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours? OffHours { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours OffHours { get; set; } -#endif - /// The remote property - public bool? Remote { get; set; } - /// The startDate property - public long? StartDate { get; set; } - /// The ticketLogEntryId property - public int? TicketLogEntryId { get; set; } - /// The timeTracked property - public int? TimeTracked { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public LogEntry_ticketTimeEntry() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "inHours", n => { InHours = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours.CreateFromDiscriminatorValue); } }, - { "offHours", n => { OffHours = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours.CreateFromDiscriminatorValue); } }, - { "remote", n => { Remote = n.GetBoolValue(); } }, - { "startDate", n => { StartDate = n.GetLongValue(); } }, - { "ticketLogEntryId", n => { TicketLogEntryId = n.GetIntValue(); } }, - { "timeTracked", n => { TimeTracked = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inHours", InHours); - writer.WriteObjectValue("offHours", OffHours); - writer.WriteBoolValue("remote", Remote); - writer.WriteLongValue("startDate", StartDate); - writer.WriteIntValue("ticketLogEntryId", TicketLogEntryId); - writer.WriteIntValue("timeTracked", TimeTracked); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours.cs deleted file mode 100644 index 587184b..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LogEntry_ticketTimeEntry_inHours : 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 agreement property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours_agreement? Agreement { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours_agreement Agreement { get; set; } -#endif - /// The agreementOriginType property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours_agreementOriginType? AgreementOriginType { get; set; } - /// The agreementProduct property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours_agreementProduct? AgreementProduct { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours_agreementProduct AgreementProduct { get; set; } -#endif - /// The billing property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours_billing? Billing { get; set; } - /// The billingStatus property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours_billingStatus? BillingStatus { get; set; } - /// The invoiceId property - public int? InvoiceId { get; set; } - /// The price property - public double? Price { get; set; } - /// The timeTracked property - public int? TimeTracked { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public LogEntry_ticketTimeEntry_inHours() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "agreement", n => { Agreement = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours_agreement.CreateFromDiscriminatorValue); } }, - { "agreementOriginType", n => { AgreementOriginType = n.GetEnumValue(); } }, - { "agreementProduct", n => { AgreementProduct = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours_agreementProduct.CreateFromDiscriminatorValue); } }, - { "billing", n => { Billing = n.GetEnumValue(); } }, - { "billingStatus", n => { BillingStatus = n.GetEnumValue(); } }, - { "invoiceId", n => { InvoiceId = n.GetIntValue(); } }, - { "price", n => { Price = n.GetDoubleValue(); } }, - { "timeTracked", n => { TimeTracked = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("agreement", Agreement); - writer.WriteEnumValue("agreementOriginType", AgreementOriginType); - writer.WriteObjectValue("agreementProduct", AgreementProduct); - writer.WriteEnumValue("billing", Billing); - writer.WriteEnumValue("billingStatus", BillingStatus); - writer.WriteIntValue("invoiceId", InvoiceId); - writer.WriteDoubleValue("price", Price); - writer.WriteIntValue("timeTracked", TimeTracked); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours_agreement.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours_agreement.cs deleted file mode 100644 index a28f942..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours_agreement.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LogEntry_ticketTimeEntry_inHours_agreement : 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 id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public LogEntry_ticketTimeEntry_inHours_agreement() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours_agreement CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours_agreement(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours_agreementOriginType.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours_agreementOriginType.cs deleted file mode 100644 index 0fab349..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours_agreementOriginType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum LogEntry_ticketTimeEntry_inHours_agreementOriginType - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "SELF")] - #pragma warning disable CS1591 - SELF, - #pragma warning restore CS1591 - [EnumMember(Value = "TICKET")] - #pragma warning disable CS1591 - TICKET, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours_agreementProduct.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours_agreementProduct.cs deleted file mode 100644 index 6a4271b..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours_agreementProduct.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LogEntry_ticketTimeEntry_inHours_agreementProduct : 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 id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public LogEntry_ticketTimeEntry_inHours_agreementProduct() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours_agreementProduct CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_inHours_agreementProduct(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours_billing.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours_billing.cs deleted file mode 100644 index d7571bd..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours_billing.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum LogEntry_ticketTimeEntry_inHours_billing - #pragma warning restore CS1591 - { - [EnumMember(Value = "BILLABLE")] - #pragma warning disable CS1591 - BILLABLE, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_BILLABLE")] - #pragma warning disable CS1591 - NOT_BILLABLE, - #pragma warning restore CS1591 - [EnumMember(Value = "NO_CHARGE")] - #pragma warning disable CS1591 - NO_CHARGE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours_billingStatus.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours_billingStatus.cs deleted file mode 100644 index 1f6d15b..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_inHours_billingStatus.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum LogEntry_ticketTimeEntry_inHours_billingStatus - #pragma warning restore CS1591 - { - [EnumMember(Value = "BILLED")] - #pragma warning disable CS1591 - BILLED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_BILLABLE")] - #pragma warning disable CS1591 - NOT_BILLABLE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours.cs deleted file mode 100644 index 3bb289e..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LogEntry_ticketTimeEntry_offHours : 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 agreement property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours_agreement? Agreement { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours_agreement Agreement { get; set; } -#endif - /// The agreementOriginType property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours_agreementOriginType? AgreementOriginType { get; set; } - /// The agreementProduct property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours_agreementProduct? AgreementProduct { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours_agreementProduct AgreementProduct { get; set; } -#endif - /// The billing property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours_billing? Billing { get; set; } - /// The billingStatus property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours_billingStatus? BillingStatus { get; set; } - /// The invoiceId property - public int? InvoiceId { get; set; } - /// The price property - public double? Price { get; set; } - /// The timeTracked property - public int? TimeTracked { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public LogEntry_ticketTimeEntry_offHours() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "agreement", n => { Agreement = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours_agreement.CreateFromDiscriminatorValue); } }, - { "agreementOriginType", n => { AgreementOriginType = n.GetEnumValue(); } }, - { "agreementProduct", n => { AgreementProduct = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours_agreementProduct.CreateFromDiscriminatorValue); } }, - { "billing", n => { Billing = n.GetEnumValue(); } }, - { "billingStatus", n => { BillingStatus = n.GetEnumValue(); } }, - { "invoiceId", n => { InvoiceId = n.GetIntValue(); } }, - { "price", n => { Price = n.GetDoubleValue(); } }, - { "timeTracked", n => { TimeTracked = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("agreement", Agreement); - writer.WriteEnumValue("agreementOriginType", AgreementOriginType); - writer.WriteObjectValue("agreementProduct", AgreementProduct); - writer.WriteEnumValue("billing", Billing); - writer.WriteEnumValue("billingStatus", BillingStatus); - writer.WriteIntValue("invoiceId", InvoiceId); - writer.WriteDoubleValue("price", Price); - writer.WriteIntValue("timeTracked", TimeTracked); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours_agreement.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours_agreement.cs deleted file mode 100644 index 9c47a36..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours_agreement.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LogEntry_ticketTimeEntry_offHours_agreement : 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 id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public LogEntry_ticketTimeEntry_offHours_agreement() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours_agreement CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours_agreement(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours_agreementOriginType.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours_agreementOriginType.cs deleted file mode 100644 index 2bd9019..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours_agreementOriginType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum LogEntry_ticketTimeEntry_offHours_agreementOriginType - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "SELF")] - #pragma warning disable CS1591 - SELF, - #pragma warning restore CS1591 - [EnumMember(Value = "TICKET")] - #pragma warning disable CS1591 - TICKET, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours_agreementProduct.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours_agreementProduct.cs deleted file mode 100644 index a446a61..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours_agreementProduct.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class LogEntry_ticketTimeEntry_offHours_agreementProduct : 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 id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public LogEntry_ticketTimeEntry_offHours_agreementProduct() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours_agreementProduct CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntry_ticketTimeEntry_offHours_agreementProduct(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours_billing.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours_billing.cs deleted file mode 100644 index 9fa2f6b..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours_billing.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum LogEntry_ticketTimeEntry_offHours_billing - #pragma warning restore CS1591 - { - [EnumMember(Value = "BILLABLE")] - #pragma warning disable CS1591 - BILLABLE, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_BILLABLE")] - #pragma warning disable CS1591 - NOT_BILLABLE, - #pragma warning restore CS1591 - [EnumMember(Value = "NO_CHARGE")] - #pragma warning disable CS1591 - NO_CHARGE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours_billingStatus.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours_billingStatus.cs deleted file mode 100644 index d6959b0..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_ticketTimeEntry_offHours_billingStatus.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum LogEntry_ticketTimeEntry_offHours_billingStatus - #pragma warning restore CS1591 - { - [EnumMember(Value = "BILLED")] - #pragma warning disable CS1591 - BILLED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "NOT_BILLABLE")] - #pragma warning disable CS1591 - NOT_BILLABLE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_type.cs b/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_type.cs deleted file mode 100644 index 18c76df..0000000 --- a/V2/Ticketing/Ticket/Item/LogEntry/LogEntry_type.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum LogEntry_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "DESCRIPTION")] - #pragma warning disable CS1591 - DESCRIPTION, - #pragma warning restore CS1591 - [EnumMember(Value = "COMMENT")] - #pragma warning disable CS1591 - COMMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION")] - #pragma warning disable CS1591 - CONDITION, - #pragma warning restore CS1591 - [EnumMember(Value = "SAVE")] - #pragma warning disable CS1591 - SAVE, - #pragma warning restore CS1591 - [EnumMember(Value = "DELETE")] - #pragma warning disable CS1591 - DELETE, - #pragma warning restore CS1591 - [EnumMember(Value = "PRODUCT")] - #pragma warning disable CS1591 - PRODUCT, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/WithTicket4XXError.cs b/V2/Ticketing/Ticket/Item/WithTicket4XXError.cs deleted file mode 100644 index 0b68507..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket4XXError.cs +++ /dev/null @@ -1,178 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTicket4XXError : ApiException, IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The additionalAssignedTechnicianIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AdditionalAssignedTechnicianIds { get; set; } -#nullable restore -#else - public List AdditionalAssignedTechnicianIds { get; set; } -#endif - /// 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 assignedAppUserId property - public int? AssignedAppUserId { get; set; } - /// The attributeValues property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AttributeValues { get; set; } -#nullable restore -#else - public List AttributeValues { get; set; } -#endif - /// The ccList property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_ccList? CcList { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_ccList CcList { get; set; } -#endif - /// The clientId property - public int? ClientId { get; set; } - /// The createTime property - public double? CreateTime { get; set; } - /// The deleted property - public bool? Deleted { get; set; } - /// The followupTime property - public double? FollowupTime { get; set; } - /// The id property - public int? Id { get; set; } - /// The locationId property - public int? LocationId { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// The nodeId property - public int? NodeId { get; set; } - /// The priority property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_priority? Priority { get; set; } - /// The requesterUid property - public Guid? RequesterUid { get; set; } - /// The severity property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_severity? Severity { get; set; } - /// The source property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_source? SourceEscaped { get; set; } - /// The status property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_status? Status { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_status Status { get; set; } -#endif - /// The subject property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subject { get; set; } -#nullable restore -#else - public string Subject { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// The ticketFormId property - public int? TicketFormId { get; set; } - /// The type property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_type? Type { get; set; } - /// The version property - public int? Version { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithTicket4XXError() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "additionalAssignedTechnicianIds", n => { AdditionalAssignedTechnicianIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "assignedAppUserId", n => { AssignedAppUserId = n.GetIntValue(); } }, - { "attributeValues", n => { AttributeValues = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_attributeValues.CreateFromDiscriminatorValue)?.AsList(); } }, - { "ccList", n => { CcList = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_ccList.CreateFromDiscriminatorValue); } }, - { "clientId", n => { ClientId = n.GetIntValue(); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "followupTime", n => { FollowupTime = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "nodeId", n => { NodeId = n.GetIntValue(); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "requesterUid", n => { RequesterUid = n.GetGuidValue(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - { "source", n => { SourceEscaped = n.GetEnumValue(); } }, - { "status", n => { Status = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_status.CreateFromDiscriminatorValue); } }, - { "subject", n => { Subject = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "ticketFormId", n => { TicketFormId = n.GetIntValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "version", n => { Version = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("additionalAssignedTechnicianIds", AdditionalAssignedTechnicianIds); - writer.WriteIntValue("assignedAppUserId", AssignedAppUserId); - writer.WriteCollectionOfObjectValues("attributeValues", AttributeValues); - writer.WriteObjectValue("ccList", CcList); - writer.WriteIntValue("clientId", ClientId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteDoubleValue("followupTime", FollowupTime); - writer.WriteIntValue("id", Id); - writer.WriteIntValue("locationId", LocationId); - writer.WriteIntValue("nodeId", NodeId); - writer.WriteEnumValue("priority", Priority); - writer.WriteGuidValue("requesterUid", RequesterUid); - writer.WriteEnumValue("severity", Severity); - writer.WriteEnumValue("source", SourceEscaped); - writer.WriteObjectValue("status", Status); - writer.WriteStringValue("subject", Subject); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteIntValue("ticketFormId", TicketFormId); - writer.WriteEnumValue("type", Type); - writer.WriteIntValue("version", Version); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/WithTicket4XXError_attributeValues.cs b/V2/Ticketing/Ticket/Item/WithTicket4XXError_attributeValues.cs deleted file mode 100644 index 7c416ac..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket4XXError_attributeValues.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTicket4XXError_attributeValues : 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 attributeId property - public int? AttributeId { get; set; } - /// The id property - public int? Id { get; set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_attributeValues_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_attributeValues_value Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithTicket4XXError_attributeValues() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_attributeValues CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_attributeValues(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "attributeId", n => { AttributeId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_attributeValues_value.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("attributeId", AttributeId); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/WithTicket4XXError_attributeValues_value.cs b/V2/Ticketing/Ticket/Item/WithTicket4XXError_attributeValues_value.cs deleted file mode 100644 index 05e9414..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket4XXError_attributeValues_value.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTicket4XXError_attributeValues_value : 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. - /// - public WithTicket4XXError_attributeValues_value() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_attributeValues_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_attributeValues_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/WithTicket4XXError_ccList.cs b/V2/Ticketing/Ticket/Item/WithTicket4XXError_ccList.cs deleted file mode 100644 index ba89bbd..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket4XXError_ccList.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTicket4XXError_ccList : 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 emails property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Emails { get; set; } -#nullable restore -#else - public List Emails { get; set; } -#endif - /// The uids property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Uids { get; set; } -#nullable restore -#else - public List Uids { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithTicket4XXError_ccList() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_ccList CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_ccList(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "emails", n => { Emails = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uids", n => { Uids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("emails", Emails); - writer.WriteCollectionOfPrimitiveValues("uids", Uids); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/WithTicket4XXError_priority.cs b/V2/Ticketing/Ticket/Item/WithTicket4XXError_priority.cs deleted file mode 100644 index d5787d4..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket4XXError_priority.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTicket4XXError_priority - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/WithTicket4XXError_severity.cs b/V2/Ticketing/Ticket/Item/WithTicket4XXError_severity.cs deleted file mode 100644 index 3a477e1..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket4XXError_severity.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTicket4XXError_severity - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/WithTicket4XXError_source.cs b/V2/Ticketing/Ticket/Item/WithTicket4XXError_source.cs deleted file mode 100644 index f06a835..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket4XXError_source.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTicket4XXError_source - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "EMAIL")] - #pragma warning disable CS1591 - EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "WEB_FORM")] - #pragma warning disable CS1591 - WEB_FORM, - #pragma warning restore CS1591 - [EnumMember(Value = "HELP_REQUEST")] - #pragma warning disable CS1591 - HELP_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION")] - #pragma warning disable CS1591 - CONDITION, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_SCRIPT")] - #pragma warning disable CS1591 - SCHEDULED_SCRIPT, - #pragma warning restore CS1591 - [EnumMember(Value = "ACTIVITY")] - #pragma warning disable CS1591 - ACTIVITY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/WithTicket4XXError_status.cs b/V2/Ticketing/Ticket/Item/WithTicket4XXError_status.cs deleted file mode 100644 index c41a32a..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket4XXError_status.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTicket4XXError_status : 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 displayName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The parentId property - public int? ParentId { get; set; } - /// The statusId property - public int? StatusId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithTicket4XXError_status() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_status CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError_status(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "parentId", n => { ParentId = n.GetIntValue(); } }, - { "statusId", n => { StatusId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("parentId", ParentId); - writer.WriteIntValue("statusId", StatusId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/WithTicket4XXError_type.cs b/V2/Ticketing/Ticket/Item/WithTicket4XXError_type.cs deleted file mode 100644 index 62eeefb..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket4XXError_type.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTicket4XXError_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "PROBLEM")] - #pragma warning disable CS1591 - PROBLEM, - #pragma warning restore CS1591 - [EnumMember(Value = "QUESTION")] - #pragma warning disable CS1591 - QUESTION, - #pragma warning restore CS1591 - [EnumMember(Value = "INCIDENT")] - #pragma warning disable CS1591 - INCIDENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TASK")] - #pragma warning disable CS1591 - TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHANGE_REQUEST")] - #pragma warning disable CS1591 - CHANGE_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_REQUEST")] - #pragma warning disable CS1591 - SERVICE_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "PROJECT")] - #pragma warning disable CS1591 - PROJECT, - #pragma warning restore CS1591 - [EnumMember(Value = "APPOINTMENT")] - #pragma warning disable CS1591 - APPOINTMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "MISCELLANEOUS")] - #pragma warning disable CS1591 - MISCELLANEOUS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/WithTicket5XXError.cs b/V2/Ticketing/Ticket/Item/WithTicket5XXError.cs deleted file mode 100644 index 61e62cc..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket5XXError.cs +++ /dev/null @@ -1,178 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTicket5XXError : ApiException, IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The additionalAssignedTechnicianIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AdditionalAssignedTechnicianIds { get; set; } -#nullable restore -#else - public List AdditionalAssignedTechnicianIds { get; set; } -#endif - /// 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 assignedAppUserId property - public int? AssignedAppUserId { get; set; } - /// The attributeValues property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AttributeValues { get; set; } -#nullable restore -#else - public List AttributeValues { get; set; } -#endif - /// The ccList property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_ccList? CcList { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_ccList CcList { get; set; } -#endif - /// The clientId property - public int? ClientId { get; set; } - /// The createTime property - public double? CreateTime { get; set; } - /// The deleted property - public bool? Deleted { get; set; } - /// The followupTime property - public double? FollowupTime { get; set; } - /// The id property - public int? Id { get; set; } - /// The locationId property - public int? LocationId { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// The nodeId property - public int? NodeId { get; set; } - /// The priority property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_priority? Priority { get; set; } - /// The requesterUid property - public Guid? RequesterUid { get; set; } - /// The severity property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_severity? Severity { get; set; } - /// The source property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_source? SourceEscaped { get; set; } - /// The status property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_status? Status { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_status Status { get; set; } -#endif - /// The subject property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subject { get; set; } -#nullable restore -#else - public string Subject { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// The ticketFormId property - public int? TicketFormId { get; set; } - /// The type property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_type? Type { get; set; } - /// The version property - public int? Version { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithTicket5XXError() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "additionalAssignedTechnicianIds", n => { AdditionalAssignedTechnicianIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "assignedAppUserId", n => { AssignedAppUserId = n.GetIntValue(); } }, - { "attributeValues", n => { AttributeValues = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_attributeValues.CreateFromDiscriminatorValue)?.AsList(); } }, - { "ccList", n => { CcList = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_ccList.CreateFromDiscriminatorValue); } }, - { "clientId", n => { ClientId = n.GetIntValue(); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "followupTime", n => { FollowupTime = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "nodeId", n => { NodeId = n.GetIntValue(); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "requesterUid", n => { RequesterUid = n.GetGuidValue(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - { "source", n => { SourceEscaped = n.GetEnumValue(); } }, - { "status", n => { Status = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_status.CreateFromDiscriminatorValue); } }, - { "subject", n => { Subject = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "ticketFormId", n => { TicketFormId = n.GetIntValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "version", n => { Version = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("additionalAssignedTechnicianIds", AdditionalAssignedTechnicianIds); - writer.WriteIntValue("assignedAppUserId", AssignedAppUserId); - writer.WriteCollectionOfObjectValues("attributeValues", AttributeValues); - writer.WriteObjectValue("ccList", CcList); - writer.WriteIntValue("clientId", ClientId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteDoubleValue("followupTime", FollowupTime); - writer.WriteIntValue("id", Id); - writer.WriteIntValue("locationId", LocationId); - writer.WriteIntValue("nodeId", NodeId); - writer.WriteEnumValue("priority", Priority); - writer.WriteGuidValue("requesterUid", RequesterUid); - writer.WriteEnumValue("severity", Severity); - writer.WriteEnumValue("source", SourceEscaped); - writer.WriteObjectValue("status", Status); - writer.WriteStringValue("subject", Subject); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteIntValue("ticketFormId", TicketFormId); - writer.WriteEnumValue("type", Type); - writer.WriteIntValue("version", Version); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/WithTicket5XXError_attributeValues.cs b/V2/Ticketing/Ticket/Item/WithTicket5XXError_attributeValues.cs deleted file mode 100644 index 1cfc907..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket5XXError_attributeValues.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTicket5XXError_attributeValues : 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 attributeId property - public int? AttributeId { get; set; } - /// The id property - public int? Id { get; set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_attributeValues_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_attributeValues_value Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithTicket5XXError_attributeValues() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_attributeValues CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_attributeValues(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "attributeId", n => { AttributeId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_attributeValues_value.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("attributeId", AttributeId); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/WithTicket5XXError_attributeValues_value.cs b/V2/Ticketing/Ticket/Item/WithTicket5XXError_attributeValues_value.cs deleted file mode 100644 index fcb9703..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket5XXError_attributeValues_value.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTicket5XXError_attributeValues_value : 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. - /// - public WithTicket5XXError_attributeValues_value() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_attributeValues_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_attributeValues_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/WithTicket5XXError_ccList.cs b/V2/Ticketing/Ticket/Item/WithTicket5XXError_ccList.cs deleted file mode 100644 index f6f5c7a..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket5XXError_ccList.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTicket5XXError_ccList : 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 emails property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Emails { get; set; } -#nullable restore -#else - public List Emails { get; set; } -#endif - /// The uids property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Uids { get; set; } -#nullable restore -#else - public List Uids { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithTicket5XXError_ccList() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_ccList CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_ccList(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "emails", n => { Emails = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uids", n => { Uids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("emails", Emails); - writer.WriteCollectionOfPrimitiveValues("uids", Uids); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/WithTicket5XXError_priority.cs b/V2/Ticketing/Ticket/Item/WithTicket5XXError_priority.cs deleted file mode 100644 index 9ac6c80..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket5XXError_priority.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTicket5XXError_priority - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/WithTicket5XXError_severity.cs b/V2/Ticketing/Ticket/Item/WithTicket5XXError_severity.cs deleted file mode 100644 index 7545d4f..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket5XXError_severity.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTicket5XXError_severity - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/WithTicket5XXError_source.cs b/V2/Ticketing/Ticket/Item/WithTicket5XXError_source.cs deleted file mode 100644 index 28fcd72..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket5XXError_source.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTicket5XXError_source - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "EMAIL")] - #pragma warning disable CS1591 - EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "WEB_FORM")] - #pragma warning disable CS1591 - WEB_FORM, - #pragma warning restore CS1591 - [EnumMember(Value = "HELP_REQUEST")] - #pragma warning disable CS1591 - HELP_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION")] - #pragma warning disable CS1591 - CONDITION, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_SCRIPT")] - #pragma warning disable CS1591 - SCHEDULED_SCRIPT, - #pragma warning restore CS1591 - [EnumMember(Value = "ACTIVITY")] - #pragma warning disable CS1591 - ACTIVITY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/WithTicket5XXError_status.cs b/V2/Ticketing/Ticket/Item/WithTicket5XXError_status.cs deleted file mode 100644 index cd538c7..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket5XXError_status.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTicket5XXError_status : 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 displayName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The parentId property - public int? ParentId { get; set; } - /// The statusId property - public int? StatusId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithTicket5XXError_status() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_status CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError_status(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "parentId", n => { ParentId = n.GetIntValue(); } }, - { "statusId", n => { StatusId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("parentId", ParentId); - writer.WriteIntValue("statusId", StatusId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/WithTicket5XXError_type.cs b/V2/Ticketing/Ticket/Item/WithTicket5XXError_type.cs deleted file mode 100644 index efb31f9..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicket5XXError_type.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTicket5XXError_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "PROBLEM")] - #pragma warning disable CS1591 - PROBLEM, - #pragma warning restore CS1591 - [EnumMember(Value = "QUESTION")] - #pragma warning disable CS1591 - QUESTION, - #pragma warning restore CS1591 - [EnumMember(Value = "INCIDENT")] - #pragma warning disable CS1591 - INCIDENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TASK")] - #pragma warning disable CS1591 - TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHANGE_REQUEST")] - #pragma warning disable CS1591 - CHANGE_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_REQUEST")] - #pragma warning disable CS1591 - SERVICE_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "PROJECT")] - #pragma warning disable CS1591 - PROJECT, - #pragma warning restore CS1591 - [EnumMember(Value = "APPOINTMENT")] - #pragma warning disable CS1591 - APPOINTMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "MISCELLANEOUS")] - #pragma warning disable CS1591 - MISCELLANEOUS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/WithTicketItemRequestBuilder.cs b/V2/Ticketing/Ticket/Item/WithTicketItemRequestBuilder.cs deleted file mode 100644 index 067d7fa..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicketItemRequestBuilder.cs +++ /dev/null @@ -1,167 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Ticketing.Ticket.Item.Comment; -using NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - /// - /// Builds and executes requests for operations under \v2\ticketing\ticket\{ticketId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithTicketItemRequestBuilder : BaseRequestBuilder - { - /// The comment property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.Comment.CommentRequestBuilder Comment - { - get => new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.Comment.CommentRequestBuilder(PathParameters, RequestAdapter); - } - /// The logEntry property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntryRequestBuilder LogEntry - { - get => new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.LogEntry.LogEntryRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithTicketItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/ticket/{ticketId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithTicketItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/ticket/{ticketId}", rawUrl) - { - } - /// - /// Returns a ticket - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Change ticket fields. Does not accept comments - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PutAsync(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PutAsync(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicket5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns a ticket - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Change ticket fields. Does not accept comments - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithTicketItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithTicketItemRequestBuilderPutRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody.cs b/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody.cs deleted file mode 100644 index 9a13bd0..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody.cs +++ /dev/null @@ -1,166 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTicketPutRequestBody : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Additional assigned technician identifiers -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AdditionalAssignedTechnicianIds { get; set; } -#nullable restore -#else - public List AdditionalAssignedTechnicianIds { get; set; } -#endif - /// 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 assignedAppUserId property - public int? AssignedAppUserId { get; set; } - /// The attributes property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Attributes { get; set; } -#nullable restore -#else - public List Attributes { get; set; } -#endif - /// The cc property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody_cc? Cc { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody_cc Cc { get; set; } -#endif - /// Client (Organization) identifier - public int? ClientId { get; set; } - /// Follow-up time for the ticket in epoch seconds - public double? FollowupTime { get; set; } - /// Location identifier - public int? LocationId { get; set; } - /// Device identifier - public int? NodeId { get; set; } - /// Ticket parent identifier - public int? ParentTicketId { get; set; } - /// The priority property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody_priority? Priority { get; set; } - /// The requesterUid property - public Guid? RequesterUid { get; set; } - /// The severity property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody_severity? Severity { get; set; } - /// The status property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// The subject property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subject { get; set; } -#nullable restore -#else - public string Subject { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Ticket form identifier - public int? TicketFormId { get; set; } - /// Type of ticket - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody_type? Type { get; set; } - /// ticket version - public int? Version { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public WithTicketPutRequestBody() - { - AdditionalData = new Dictionary(); - Priority = global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody_priority.NONE; - Severity = global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody_severity.NONE; - Status = "1000"; - } - /// - /// 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "additionalAssignedTechnicianIds", n => { AdditionalAssignedTechnicianIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "assignedAppUserId", n => { AssignedAppUserId = n.GetIntValue(); } }, - { "attributes", n => { Attributes = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody_attributes.CreateFromDiscriminatorValue)?.AsList(); } }, - { "cc", n => { Cc = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody_cc.CreateFromDiscriminatorValue); } }, - { "clientId", n => { ClientId = n.GetIntValue(); } }, - { "followupTime", n => { FollowupTime = n.GetDoubleValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "nodeId", n => { NodeId = n.GetIntValue(); } }, - { "parentTicketId", n => { ParentTicketId = n.GetIntValue(); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "requesterUid", n => { RequesterUid = n.GetGuidValue(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "subject", n => { Subject = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "ticketFormId", n => { TicketFormId = n.GetIntValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "version", n => { Version = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("additionalAssignedTechnicianIds", AdditionalAssignedTechnicianIds); - writer.WriteIntValue("assignedAppUserId", AssignedAppUserId); - writer.WriteCollectionOfObjectValues("attributes", Attributes); - writer.WriteObjectValue("cc", Cc); - writer.WriteIntValue("clientId", ClientId); - writer.WriteDoubleValue("followupTime", FollowupTime); - writer.WriteIntValue("locationId", LocationId); - writer.WriteIntValue("nodeId", NodeId); - writer.WriteIntValue("parentTicketId", ParentTicketId); - writer.WriteEnumValue("priority", Priority); - writer.WriteGuidValue("requesterUid", RequesterUid); - writer.WriteEnumValue("severity", Severity); - writer.WriteStringValue("status", Status); - writer.WriteStringValue("subject", Subject); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteIntValue("ticketFormId", TicketFormId); - writer.WriteEnumValue("type", Type); - writer.WriteIntValue("version", Version); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody_attributes.cs b/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody_attributes.cs deleted file mode 100644 index 9f4c16f..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody_attributes.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTicketPutRequestBody_attributes : 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; } - /// Attribute identifier - public int? AttributeId { get; set; } - /// The id property - public int? Id { get; set; } - /// Attribute value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithTicketPutRequestBody_attributes() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody_attributes CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody_attributes(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "attributeId", n => { AttributeId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("attributeId", AttributeId); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody_cc.cs b/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody_cc.cs deleted file mode 100644 index 8b3fe06..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody_cc.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WithTicketPutRequestBody_cc : 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; } - /// emails -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Emails { get; set; } -#nullable restore -#else - public List Emails { get; set; } -#endif - /// List of user uids to be carbon-copied -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Uids { get; set; } -#nullable restore -#else - public List Uids { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WithTicketPutRequestBody_cc() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody_cc CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketPutRequestBody_cc(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "emails", n => { Emails = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uids", n => { Uids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("emails", Emails); - writer.WriteCollectionOfPrimitiveValues("uids", Uids); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody_priority.cs b/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody_priority.cs deleted file mode 100644 index 79e9fd5..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody_priority.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTicketPutRequestBody_priority - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody_severity.cs b/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody_severity.cs deleted file mode 100644 index eb98fdf..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody_severity.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum WithTicketPutRequestBody_severity - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody_type.cs b/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody_type.cs deleted file mode 100644 index 6645100..0000000 --- a/V2/Ticketing/Ticket/Item/WithTicketPutRequestBody_type.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket.Item -{ - /// Type of ticket - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum WithTicketPutRequestBody_type - { - [EnumMember(Value = "PROBLEM")] - #pragma warning disable CS1591 - PROBLEM, - #pragma warning restore CS1591 - [EnumMember(Value = "QUESTION")] - #pragma warning disable CS1591 - QUESTION, - #pragma warning restore CS1591 - [EnumMember(Value = "INCIDENT")] - #pragma warning disable CS1591 - INCIDENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TASK")] - #pragma warning disable CS1591 - TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHANGE_REQUEST")] - #pragma warning disable CS1591 - CHANGE_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_REQUEST")] - #pragma warning disable CS1591 - SERVICE_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "PROJECT")] - #pragma warning disable CS1591 - PROJECT, - #pragma warning restore CS1591 - [EnumMember(Value = "APPOINTMENT")] - #pragma warning disable CS1591 - APPOINTMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "MISCELLANEOUS")] - #pragma warning disable CS1591 - MISCELLANEOUS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Ticket4XXError.cs b/V2/Ticketing/Ticket/Ticket4XXError.cs deleted file mode 100644 index 4e198eb..0000000 --- a/V2/Ticketing/Ticket/Ticket4XXError.cs +++ /dev/null @@ -1,178 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Ticket4XXError : ApiException, IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The additionalAssignedTechnicianIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AdditionalAssignedTechnicianIds { get; set; } -#nullable restore -#else - public List AdditionalAssignedTechnicianIds { get; set; } -#endif - /// 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 assignedAppUserId property - public int? AssignedAppUserId { get; set; } - /// The attributeValues property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AttributeValues { get; set; } -#nullable restore -#else - public List AttributeValues { get; set; } -#endif - /// The ccList property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_ccList? CcList { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_ccList CcList { get; set; } -#endif - /// The clientId property - public int? ClientId { get; set; } - /// The createTime property - public double? CreateTime { get; set; } - /// The deleted property - public bool? Deleted { get; set; } - /// The followupTime property - public double? FollowupTime { get; set; } - /// The id property - public int? Id { get; set; } - /// The locationId property - public int? LocationId { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// The nodeId property - public int? NodeId { get; set; } - /// The priority property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_priority? Priority { get; set; } - /// The requesterUid property - public Guid? RequesterUid { get; set; } - /// The severity property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_severity? Severity { get; set; } - /// The source property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_source? SourceEscaped { get; set; } - /// The status property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_status? Status { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_status Status { get; set; } -#endif - /// The subject property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subject { get; set; } -#nullable restore -#else - public string Subject { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// The ticketFormId property - public int? TicketFormId { get; set; } - /// The type property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_type? Type { get; set; } - /// The version property - public int? Version { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Ticket4XXError() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "additionalAssignedTechnicianIds", n => { AdditionalAssignedTechnicianIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "assignedAppUserId", n => { AssignedAppUserId = n.GetIntValue(); } }, - { "attributeValues", n => { AttributeValues = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_attributeValues.CreateFromDiscriminatorValue)?.AsList(); } }, - { "ccList", n => { CcList = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_ccList.CreateFromDiscriminatorValue); } }, - { "clientId", n => { ClientId = n.GetIntValue(); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "followupTime", n => { FollowupTime = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "nodeId", n => { NodeId = n.GetIntValue(); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "requesterUid", n => { RequesterUid = n.GetGuidValue(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - { "source", n => { SourceEscaped = n.GetEnumValue(); } }, - { "status", n => { Status = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_status.CreateFromDiscriminatorValue); } }, - { "subject", n => { Subject = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "ticketFormId", n => { TicketFormId = n.GetIntValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "version", n => { Version = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("additionalAssignedTechnicianIds", AdditionalAssignedTechnicianIds); - writer.WriteIntValue("assignedAppUserId", AssignedAppUserId); - writer.WriteCollectionOfObjectValues("attributeValues", AttributeValues); - writer.WriteObjectValue("ccList", CcList); - writer.WriteIntValue("clientId", ClientId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteDoubleValue("followupTime", FollowupTime); - writer.WriteIntValue("id", Id); - writer.WriteIntValue("locationId", LocationId); - writer.WriteIntValue("nodeId", NodeId); - writer.WriteEnumValue("priority", Priority); - writer.WriteGuidValue("requesterUid", RequesterUid); - writer.WriteEnumValue("severity", Severity); - writer.WriteEnumValue("source", SourceEscaped); - writer.WriteObjectValue("status", Status); - writer.WriteStringValue("subject", Subject); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteIntValue("ticketFormId", TicketFormId); - writer.WriteEnumValue("type", Type); - writer.WriteIntValue("version", Version); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Ticket4XXError_attributeValues.cs b/V2/Ticketing/Ticket/Ticket4XXError_attributeValues.cs deleted file mode 100644 index 3b14589..0000000 --- a/V2/Ticketing/Ticket/Ticket4XXError_attributeValues.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Ticket4XXError_attributeValues : 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 attributeId property - public int? AttributeId { get; set; } - /// The id property - public int? Id { get; set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_attributeValues_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_attributeValues_value Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Ticket4XXError_attributeValues() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_attributeValues CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_attributeValues(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "attributeId", n => { AttributeId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_attributeValues_value.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("attributeId", AttributeId); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Ticket4XXError_attributeValues_value.cs b/V2/Ticketing/Ticket/Ticket4XXError_attributeValues_value.cs deleted file mode 100644 index 56e6517..0000000 --- a/V2/Ticketing/Ticket/Ticket4XXError_attributeValues_value.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Ticket4XXError_attributeValues_value : 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. - /// - public Ticket4XXError_attributeValues_value() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_attributeValues_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_attributeValues_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Ticket4XXError_ccList.cs b/V2/Ticketing/Ticket/Ticket4XXError_ccList.cs deleted file mode 100644 index b7abb43..0000000 --- a/V2/Ticketing/Ticket/Ticket4XXError_ccList.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Ticket4XXError_ccList : 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 emails property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Emails { get; set; } -#nullable restore -#else - public List Emails { get; set; } -#endif - /// The uids property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Uids { get; set; } -#nullable restore -#else - public List Uids { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Ticket4XXError_ccList() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_ccList CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_ccList(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "emails", n => { Emails = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uids", n => { Uids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("emails", Emails); - writer.WriteCollectionOfPrimitiveValues("uids", Uids); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Ticket4XXError_priority.cs b/V2/Ticketing/Ticket/Ticket4XXError_priority.cs deleted file mode 100644 index 223cc24..0000000 --- a/V2/Ticketing/Ticket/Ticket4XXError_priority.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Ticket4XXError_priority - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Ticket4XXError_severity.cs b/V2/Ticketing/Ticket/Ticket4XXError_severity.cs deleted file mode 100644 index 13dd2ab..0000000 --- a/V2/Ticketing/Ticket/Ticket4XXError_severity.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Ticket4XXError_severity - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Ticket4XXError_source.cs b/V2/Ticketing/Ticket/Ticket4XXError_source.cs deleted file mode 100644 index 518faaf..0000000 --- a/V2/Ticketing/Ticket/Ticket4XXError_source.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Ticket4XXError_source - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "EMAIL")] - #pragma warning disable CS1591 - EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "WEB_FORM")] - #pragma warning disable CS1591 - WEB_FORM, - #pragma warning restore CS1591 - [EnumMember(Value = "HELP_REQUEST")] - #pragma warning disable CS1591 - HELP_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION")] - #pragma warning disable CS1591 - CONDITION, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_SCRIPT")] - #pragma warning disable CS1591 - SCHEDULED_SCRIPT, - #pragma warning restore CS1591 - [EnumMember(Value = "ACTIVITY")] - #pragma warning disable CS1591 - ACTIVITY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Ticket4XXError_status.cs b/V2/Ticketing/Ticket/Ticket4XXError_status.cs deleted file mode 100644 index 45d29b2..0000000 --- a/V2/Ticketing/Ticket/Ticket4XXError_status.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Ticket4XXError_status : 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 displayName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The parentId property - public int? ParentId { get; set; } - /// The statusId property - public int? StatusId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Ticket4XXError_status() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_status CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError_status(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "parentId", n => { ParentId = n.GetIntValue(); } }, - { "statusId", n => { StatusId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("parentId", ParentId); - writer.WriteIntValue("statusId", StatusId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Ticket4XXError_type.cs b/V2/Ticketing/Ticket/Ticket4XXError_type.cs deleted file mode 100644 index 83ec11b..0000000 --- a/V2/Ticketing/Ticket/Ticket4XXError_type.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Ticket4XXError_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "PROBLEM")] - #pragma warning disable CS1591 - PROBLEM, - #pragma warning restore CS1591 - [EnumMember(Value = "QUESTION")] - #pragma warning disable CS1591 - QUESTION, - #pragma warning restore CS1591 - [EnumMember(Value = "INCIDENT")] - #pragma warning disable CS1591 - INCIDENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TASK")] - #pragma warning disable CS1591 - TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHANGE_REQUEST")] - #pragma warning disable CS1591 - CHANGE_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_REQUEST")] - #pragma warning disable CS1591 - SERVICE_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "PROJECT")] - #pragma warning disable CS1591 - PROJECT, - #pragma warning restore CS1591 - [EnumMember(Value = "APPOINTMENT")] - #pragma warning disable CS1591 - APPOINTMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "MISCELLANEOUS")] - #pragma warning disable CS1591 - MISCELLANEOUS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Ticket5XXError.cs b/V2/Ticketing/Ticket/Ticket5XXError.cs deleted file mode 100644 index e37ab11..0000000 --- a/V2/Ticketing/Ticket/Ticket5XXError.cs +++ /dev/null @@ -1,178 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Ticket5XXError : ApiException, IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The additionalAssignedTechnicianIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AdditionalAssignedTechnicianIds { get; set; } -#nullable restore -#else - public List AdditionalAssignedTechnicianIds { get; set; } -#endif - /// 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 assignedAppUserId property - public int? AssignedAppUserId { get; set; } - /// The attributeValues property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AttributeValues { get; set; } -#nullable restore -#else - public List AttributeValues { get; set; } -#endif - /// The ccList property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_ccList? CcList { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_ccList CcList { get; set; } -#endif - /// The clientId property - public int? ClientId { get; set; } - /// The createTime property - public double? CreateTime { get; set; } - /// The deleted property - public bool? Deleted { get; set; } - /// The followupTime property - public double? FollowupTime { get; set; } - /// The id property - public int? Id { get; set; } - /// The locationId property - public int? LocationId { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// The nodeId property - public int? NodeId { get; set; } - /// The priority property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_priority? Priority { get; set; } - /// The requesterUid property - public Guid? RequesterUid { get; set; } - /// The severity property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_severity? Severity { get; set; } - /// The source property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_source? SourceEscaped { get; set; } - /// The status property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_status? Status { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_status Status { get; set; } -#endif - /// The subject property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subject { get; set; } -#nullable restore -#else - public string Subject { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// The ticketFormId property - public int? TicketFormId { get; set; } - /// The type property - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_type? Type { get; set; } - /// The version property - public int? Version { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Ticket5XXError() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "additionalAssignedTechnicianIds", n => { AdditionalAssignedTechnicianIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "assignedAppUserId", n => { AssignedAppUserId = n.GetIntValue(); } }, - { "attributeValues", n => { AttributeValues = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_attributeValues.CreateFromDiscriminatorValue)?.AsList(); } }, - { "ccList", n => { CcList = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_ccList.CreateFromDiscriminatorValue); } }, - { "clientId", n => { ClientId = n.GetIntValue(); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "deleted", n => { Deleted = n.GetBoolValue(); } }, - { "followupTime", n => { FollowupTime = n.GetDoubleValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "nodeId", n => { NodeId = n.GetIntValue(); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "requesterUid", n => { RequesterUid = n.GetGuidValue(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - { "source", n => { SourceEscaped = n.GetEnumValue(); } }, - { "status", n => { Status = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_status.CreateFromDiscriminatorValue); } }, - { "subject", n => { Subject = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "ticketFormId", n => { TicketFormId = n.GetIntValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - { "version", n => { Version = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("additionalAssignedTechnicianIds", AdditionalAssignedTechnicianIds); - writer.WriteIntValue("assignedAppUserId", AssignedAppUserId); - writer.WriteCollectionOfObjectValues("attributeValues", AttributeValues); - writer.WriteObjectValue("ccList", CcList); - writer.WriteIntValue("clientId", ClientId); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteBoolValue("deleted", Deleted); - writer.WriteDoubleValue("followupTime", FollowupTime); - writer.WriteIntValue("id", Id); - writer.WriteIntValue("locationId", LocationId); - writer.WriteIntValue("nodeId", NodeId); - writer.WriteEnumValue("priority", Priority); - writer.WriteGuidValue("requesterUid", RequesterUid); - writer.WriteEnumValue("severity", Severity); - writer.WriteEnumValue("source", SourceEscaped); - writer.WriteObjectValue("status", Status); - writer.WriteStringValue("subject", Subject); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteIntValue("ticketFormId", TicketFormId); - writer.WriteEnumValue("type", Type); - writer.WriteIntValue("version", Version); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Ticket5XXError_attributeValues.cs b/V2/Ticketing/Ticket/Ticket5XXError_attributeValues.cs deleted file mode 100644 index 32ea07c..0000000 --- a/V2/Ticketing/Ticket/Ticket5XXError_attributeValues.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Ticket5XXError_attributeValues : 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 attributeId property - public int? AttributeId { get; set; } - /// The id property - public int? Id { get; set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_attributeValues_value? Value { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_attributeValues_value Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Ticket5XXError_attributeValues() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_attributeValues CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_attributeValues(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "attributeId", n => { AttributeId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "value", n => { Value = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_attributeValues_value.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("attributeId", AttributeId); - writer.WriteIntValue("id", Id); - writer.WriteObjectValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Ticket5XXError_attributeValues_value.cs b/V2/Ticketing/Ticket/Ticket5XXError_attributeValues_value.cs deleted file mode 100644 index 2e7bfde..0000000 --- a/V2/Ticketing/Ticket/Ticket5XXError_attributeValues_value.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Ticket5XXError_attributeValues_value : 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. - /// - public Ticket5XXError_attributeValues_value() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_attributeValues_value CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_attributeValues_value(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Ticket5XXError_ccList.cs b/V2/Ticketing/Ticket/Ticket5XXError_ccList.cs deleted file mode 100644 index 3c696dc..0000000 --- a/V2/Ticketing/Ticket/Ticket5XXError_ccList.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Ticket5XXError_ccList : 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 emails property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Emails { get; set; } -#nullable restore -#else - public List Emails { get; set; } -#endif - /// The uids property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Uids { get; set; } -#nullable restore -#else - public List Uids { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Ticket5XXError_ccList() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_ccList CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_ccList(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "emails", n => { Emails = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uids", n => { Uids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("emails", Emails); - writer.WriteCollectionOfPrimitiveValues("uids", Uids); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Ticket5XXError_priority.cs b/V2/Ticketing/Ticket/Ticket5XXError_priority.cs deleted file mode 100644 index 695781d..0000000 --- a/V2/Ticketing/Ticket/Ticket5XXError_priority.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Ticket5XXError_priority - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Ticket5XXError_severity.cs b/V2/Ticketing/Ticket/Ticket5XXError_severity.cs deleted file mode 100644 index 8386568..0000000 --- a/V2/Ticketing/Ticket/Ticket5XXError_severity.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Ticket5XXError_severity - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Ticket5XXError_source.cs b/V2/Ticketing/Ticket/Ticket5XXError_source.cs deleted file mode 100644 index 4ec70d6..0000000 --- a/V2/Ticketing/Ticket/Ticket5XXError_source.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Ticket5XXError_source - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "EMAIL")] - #pragma warning disable CS1591 - EMAIL, - #pragma warning restore CS1591 - [EnumMember(Value = "WEB_FORM")] - #pragma warning disable CS1591 - WEB_FORM, - #pragma warning restore CS1591 - [EnumMember(Value = "HELP_REQUEST")] - #pragma warning disable CS1591 - HELP_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - [EnumMember(Value = "CONDITION")] - #pragma warning disable CS1591 - CONDITION, - #pragma warning restore CS1591 - [EnumMember(Value = "SCHEDULED_SCRIPT")] - #pragma warning disable CS1591 - SCHEDULED_SCRIPT, - #pragma warning restore CS1591 - [EnumMember(Value = "ACTIVITY")] - #pragma warning disable CS1591 - ACTIVITY, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/Ticket5XXError_status.cs b/V2/Ticketing/Ticket/Ticket5XXError_status.cs deleted file mode 100644 index 2666365..0000000 --- a/V2/Ticketing/Ticket/Ticket5XXError_status.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Ticket5XXError_status : 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 displayName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DisplayName { get; set; } -#nullable restore -#else - public string DisplayName { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The parentId property - public int? ParentId { get; set; } - /// The statusId property - public int? StatusId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Ticket5XXError_status() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_status CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError_status(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "displayName", n => { DisplayName = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "parentId", n => { ParentId = n.GetIntValue(); } }, - { "statusId", n => { StatusId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("name", Name); - writer.WriteIntValue("parentId", ParentId); - writer.WriteIntValue("statusId", StatusId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/Ticket5XXError_type.cs b/V2/Ticketing/Ticket/Ticket5XXError_type.cs deleted file mode 100644 index 0401667..0000000 --- a/V2/Ticketing/Ticket/Ticket5XXError_type.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Ticket5XXError_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "PROBLEM")] - #pragma warning disable CS1591 - PROBLEM, - #pragma warning restore CS1591 - [EnumMember(Value = "QUESTION")] - #pragma warning disable CS1591 - QUESTION, - #pragma warning restore CS1591 - [EnumMember(Value = "INCIDENT")] - #pragma warning disable CS1591 - INCIDENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TASK")] - #pragma warning disable CS1591 - TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHANGE_REQUEST")] - #pragma warning disable CS1591 - CHANGE_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_REQUEST")] - #pragma warning disable CS1591 - SERVICE_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "PROJECT")] - #pragma warning disable CS1591 - PROJECT, - #pragma warning restore CS1591 - [EnumMember(Value = "APPOINTMENT")] - #pragma warning disable CS1591 - APPOINTMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "MISCELLANEOUS")] - #pragma warning disable CS1591 - MISCELLANEOUS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/TicketPostRequestBody.cs b/V2/Ticketing/Ticket/TicketPostRequestBody.cs deleted file mode 100644 index 72399f0..0000000 --- a/V2/Ticketing/Ticket/TicketPostRequestBody.cs +++ /dev/null @@ -1,172 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketPostRequestBody : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Additional assigned technician identifiers -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AdditionalAssignedTechnicianIds { get; set; } -#nullable restore -#else - public List AdditionalAssignedTechnicianIds { get; set; } -#endif - /// 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 assignedAppUserId property - public int? AssignedAppUserId { get; set; } - /// The attributes property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Attributes { get; set; } -#nullable restore -#else - public List Attributes { get; set; } -#endif - /// The cc property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_cc? Cc { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_cc Cc { get; set; } -#endif - /// Client (Organization) identifier - public int? ClientId { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_description? Description { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_description Description { get; set; } -#endif - /// Follow-up time for the ticket in epoch seconds - public double? FollowupTime { get; set; } - /// Location identifier - public int? LocationId { get; set; } - /// Device identifier - public int? NodeId { get; set; } - /// Ticket parent identifier - public int? ParentTicketId { get; set; } - /// The priority property - public global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_priority? Priority { get; set; } - /// The requesterUid property - public Guid? RequesterUid { get; set; } - /// The severity property - public global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_severity? Severity { get; set; } - /// The status property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// The subject property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subject { get; set; } -#nullable restore -#else - public string Subject { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// Ticket form identifier - public int? TicketFormId { get; set; } - /// Type of ticket - public global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketPostRequestBody() - { - AdditionalData = new Dictionary(); - Priority = global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_priority.NONE; - Severity = global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_severity.NONE; - Status = "1000"; - } - /// - /// 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::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "additionalAssignedTechnicianIds", n => { AdditionalAssignedTechnicianIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "assignedAppUserId", n => { AssignedAppUserId = n.GetIntValue(); } }, - { "attributes", n => { Attributes = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_attributes.CreateFromDiscriminatorValue)?.AsList(); } }, - { "cc", n => { Cc = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_cc.CreateFromDiscriminatorValue); } }, - { "clientId", n => { ClientId = n.GetIntValue(); } }, - { "description", n => { Description = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_description.CreateFromDiscriminatorValue); } }, - { "followupTime", n => { FollowupTime = n.GetDoubleValue(); } }, - { "locationId", n => { LocationId = n.GetIntValue(); } }, - { "nodeId", n => { NodeId = n.GetIntValue(); } }, - { "parentTicketId", n => { ParentTicketId = n.GetIntValue(); } }, - { "priority", n => { Priority = n.GetEnumValue(); } }, - { "requesterUid", n => { RequesterUid = n.GetGuidValue(); } }, - { "severity", n => { Severity = n.GetEnumValue(); } }, - { "status", n => { Status = n.GetStringValue(); } }, - { "subject", n => { Subject = n.GetStringValue(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "ticketFormId", n => { TicketFormId = n.GetIntValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("additionalAssignedTechnicianIds", AdditionalAssignedTechnicianIds); - writer.WriteIntValue("assignedAppUserId", AssignedAppUserId); - writer.WriteCollectionOfObjectValues("attributes", Attributes); - writer.WriteObjectValue("cc", Cc); - writer.WriteIntValue("clientId", ClientId); - writer.WriteObjectValue("description", Description); - writer.WriteDoubleValue("followupTime", FollowupTime); - writer.WriteIntValue("locationId", LocationId); - writer.WriteIntValue("nodeId", NodeId); - writer.WriteIntValue("parentTicketId", ParentTicketId); - writer.WriteEnumValue("priority", Priority); - writer.WriteGuidValue("requesterUid", RequesterUid); - writer.WriteEnumValue("severity", Severity); - writer.WriteStringValue("status", Status); - writer.WriteStringValue("subject", Subject); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteIntValue("ticketFormId", TicketFormId); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/TicketPostRequestBody_attributes.cs b/V2/Ticketing/Ticket/TicketPostRequestBody_attributes.cs deleted file mode 100644 index 78969c8..0000000 --- a/V2/Ticketing/Ticket/TicketPostRequestBody_attributes.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketPostRequestBody_attributes : 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; } - /// Attribute identifier - public int? AttributeId { get; set; } - /// The id property - public int? Id { get; set; } - /// Attribute value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TicketPostRequestBody_attributes() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_attributes CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_attributes(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "attributeId", n => { AttributeId = n.GetIntValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("attributeId", AttributeId); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/TicketPostRequestBody_cc.cs b/V2/Ticketing/Ticket/TicketPostRequestBody_cc.cs deleted file mode 100644 index 4ef5cea..0000000 --- a/V2/Ticketing/Ticket/TicketPostRequestBody_cc.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketPostRequestBody_cc : 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; } - /// emails -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Emails { get; set; } -#nullable restore -#else - public List Emails { get; set; } -#endif - /// List of user uids to be carbon-copied -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Uids { get; set; } -#nullable restore -#else - public List Uids { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TicketPostRequestBody_cc() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_cc CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_cc(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "emails", n => { Emails = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uids", n => { Uids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("emails", Emails); - writer.WriteCollectionOfPrimitiveValues("uids", Uids); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/TicketPostRequestBody_description.cs b/V2/Ticketing/Ticket/TicketPostRequestBody_description.cs deleted file mode 100644 index 9c6689c..0000000 --- a/V2/Ticketing/Ticket/TicketPostRequestBody_description.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketPostRequestBody_description : 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 body property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Body { get; set; } -#nullable restore -#else - public string Body { get; set; } -#endif - /// The duplicateInIncidents property - public bool? DuplicateInIncidents { get; set; } - /// The htmlBody property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? HtmlBody { get; set; } -#nullable restore -#else - public string HtmlBody { get; set; } -#endif - /// The public property - public bool? Public { get; set; } - /// time in seconds - public int? TimeTracked { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketPostRequestBody_description() - { - 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::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_description CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody_description(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "body", n => { Body = n.GetStringValue(); } }, - { "duplicateInIncidents", n => { DuplicateInIncidents = n.GetBoolValue(); } }, - { "htmlBody", n => { HtmlBody = n.GetStringValue(); } }, - { "public", n => { Public = n.GetBoolValue(); } }, - { "timeTracked", n => { TimeTracked = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("body", Body); - writer.WriteBoolValue("duplicateInIncidents", DuplicateInIncidents); - writer.WriteStringValue("htmlBody", HtmlBody); - writer.WriteBoolValue("public", Public); - writer.WriteIntValue("timeTracked", TimeTracked); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Ticket/TicketPostRequestBody_priority.cs b/V2/Ticketing/Ticket/TicketPostRequestBody_priority.cs deleted file mode 100644 index 42e6484..0000000 --- a/V2/Ticketing/Ticket/TicketPostRequestBody_priority.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketPostRequestBody_priority - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "LOW")] - #pragma warning disable CS1591 - LOW, - #pragma warning restore CS1591 - [EnumMember(Value = "MEDIUM")] - #pragma warning disable CS1591 - MEDIUM, - #pragma warning restore CS1591 - [EnumMember(Value = "HIGH")] - #pragma warning disable CS1591 - HIGH, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/TicketPostRequestBody_severity.cs b/V2/Ticketing/Ticket/TicketPostRequestBody_severity.cs deleted file mode 100644 index db8458e..0000000 --- a/V2/Ticketing/Ticket/TicketPostRequestBody_severity.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketPostRequestBody_severity - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "MINOR")] - #pragma warning disable CS1591 - MINOR, - #pragma warning restore CS1591 - [EnumMember(Value = "MODERATE")] - #pragma warning disable CS1591 - MODERATE, - #pragma warning restore CS1591 - [EnumMember(Value = "MAJOR")] - #pragma warning disable CS1591 - MAJOR, - #pragma warning restore CS1591 - [EnumMember(Value = "CRITICAL")] - #pragma warning disable CS1591 - CRITICAL, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/TicketPostRequestBody_type.cs b/V2/Ticketing/Ticket/TicketPostRequestBody_type.cs deleted file mode 100644 index 26ddec4..0000000 --- a/V2/Ticketing/Ticket/TicketPostRequestBody_type.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - /// Type of ticket - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum TicketPostRequestBody_type - { - [EnumMember(Value = "PROBLEM")] - #pragma warning disable CS1591 - PROBLEM, - #pragma warning restore CS1591 - [EnumMember(Value = "QUESTION")] - #pragma warning disable CS1591 - QUESTION, - #pragma warning restore CS1591 - [EnumMember(Value = "INCIDENT")] - #pragma warning disable CS1591 - INCIDENT, - #pragma warning restore CS1591 - [EnumMember(Value = "TASK")] - #pragma warning disable CS1591 - TASK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHANGE_REQUEST")] - #pragma warning disable CS1591 - CHANGE_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "SERVICE_REQUEST")] - #pragma warning disable CS1591 - SERVICE_REQUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "PROJECT")] - #pragma warning disable CS1591 - PROJECT, - #pragma warning restore CS1591 - [EnumMember(Value = "APPOINTMENT")] - #pragma warning disable CS1591 - APPOINTMENT, - #pragma warning restore CS1591 - [EnumMember(Value = "MISCELLANEOUS")] - #pragma warning disable CS1591 - MISCELLANEOUS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Ticket/TicketRequestBuilder.cs b/V2/Ticketing/Ticket/TicketRequestBuilder.cs deleted file mode 100644 index 69b441b..0000000 --- a/V2/Ticketing/Ticket/TicketRequestBuilder.cs +++ /dev/null @@ -1,129 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Ticketing.Ticket.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Ticketing.Ticket -{ - /// - /// Builds and executes requests for operations under \v2\ticketing\ticket - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TicketRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.ticketing.ticket.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("ticketId", position); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.ticketing.ticket.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("ticketId", position); - return new global::NinjaOne.Client.V2.Ticketing.Ticket.Item.WithTicketItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public TicketRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/ticket", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TicketRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/ticket", rawUrl) - { - } - /// - /// Create a new ticket, does not accept files - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Ticketing.Ticket.Ticket5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Create a new ticket, does not accept files - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Ticketing.Ticket.TicketPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Ticketing.Ticket.TicketRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Ticketing.Ticket.TicketRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TicketRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError.cs deleted file mode 100644 index 725c0ff..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError.cs +++ /dev/null @@ -1,128 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm4XXError : ApiException, IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The active property - public bool? Active { get; set; } - /// 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 content property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_content? Content { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_content Content { get; set; } -#endif - /// The createTime property - public double? CreateTime { get; set; } - /// The default property - public bool? Default { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The endUserTitle property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? EndUserTitle { get; set; } -#nullable restore -#else - public string EndUserTitle { get; set; } -#endif - /// The fields property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The updateTime property - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm4XXError() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "content", n => { Content = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_content.CreateFromDiscriminatorValue); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "default", n => { Default = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "endUserTitle", n => { EndUserTitle = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteObjectValue("content", Content); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteBoolValue("default", Default); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("endUserTitle", EndUserTitle); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_content.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_content.cs deleted file mode 100644 index a34f4d8..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_content.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm4XXError_content : 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 fields property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// The timerSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_content_timerSettings? TimerSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_content_timerSettings TimerSettings { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm4XXError_content() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_content CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_content(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "fields", n => { Fields = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "timerSettings", n => { TimerSettings = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_content_timerSettings.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("fields", Fields); - writer.WriteObjectValue("timerSettings", TimerSettings); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_content_timerSettings.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_content_timerSettings.cs deleted file mode 100644 index ddd317b..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_content_timerSettings.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm4XXError_content_timerSettings : 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 enabled property - public bool? Enabled { get; set; } - /// The mode property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_content_timerSettings_mode? Mode { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm4XXError_content_timerSettings() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_content_timerSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_content_timerSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "mode", n => { Mode = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteEnumValue("mode", Mode); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_content_timerSettings_mode.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_content_timerSettings_mode.cs deleted file mode 100644 index a8aaf6b..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_content_timerSettings_mode.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm4XXError_content_timerSettings_mode - #pragma warning restore CS1591 - { - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTO_START")] - #pragma warning disable CS1591 - AUTO_START, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields.cs deleted file mode 100644 index 9583453..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields.cs +++ /dev/null @@ -1,159 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm4XXError_fields : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The active property - public bool? Active { get; set; } - /// 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 attributeType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? AttributeType { get; set; } -#nullable restore -#else - public string AttributeType { get; set; } -#endif - /// The content property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content? Content { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content Content { get; set; } -#endif - /// The createTime property - public double? CreateTime { get; set; } - /// The customizeForEndUser property - public bool? CustomizeForEndUser { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The descriptionForEndUser property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DescriptionForEndUser { get; set; } -#nullable restore -#else - public string DescriptionForEndUser { get; set; } -#endif - /// The endUserOption property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? EndUserOption { get; set; } -#nullable restore -#else - public string EndUserOption { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The nameForEndUser property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NameForEndUser { get; set; } -#nullable restore -#else - public string NameForEndUser { get; set; } -#endif - /// The system property - public bool? System { get; set; } - /// The technicianOption property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TechnicianOption { get; set; } -#nullable restore -#else - public string TechnicianOption { get; set; } -#endif - /// The updateTime property - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm4XXError_fields() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "attributeType", n => { AttributeType = n.GetStringValue(); } }, - { "content", n => { Content = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content.CreateFromDiscriminatorValue); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "customizeForEndUser", n => { CustomizeForEndUser = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "descriptionForEndUser", n => { DescriptionForEndUser = n.GetStringValue(); } }, - { "endUserOption", n => { EndUserOption = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nameForEndUser", n => { NameForEndUser = n.GetStringValue(); } }, - { "system", n => { System = n.GetBoolValue(); } }, - { "technicianOption", n => { TechnicianOption = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteStringValue("attributeType", AttributeType); - writer.WriteObjectValue("content", Content); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteBoolValue("customizeForEndUser", CustomizeForEndUser); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("descriptionForEndUser", DescriptionForEndUser); - writer.WriteStringValue("endUserOption", EndUserOption); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("nameForEndUser", NameForEndUser); - writer.WriteBoolValue("system", System); - writer.WriteStringValue("technicianOption", TechnicianOption); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content.cs deleted file mode 100644 index 83d3338..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm4XXError_fields_content : 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 advancedSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings? AdvancedSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings AdvancedSettings { get; set; } -#endif - /// The customizeForEndUser property - public bool? CustomizeForEndUser { get; set; } - /// The endUserCustomization property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_endUserCustomization? EndUserCustomization { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_endUserCustomization EndUserCustomization { get; set; } -#endif - /// The footerText property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FooterText { get; set; } -#nullable restore -#else - public string FooterText { get; set; } -#endif - /// The required property - public bool? Required { get; set; } - /// The tooltipText property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TooltipText { get; set; } -#nullable restore -#else - public string TooltipText { get; set; } -#endif - /// The values property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm4XXError_fields_content() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "advancedSettings", n => { AdvancedSettings = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings.CreateFromDiscriminatorValue); } }, - { "customizeForEndUser", n => { CustomizeForEndUser = n.GetBoolValue(); } }, - { "endUserCustomization", n => { EndUserCustomization = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_endUserCustomization.CreateFromDiscriminatorValue); } }, - { "footerText", n => { FooterText = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tooltipText", n => { TooltipText = n.GetStringValue(); } }, - { "values", n => { Values = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_values.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("advancedSettings", AdvancedSettings); - writer.WriteBoolValue("customizeForEndUser", CustomizeForEndUser); - writer.WriteObjectValue("endUserCustomization", EndUserCustomization); - writer.WriteStringValue("footerText", FooterText); - writer.WriteBoolValue("required", Required); - writer.WriteStringValue("tooltipText", TooltipText); - writer.WriteCollectionOfObjectValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings.cs deleted file mode 100644 index 05ae2a2..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm4XXError_fields_content_advancedSettings : 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 complexityRules property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_complexityRules? ComplexityRules { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_complexityRules ComplexityRules { get; set; } -#endif - /// The dateFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_dateFilters? DateFilters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_dateFilters DateFilters { get; set; } -#endif - /// The expandLargeValueOnRender property - public bool? ExpandLargeValueOnRender { get; set; } - /// The fileExtensions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FileExtensions { get; set; } -#nullable restore -#else - public List FileExtensions { get; set; } -#endif - /// The fileMaxSize property - public int? FileMaxSize { get; set; } - /// The identifier property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_identifier? Identifier { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_identifier Identifier { get; set; } -#endif - /// The ipAddressType property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_ipAddressType? IpAddressType { get; set; } - /// The maxCharacters property - public int? MaxCharacters { get; set; } - /// The monetary property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_monetary? Monetary { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_monetary Monetary { get; set; } -#endif - /// The nodeClass property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? NodeClass { get; set; } -#nullable restore -#else - public List NodeClass { get; set; } -#endif - /// The numericRange property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_numericRange? NumericRange { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_numericRange NumericRange { get; set; } -#endif - /// The org property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Org { get; set; } -#nullable restore -#else - public List Org { get; set; } -#endif - /// The templates property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Templates { get; set; } -#nullable restore -#else - public List Templates { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm4XXError_fields_content_advancedSettings() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "complexityRules", n => { ComplexityRules = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_complexityRules.CreateFromDiscriminatorValue); } }, - { "dateFilters", n => { DateFilters = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_dateFilters.CreateFromDiscriminatorValue); } }, - { "expandLargeValueOnRender", n => { ExpandLargeValueOnRender = n.GetBoolValue(); } }, - { "fileExtensions", n => { FileExtensions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "fileMaxSize", n => { FileMaxSize = n.GetIntValue(); } }, - { "identifier", n => { Identifier = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_identifier.CreateFromDiscriminatorValue); } }, - { "ipAddressType", n => { IpAddressType = n.GetEnumValue(); } }, - { "maxCharacters", n => { MaxCharacters = n.GetIntValue(); } }, - { "monetary", n => { Monetary = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_monetary.CreateFromDiscriminatorValue); } }, - { "nodeClass", n => { NodeClass = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "numericRange", n => { NumericRange = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_numericRange.CreateFromDiscriminatorValue); } }, - { "org", n => { Org = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "templates", n => { Templates = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("complexityRules", ComplexityRules); - writer.WriteObjectValue("dateFilters", DateFilters); - writer.WriteBoolValue("expandLargeValueOnRender", ExpandLargeValueOnRender); - writer.WriteCollectionOfPrimitiveValues("fileExtensions", FileExtensions); - writer.WriteIntValue("fileMaxSize", FileMaxSize); - writer.WriteObjectValue("identifier", Identifier); - writer.WriteEnumValue("ipAddressType", IpAddressType); - writer.WriteIntValue("maxCharacters", MaxCharacters); - writer.WriteObjectValue("monetary", Monetary); - writer.WriteCollectionOfEnumValues("nodeClass", NodeClass); - writer.WriteObjectValue("numericRange", NumericRange); - writer.WriteCollectionOfPrimitiveValues("org", Org); - writer.WriteCollectionOfPrimitiveValues("templates", Templates); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_complexityRules.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_complexityRules.cs deleted file mode 100644 index e348e3c..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_complexityRules.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm4XXError_fields_content_advancedSettings_complexityRules : 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 greaterOrEqualThanSixCharacters property - public bool? GreaterOrEqualThanSixCharacters { get; set; } - /// The mustContainOneInteger property - public bool? MustContainOneInteger { get; set; } - /// The mustContainOneLowercaseLetter property - public bool? MustContainOneLowercaseLetter { get; set; } - /// The mustContainOneUppercaseLetter property - public bool? MustContainOneUppercaseLetter { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm4XXError_fields_content_advancedSettings_complexityRules() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_complexityRules CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_complexityRules(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "greaterOrEqualThanSixCharacters", n => { GreaterOrEqualThanSixCharacters = n.GetBoolValue(); } }, - { "mustContainOneInteger", n => { MustContainOneInteger = n.GetBoolValue(); } }, - { "mustContainOneLowercaseLetter", n => { MustContainOneLowercaseLetter = n.GetBoolValue(); } }, - { "mustContainOneUppercaseLetter", n => { MustContainOneUppercaseLetter = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("greaterOrEqualThanSixCharacters", GreaterOrEqualThanSixCharacters); - writer.WriteBoolValue("mustContainOneInteger", MustContainOneInteger); - writer.WriteBoolValue("mustContainOneLowercaseLetter", MustContainOneLowercaseLetter); - writer.WriteBoolValue("mustContainOneUppercaseLetter", MustContainOneUppercaseLetter); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_dateFilters.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_dateFilters.cs deleted file mode 100644 index 36b2999..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_dateFilters.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm4XXError_fields_content_advancedSettings_dateFilters : 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 selected property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Selected { get; set; } -#nullable restore -#else - public List Selected { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_dateFilters_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm4XXError_fields_content_advancedSettings_dateFilters() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_dateFilters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_dateFilters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "selected", n => { Selected = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("selected", Selected); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_dateFilters_type.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_dateFilters_type.cs deleted file mode 100644 index d32b255..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_dateFilters_type.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm4XXError_fields_content_advancedSettings_dateFilters_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "INCLUDE")] - #pragma warning disable CS1591 - INCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "EXCLUDE")] - #pragma warning disable CS1591 - EXCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "PAST_DATES_ONLY")] - #pragma warning disable CS1591 - PAST_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "FUTURE_DATES_ONLY")] - #pragma warning disable CS1591 - FUTURE_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "RANGE")] - #pragma warning disable CS1591 - RANGE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_identifier.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_identifier.cs deleted file mode 100644 index 262055b..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_identifier.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm4XXError_fields_content_advancedSettings_identifier : 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 assignTo property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_identifier_assignTo? AssignTo { get; set; } - /// The automaticGenerationEnabled property - public bool? AutomaticGenerationEnabled { get; set; } - /// The nextSequenceNumber property - public long? NextSequenceNumber { get; set; } - /// The prefix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Prefix { get; set; } -#nullable restore -#else - public string Prefix { get; set; } -#endif - /// The scope property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_identifier_scope? Scope { get; set; } - /// The suffix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Suffix { get; set; } -#nullable restore -#else - public string Suffix { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_identifier_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm4XXError_fields_content_advancedSettings_identifier() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_identifier CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_identifier(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignTo", n => { AssignTo = n.GetEnumValue(); } }, - { "automaticGenerationEnabled", n => { AutomaticGenerationEnabled = n.GetBoolValue(); } }, - { "nextSequenceNumber", n => { NextSequenceNumber = n.GetLongValue(); } }, - { "prefix", n => { Prefix = n.GetStringValue(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - { "suffix", n => { Suffix = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignTo", AssignTo); - writer.WriteBoolValue("automaticGenerationEnabled", AutomaticGenerationEnabled); - writer.WriteLongValue("nextSequenceNumber", NextSequenceNumber); - writer.WriteStringValue("prefix", Prefix); - writer.WriteEnumValue("scope", Scope); - writer.WriteStringValue("suffix", Suffix); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_identifier_assignTo.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_identifier_assignTo.cs deleted file mode 100644 index 7fefb15..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_identifier_assignTo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm4XXError_fields_content_advancedSettings_identifier_assignTo - #pragma warning restore CS1591 - { - [EnumMember(Value = "NEW_ASSETS_ONLY")] - #pragma warning disable CS1591 - NEW_ASSETS_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "NEW_AND_EXISTING_ASSETS")] - #pragma warning disable CS1591 - NEW_AND_EXISTING_ASSETS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_identifier_scope.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_identifier_scope.cs deleted file mode 100644 index 3105227..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_identifier_scope.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm4XXError_fields_content_advancedSettings_identifier_scope - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "GLOBAL")] - #pragma warning disable CS1591 - GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_identifier_type.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_identifier_type.cs deleted file mode 100644 index efecede..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_identifier_type.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm4XXError_fields_content_advancedSettings_identifier_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - [EnumMember(Value = "SEQUENCE")] - #pragma warning disable CS1591 - SEQUENCE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_ipAddressType.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_ipAddressType.cs deleted file mode 100644 index 74eccf9..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_ipAddressType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm4XXError_fields_content_advancedSettings_ipAddressType - #pragma warning restore CS1591 - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV4")] - #pragma warning disable CS1591 - IPV4, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV6")] - #pragma warning disable CS1591 - IPV6, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_monetary.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_monetary.cs deleted file mode 100644 index ad111d2..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_monetary.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm4XXError_fields_content_advancedSettings_monetary : 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 currency property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_monetary_currency? Currency { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm4XXError_fields_content_advancedSettings_monetary() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_monetary CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_monetary(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "currency", n => { Currency = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("currency", Currency); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_monetary_currency.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_monetary_currency.cs deleted file mode 100644 index 5b7e5b6..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_monetary_currency.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm4XXError_fields_content_advancedSettings_monetary_currency - #pragma warning restore CS1591 - { - [EnumMember(Value = "USD")] - #pragma warning disable CS1591 - USD, - #pragma warning restore CS1591 - [EnumMember(Value = "EUR")] - #pragma warning disable CS1591 - EUR, - #pragma warning restore CS1591 - [EnumMember(Value = "CAD")] - #pragma warning disable CS1591 - CAD, - #pragma warning restore CS1591 - [EnumMember(Value = "GBP")] - #pragma warning disable CS1591 - GBP, - #pragma warning restore CS1591 - [EnumMember(Value = "AUD")] - #pragma warning disable CS1591 - AUD, - #pragma warning restore CS1591 - [EnumMember(Value = "JPY")] - #pragma warning disable CS1591 - JPY, - #pragma warning restore CS1591 - [EnumMember(Value = "SEK")] - #pragma warning disable CS1591 - SEK, - #pragma warning restore CS1591 - [EnumMember(Value = "NOK")] - #pragma warning disable CS1591 - NOK, - #pragma warning restore CS1591 - [EnumMember(Value = "DKK")] - #pragma warning disable CS1591 - DKK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHF")] - #pragma warning disable CS1591 - CHF, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_nodeClass.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_nodeClass.cs deleted file mode 100644 index feddccb..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_nodeClass.cs +++ /dev/null @@ -1,144 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm4XXError_fields_content_advancedSettings_nodeClass - #pragma warning restore CS1591 - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_numericRange.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_numericRange.cs deleted file mode 100644 index 9c27dde..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_advancedSettings_numericRange.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm4XXError_fields_content_advancedSettings_numericRange : 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 max property - public double? Max { get; set; } - /// The min property - public double? Min { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm4XXError_fields_content_advancedSettings_numericRange() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_numericRange CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_advancedSettings_numericRange(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "max", n => { Max = n.GetDoubleValue(); } }, - { "min", n => { Min = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("max", Max); - writer.WriteDoubleValue("min", Min); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_endUserCustomization.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_endUserCustomization.cs deleted file mode 100644 index 522caf2..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_endUserCustomization.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm4XXError_fields_content_endUserCustomization : 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 description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm4XXError_fields_content_endUserCustomization() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_endUserCustomization CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_endUserCustomization(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "label", n => { Label = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_values.cs b/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_values.cs deleted file mode 100644 index 53882a6..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm4XXError_fields_content_values.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm4XXError_fields_content_values : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The active property - public bool? Active { get; set; } - /// 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 id property - public Guid? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The system property - public bool? System { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm4XXError_fields_content_values() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_values CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError_fields_content_values(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "system", n => { System = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteBoolValue("system", System); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError.cs deleted file mode 100644 index 3902b58..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError.cs +++ /dev/null @@ -1,128 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm5XXError : ApiException, IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The active property - public bool? Active { get; set; } - /// 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 content property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_content? Content { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_content Content { get; set; } -#endif - /// The createTime property - public double? CreateTime { get; set; } - /// The default property - public bool? Default { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The endUserTitle property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? EndUserTitle { get; set; } -#nullable restore -#else - public string EndUserTitle { get; set; } -#endif - /// The fields property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The updateTime property - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm5XXError() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "content", n => { Content = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_content.CreateFromDiscriminatorValue); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "default", n => { Default = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "endUserTitle", n => { EndUserTitle = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteObjectValue("content", Content); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteBoolValue("default", Default); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("endUserTitle", EndUserTitle); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_content.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_content.cs deleted file mode 100644 index 1730518..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_content.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm5XXError_content : 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 fields property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// The timerSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_content_timerSettings? TimerSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_content_timerSettings TimerSettings { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm5XXError_content() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_content CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_content(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "fields", n => { Fields = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "timerSettings", n => { TimerSettings = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_content_timerSettings.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("fields", Fields); - writer.WriteObjectValue("timerSettings", TimerSettings); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_content_timerSettings.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_content_timerSettings.cs deleted file mode 100644 index c7ea1eb..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_content_timerSettings.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm5XXError_content_timerSettings : 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 enabled property - public bool? Enabled { get; set; } - /// The mode property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_content_timerSettings_mode? Mode { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm5XXError_content_timerSettings() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_content_timerSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_content_timerSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "mode", n => { Mode = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteEnumValue("mode", Mode); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_content_timerSettings_mode.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_content_timerSettings_mode.cs deleted file mode 100644 index 85e79f7..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_content_timerSettings_mode.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm5XXError_content_timerSettings_mode - #pragma warning restore CS1591 - { - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTO_START")] - #pragma warning disable CS1591 - AUTO_START, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields.cs deleted file mode 100644 index bbf66b2..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields.cs +++ /dev/null @@ -1,159 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm5XXError_fields : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The active property - public bool? Active { get; set; } - /// 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 attributeType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? AttributeType { get; set; } -#nullable restore -#else - public string AttributeType { get; set; } -#endif - /// The content property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content? Content { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content Content { get; set; } -#endif - /// The createTime property - public double? CreateTime { get; set; } - /// The customizeForEndUser property - public bool? CustomizeForEndUser { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The descriptionForEndUser property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DescriptionForEndUser { get; set; } -#nullable restore -#else - public string DescriptionForEndUser { get; set; } -#endif - /// The endUserOption property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? EndUserOption { get; set; } -#nullable restore -#else - public string EndUserOption { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The nameForEndUser property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NameForEndUser { get; set; } -#nullable restore -#else - public string NameForEndUser { get; set; } -#endif - /// The system property - public bool? System { get; set; } - /// The technicianOption property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TechnicianOption { get; set; } -#nullable restore -#else - public string TechnicianOption { get; set; } -#endif - /// The updateTime property - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm5XXError_fields() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "attributeType", n => { AttributeType = n.GetStringValue(); } }, - { "content", n => { Content = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content.CreateFromDiscriminatorValue); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "customizeForEndUser", n => { CustomizeForEndUser = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "descriptionForEndUser", n => { DescriptionForEndUser = n.GetStringValue(); } }, - { "endUserOption", n => { EndUserOption = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nameForEndUser", n => { NameForEndUser = n.GetStringValue(); } }, - { "system", n => { System = n.GetBoolValue(); } }, - { "technicianOption", n => { TechnicianOption = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteStringValue("attributeType", AttributeType); - writer.WriteObjectValue("content", Content); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteBoolValue("customizeForEndUser", CustomizeForEndUser); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("descriptionForEndUser", DescriptionForEndUser); - writer.WriteStringValue("endUserOption", EndUserOption); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("nameForEndUser", NameForEndUser); - writer.WriteBoolValue("system", System); - writer.WriteStringValue("technicianOption", TechnicianOption); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content.cs deleted file mode 100644 index 14acb5a..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm5XXError_fields_content : 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 advancedSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings? AdvancedSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings AdvancedSettings { get; set; } -#endif - /// The customizeForEndUser property - public bool? CustomizeForEndUser { get; set; } - /// The endUserCustomization property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_endUserCustomization? EndUserCustomization { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_endUserCustomization EndUserCustomization { get; set; } -#endif - /// The footerText property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FooterText { get; set; } -#nullable restore -#else - public string FooterText { get; set; } -#endif - /// The required property - public bool? Required { get; set; } - /// The tooltipText property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TooltipText { get; set; } -#nullable restore -#else - public string TooltipText { get; set; } -#endif - /// The values property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm5XXError_fields_content() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "advancedSettings", n => { AdvancedSettings = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings.CreateFromDiscriminatorValue); } }, - { "customizeForEndUser", n => { CustomizeForEndUser = n.GetBoolValue(); } }, - { "endUserCustomization", n => { EndUserCustomization = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_endUserCustomization.CreateFromDiscriminatorValue); } }, - { "footerText", n => { FooterText = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tooltipText", n => { TooltipText = n.GetStringValue(); } }, - { "values", n => { Values = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_values.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("advancedSettings", AdvancedSettings); - writer.WriteBoolValue("customizeForEndUser", CustomizeForEndUser); - writer.WriteObjectValue("endUserCustomization", EndUserCustomization); - writer.WriteStringValue("footerText", FooterText); - writer.WriteBoolValue("required", Required); - writer.WriteStringValue("tooltipText", TooltipText); - writer.WriteCollectionOfObjectValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings.cs deleted file mode 100644 index 8a5c2a8..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm5XXError_fields_content_advancedSettings : 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 complexityRules property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_complexityRules? ComplexityRules { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_complexityRules ComplexityRules { get; set; } -#endif - /// The dateFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_dateFilters? DateFilters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_dateFilters DateFilters { get; set; } -#endif - /// The expandLargeValueOnRender property - public bool? ExpandLargeValueOnRender { get; set; } - /// The fileExtensions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FileExtensions { get; set; } -#nullable restore -#else - public List FileExtensions { get; set; } -#endif - /// The fileMaxSize property - public int? FileMaxSize { get; set; } - /// The identifier property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_identifier? Identifier { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_identifier Identifier { get; set; } -#endif - /// The ipAddressType property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_ipAddressType? IpAddressType { get; set; } - /// The maxCharacters property - public int? MaxCharacters { get; set; } - /// The monetary property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_monetary? Monetary { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_monetary Monetary { get; set; } -#endif - /// The nodeClass property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? NodeClass { get; set; } -#nullable restore -#else - public List NodeClass { get; set; } -#endif - /// The numericRange property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_numericRange? NumericRange { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_numericRange NumericRange { get; set; } -#endif - /// The org property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Org { get; set; } -#nullable restore -#else - public List Org { get; set; } -#endif - /// The templates property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Templates { get; set; } -#nullable restore -#else - public List Templates { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm5XXError_fields_content_advancedSettings() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "complexityRules", n => { ComplexityRules = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_complexityRules.CreateFromDiscriminatorValue); } }, - { "dateFilters", n => { DateFilters = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_dateFilters.CreateFromDiscriminatorValue); } }, - { "expandLargeValueOnRender", n => { ExpandLargeValueOnRender = n.GetBoolValue(); } }, - { "fileExtensions", n => { FileExtensions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "fileMaxSize", n => { FileMaxSize = n.GetIntValue(); } }, - { "identifier", n => { Identifier = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_identifier.CreateFromDiscriminatorValue); } }, - { "ipAddressType", n => { IpAddressType = n.GetEnumValue(); } }, - { "maxCharacters", n => { MaxCharacters = n.GetIntValue(); } }, - { "monetary", n => { Monetary = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_monetary.CreateFromDiscriminatorValue); } }, - { "nodeClass", n => { NodeClass = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "numericRange", n => { NumericRange = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_numericRange.CreateFromDiscriminatorValue); } }, - { "org", n => { Org = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "templates", n => { Templates = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("complexityRules", ComplexityRules); - writer.WriteObjectValue("dateFilters", DateFilters); - writer.WriteBoolValue("expandLargeValueOnRender", ExpandLargeValueOnRender); - writer.WriteCollectionOfPrimitiveValues("fileExtensions", FileExtensions); - writer.WriteIntValue("fileMaxSize", FileMaxSize); - writer.WriteObjectValue("identifier", Identifier); - writer.WriteEnumValue("ipAddressType", IpAddressType); - writer.WriteIntValue("maxCharacters", MaxCharacters); - writer.WriteObjectValue("monetary", Monetary); - writer.WriteCollectionOfEnumValues("nodeClass", NodeClass); - writer.WriteObjectValue("numericRange", NumericRange); - writer.WriteCollectionOfPrimitiveValues("org", Org); - writer.WriteCollectionOfPrimitiveValues("templates", Templates); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_complexityRules.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_complexityRules.cs deleted file mode 100644 index 8af60a7..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_complexityRules.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm5XXError_fields_content_advancedSettings_complexityRules : 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 greaterOrEqualThanSixCharacters property - public bool? GreaterOrEqualThanSixCharacters { get; set; } - /// The mustContainOneInteger property - public bool? MustContainOneInteger { get; set; } - /// The mustContainOneLowercaseLetter property - public bool? MustContainOneLowercaseLetter { get; set; } - /// The mustContainOneUppercaseLetter property - public bool? MustContainOneUppercaseLetter { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm5XXError_fields_content_advancedSettings_complexityRules() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_complexityRules CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_complexityRules(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "greaterOrEqualThanSixCharacters", n => { GreaterOrEqualThanSixCharacters = n.GetBoolValue(); } }, - { "mustContainOneInteger", n => { MustContainOneInteger = n.GetBoolValue(); } }, - { "mustContainOneLowercaseLetter", n => { MustContainOneLowercaseLetter = n.GetBoolValue(); } }, - { "mustContainOneUppercaseLetter", n => { MustContainOneUppercaseLetter = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("greaterOrEqualThanSixCharacters", GreaterOrEqualThanSixCharacters); - writer.WriteBoolValue("mustContainOneInteger", MustContainOneInteger); - writer.WriteBoolValue("mustContainOneLowercaseLetter", MustContainOneLowercaseLetter); - writer.WriteBoolValue("mustContainOneUppercaseLetter", MustContainOneUppercaseLetter); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_dateFilters.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_dateFilters.cs deleted file mode 100644 index ccdd526..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_dateFilters.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm5XXError_fields_content_advancedSettings_dateFilters : 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 selected property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Selected { get; set; } -#nullable restore -#else - public List Selected { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_dateFilters_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm5XXError_fields_content_advancedSettings_dateFilters() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_dateFilters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_dateFilters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "selected", n => { Selected = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("selected", Selected); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_dateFilters_type.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_dateFilters_type.cs deleted file mode 100644 index d163504..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_dateFilters_type.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm5XXError_fields_content_advancedSettings_dateFilters_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "INCLUDE")] - #pragma warning disable CS1591 - INCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "EXCLUDE")] - #pragma warning disable CS1591 - EXCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "PAST_DATES_ONLY")] - #pragma warning disable CS1591 - PAST_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "FUTURE_DATES_ONLY")] - #pragma warning disable CS1591 - FUTURE_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "RANGE")] - #pragma warning disable CS1591 - RANGE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_identifier.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_identifier.cs deleted file mode 100644 index 87010a0..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_identifier.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm5XXError_fields_content_advancedSettings_identifier : 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 assignTo property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_identifier_assignTo? AssignTo { get; set; } - /// The automaticGenerationEnabled property - public bool? AutomaticGenerationEnabled { get; set; } - /// The nextSequenceNumber property - public long? NextSequenceNumber { get; set; } - /// The prefix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Prefix { get; set; } -#nullable restore -#else - public string Prefix { get; set; } -#endif - /// The scope property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_identifier_scope? Scope { get; set; } - /// The suffix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Suffix { get; set; } -#nullable restore -#else - public string Suffix { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_identifier_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm5XXError_fields_content_advancedSettings_identifier() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_identifier CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_identifier(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignTo", n => { AssignTo = n.GetEnumValue(); } }, - { "automaticGenerationEnabled", n => { AutomaticGenerationEnabled = n.GetBoolValue(); } }, - { "nextSequenceNumber", n => { NextSequenceNumber = n.GetLongValue(); } }, - { "prefix", n => { Prefix = n.GetStringValue(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - { "suffix", n => { Suffix = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignTo", AssignTo); - writer.WriteBoolValue("automaticGenerationEnabled", AutomaticGenerationEnabled); - writer.WriteLongValue("nextSequenceNumber", NextSequenceNumber); - writer.WriteStringValue("prefix", Prefix); - writer.WriteEnumValue("scope", Scope); - writer.WriteStringValue("suffix", Suffix); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_identifier_assignTo.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_identifier_assignTo.cs deleted file mode 100644 index d0d6a1b..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_identifier_assignTo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm5XXError_fields_content_advancedSettings_identifier_assignTo - #pragma warning restore CS1591 - { - [EnumMember(Value = "NEW_ASSETS_ONLY")] - #pragma warning disable CS1591 - NEW_ASSETS_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "NEW_AND_EXISTING_ASSETS")] - #pragma warning disable CS1591 - NEW_AND_EXISTING_ASSETS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_identifier_scope.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_identifier_scope.cs deleted file mode 100644 index 0d7e370..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_identifier_scope.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm5XXError_fields_content_advancedSettings_identifier_scope - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "GLOBAL")] - #pragma warning disable CS1591 - GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_identifier_type.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_identifier_type.cs deleted file mode 100644 index c8ecd87..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_identifier_type.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm5XXError_fields_content_advancedSettings_identifier_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - [EnumMember(Value = "SEQUENCE")] - #pragma warning disable CS1591 - SEQUENCE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_ipAddressType.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_ipAddressType.cs deleted file mode 100644 index a0c70ae..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_ipAddressType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm5XXError_fields_content_advancedSettings_ipAddressType - #pragma warning restore CS1591 - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV4")] - #pragma warning disable CS1591 - IPV4, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV6")] - #pragma warning disable CS1591 - IPV6, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_monetary.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_monetary.cs deleted file mode 100644 index 0c0079c..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_monetary.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm5XXError_fields_content_advancedSettings_monetary : 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 currency property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_monetary_currency? Currency { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm5XXError_fields_content_advancedSettings_monetary() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_monetary CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_monetary(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "currency", n => { Currency = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("currency", Currency); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_monetary_currency.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_monetary_currency.cs deleted file mode 100644 index c99a1f2..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_monetary_currency.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm5XXError_fields_content_advancedSettings_monetary_currency - #pragma warning restore CS1591 - { - [EnumMember(Value = "USD")] - #pragma warning disable CS1591 - USD, - #pragma warning restore CS1591 - [EnumMember(Value = "EUR")] - #pragma warning disable CS1591 - EUR, - #pragma warning restore CS1591 - [EnumMember(Value = "CAD")] - #pragma warning disable CS1591 - CAD, - #pragma warning restore CS1591 - [EnumMember(Value = "GBP")] - #pragma warning disable CS1591 - GBP, - #pragma warning restore CS1591 - [EnumMember(Value = "AUD")] - #pragma warning disable CS1591 - AUD, - #pragma warning restore CS1591 - [EnumMember(Value = "JPY")] - #pragma warning disable CS1591 - JPY, - #pragma warning restore CS1591 - [EnumMember(Value = "SEK")] - #pragma warning disable CS1591 - SEK, - #pragma warning restore CS1591 - [EnumMember(Value = "NOK")] - #pragma warning disable CS1591 - NOK, - #pragma warning restore CS1591 - [EnumMember(Value = "DKK")] - #pragma warning disable CS1591 - DKK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHF")] - #pragma warning disable CS1591 - CHF, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_nodeClass.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_nodeClass.cs deleted file mode 100644 index 5b4cb34..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_nodeClass.cs +++ /dev/null @@ -1,144 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm5XXError_fields_content_advancedSettings_nodeClass - #pragma warning restore CS1591 - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_numericRange.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_numericRange.cs deleted file mode 100644 index 6c209cc..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_advancedSettings_numericRange.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm5XXError_fields_content_advancedSettings_numericRange : 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 max property - public double? Max { get; set; } - /// The min property - public double? Min { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm5XXError_fields_content_advancedSettings_numericRange() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_numericRange CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_advancedSettings_numericRange(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "max", n => { Max = n.GetDoubleValue(); } }, - { "min", n => { Min = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("max", Max); - writer.WriteDoubleValue("min", Min); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_endUserCustomization.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_endUserCustomization.cs deleted file mode 100644 index dba9266..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_endUserCustomization.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm5XXError_fields_content_endUserCustomization : 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 description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm5XXError_fields_content_endUserCustomization() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_endUserCustomization CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_endUserCustomization(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "label", n => { Label = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_values.cs b/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_values.cs deleted file mode 100644 index 660eff1..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketForm5XXError_fields_content_values.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm5XXError_fields_content_values : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The active property - public bool? Active { get; set; } - /// 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 id property - public Guid? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The system property - public bool? System { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm5XXError_fields_content_values() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_values CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError_fields_content_values(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "system", n => { System = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteBoolValue("system", System); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/Item/TicketFormItemRequestBuilder.cs b/V2/Ticketing/TicketForm/Item/TicketFormItemRequestBuilder.cs deleted file mode 100644 index 5f84495..0000000 --- a/V2/Ticketing/TicketForm/Item/TicketFormItemRequestBuilder.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm.Item -{ - /// - /// Builds and executes requests for operations under \v2\ticketing\ticket-form\{id} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TicketFormItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public TicketFormItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/ticket-form/{id}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TicketFormItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/ticket-form/{id}", rawUrl) - { - } - /// - /// Returns a ticket form with fields - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketForm5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns a ticket form with fields - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketFormItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketFormItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TicketFormItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/TicketForm.cs b/V2/Ticketing/TicketForm/TicketForm.cs deleted file mode 100644 index 3321546..0000000 --- a/V2/Ticketing/TicketForm/TicketForm.cs +++ /dev/null @@ -1,128 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm : ApiException, IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The active property - public bool? Active { get; set; } - /// 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 content property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_content? Content { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_content Content { get; set; } -#endif - /// The createTime property - public double? CreateTime { get; set; } - /// The default property - public bool? Default { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The endUserTitle property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? EndUserTitle { get; set; } -#nullable restore -#else - public string EndUserTitle { get; set; } -#endif - /// The fields property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The updateTime property - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "content", n => { Content = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_content.CreateFromDiscriminatorValue); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "default", n => { Default = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "endUserTitle", n => { EndUserTitle = n.GetStringValue(); } }, - { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields.CreateFromDiscriminatorValue)?.AsList(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteObjectValue("content", Content); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteBoolValue("default", Default); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("endUserTitle", EndUserTitle); - writer.WriteCollectionOfObjectValues("fields", Fields); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/TicketFormRequestBuilder.cs b/V2/Ticketing/TicketForm/TicketFormRequestBuilder.cs deleted file mode 100644 index d3de503..0000000 --- a/V2/Ticketing/TicketForm/TicketFormRequestBuilder.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Ticketing.TicketForm.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - /// - /// Builds and executes requests for operations under \v2\ticketing\ticket-form - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TicketFormRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.ticketing.ticketForm.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketFormItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketFormItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.ticketing.ticketForm.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketFormItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("id", position); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.Item.TicketFormItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public TicketFormRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/ticket-form", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TicketFormRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/ticket-form", rawUrl) - { - } - /// - /// Returns list of ticket forms with their fields - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of ticket forms with their fields - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketFormRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketFormRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TicketFormRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/TicketForm_content.cs b/V2/Ticketing/TicketForm/TicketForm_content.cs deleted file mode 100644 index f88886c..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_content.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm_content : 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 fields property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Fields { get; set; } -#nullable restore -#else - public List Fields { get; set; } -#endif - /// The timerSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_content_timerSettings? TimerSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_content_timerSettings TimerSettings { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm_content() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_content CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_content(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "fields", n => { Fields = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "timerSettings", n => { TimerSettings = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_content_timerSettings.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("fields", Fields); - writer.WriteObjectValue("timerSettings", TimerSettings); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/TicketForm_content_timerSettings.cs b/V2/Ticketing/TicketForm/TicketForm_content_timerSettings.cs deleted file mode 100644 index 351a00d..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_content_timerSettings.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm_content_timerSettings : 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 enabled property - public bool? Enabled { get; set; } - /// The mode property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_content_timerSettings_mode? Mode { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm_content_timerSettings() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_content_timerSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_content_timerSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "mode", n => { Mode = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteEnumValue("mode", Mode); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/TicketForm_content_timerSettings_mode.cs b/V2/Ticketing/TicketForm/TicketForm_content_timerSettings_mode.cs deleted file mode 100644 index a405a50..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_content_timerSettings_mode.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm_content_timerSettings_mode - #pragma warning restore CS1591 - { - [EnumMember(Value = "MANUAL")] - #pragma warning disable CS1591 - MANUAL, - #pragma warning restore CS1591 - [EnumMember(Value = "AUTO_START")] - #pragma warning disable CS1591 - AUTO_START, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/TicketForm_fields.cs b/V2/Ticketing/TicketForm/TicketForm_fields.cs deleted file mode 100644 index 6f8638e..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_fields.cs +++ /dev/null @@ -1,159 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm_fields : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The active property - public bool? Active { get; set; } - /// 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 attributeType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? AttributeType { get; set; } -#nullable restore -#else - public string AttributeType { get; set; } -#endif - /// The content property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content? Content { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content Content { get; set; } -#endif - /// The createTime property - public double? CreateTime { get; set; } - /// The customizeForEndUser property - public bool? CustomizeForEndUser { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The descriptionForEndUser property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DescriptionForEndUser { get; set; } -#nullable restore -#else - public string DescriptionForEndUser { get; set; } -#endif - /// The endUserOption property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? EndUserOption { get; set; } -#nullable restore -#else - public string EndUserOption { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The nameForEndUser property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? NameForEndUser { get; set; } -#nullable restore -#else - public string NameForEndUser { get; set; } -#endif - /// The system property - public bool? System { get; set; } - /// The technicianOption property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TechnicianOption { get; set; } -#nullable restore -#else - public string TechnicianOption { get; set; } -#endif - /// The updateTime property - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm_fields() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "attributeType", n => { AttributeType = n.GetStringValue(); } }, - { "content", n => { Content = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content.CreateFromDiscriminatorValue); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "customizeForEndUser", n => { CustomizeForEndUser = n.GetBoolValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "descriptionForEndUser", n => { DescriptionForEndUser = n.GetStringValue(); } }, - { "endUserOption", n => { EndUserOption = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "nameForEndUser", n => { NameForEndUser = n.GetStringValue(); } }, - { "system", n => { System = n.GetBoolValue(); } }, - { "technicianOption", n => { TechnicianOption = n.GetStringValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteStringValue("attributeType", AttributeType); - writer.WriteObjectValue("content", Content); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteBoolValue("customizeForEndUser", CustomizeForEndUser); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("descriptionForEndUser", DescriptionForEndUser); - writer.WriteStringValue("endUserOption", EndUserOption); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("nameForEndUser", NameForEndUser); - writer.WriteBoolValue("system", System); - writer.WriteStringValue("technicianOption", TechnicianOption); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/TicketForm_fields_content.cs b/V2/Ticketing/TicketForm/TicketForm_fields_content.cs deleted file mode 100644 index b7fb624..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_fields_content.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm_fields_content : 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 advancedSettings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings? AdvancedSettings { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings AdvancedSettings { get; set; } -#endif - /// The customizeForEndUser property - public bool? CustomizeForEndUser { get; set; } - /// The endUserCustomization property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_endUserCustomization? EndUserCustomization { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_endUserCustomization EndUserCustomization { get; set; } -#endif - /// The footerText property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FooterText { get; set; } -#nullable restore -#else - public string FooterText { get; set; } -#endif - /// The required property - public bool? Required { get; set; } - /// The tooltipText property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TooltipText { get; set; } -#nullable restore -#else - public string TooltipText { get; set; } -#endif - /// The values property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm_fields_content() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "advancedSettings", n => { AdvancedSettings = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings.CreateFromDiscriminatorValue); } }, - { "customizeForEndUser", n => { CustomizeForEndUser = n.GetBoolValue(); } }, - { "endUserCustomization", n => { EndUserCustomization = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_endUserCustomization.CreateFromDiscriminatorValue); } }, - { "footerText", n => { FooterText = n.GetStringValue(); } }, - { "required", n => { Required = n.GetBoolValue(); } }, - { "tooltipText", n => { TooltipText = n.GetStringValue(); } }, - { "values", n => { Values = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_values.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("advancedSettings", AdvancedSettings); - writer.WriteBoolValue("customizeForEndUser", CustomizeForEndUser); - writer.WriteObjectValue("endUserCustomization", EndUserCustomization); - writer.WriteStringValue("footerText", FooterText); - writer.WriteBoolValue("required", Required); - writer.WriteStringValue("tooltipText", TooltipText); - writer.WriteCollectionOfObjectValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings.cs b/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings.cs deleted file mode 100644 index 77b524a..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm_fields_content_advancedSettings : 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 complexityRules property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_complexityRules? ComplexityRules { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_complexityRules ComplexityRules { get; set; } -#endif - /// The dateFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_dateFilters? DateFilters { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_dateFilters DateFilters { get; set; } -#endif - /// The expandLargeValueOnRender property - public bool? ExpandLargeValueOnRender { get; set; } - /// The fileExtensions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FileExtensions { get; set; } -#nullable restore -#else - public List FileExtensions { get; set; } -#endif - /// The fileMaxSize property - public int? FileMaxSize { get; set; } - /// The identifier property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_identifier? Identifier { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_identifier Identifier { get; set; } -#endif - /// The ipAddressType property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_ipAddressType? IpAddressType { get; set; } - /// The maxCharacters property - public int? MaxCharacters { get; set; } - /// The monetary property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_monetary? Monetary { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_monetary Monetary { get; set; } -#endif - /// The nodeClass property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? NodeClass { get; set; } -#nullable restore -#else - public List NodeClass { get; set; } -#endif - /// The numericRange property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_numericRange? NumericRange { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_numericRange NumericRange { get; set; } -#endif - /// The org property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Org { get; set; } -#nullable restore -#else - public List Org { get; set; } -#endif - /// The templates property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Templates { get; set; } -#nullable restore -#else - public List Templates { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm_fields_content_advancedSettings() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "complexityRules", n => { ComplexityRules = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_complexityRules.CreateFromDiscriminatorValue); } }, - { "dateFilters", n => { DateFilters = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_dateFilters.CreateFromDiscriminatorValue); } }, - { "expandLargeValueOnRender", n => { ExpandLargeValueOnRender = n.GetBoolValue(); } }, - { "fileExtensions", n => { FileExtensions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "fileMaxSize", n => { FileMaxSize = n.GetIntValue(); } }, - { "identifier", n => { Identifier = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_identifier.CreateFromDiscriminatorValue); } }, - { "ipAddressType", n => { IpAddressType = n.GetEnumValue(); } }, - { "maxCharacters", n => { MaxCharacters = n.GetIntValue(); } }, - { "monetary", n => { Monetary = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_monetary.CreateFromDiscriminatorValue); } }, - { "nodeClass", n => { NodeClass = n.GetCollectionOfEnumValues()?.AsList(); } }, - { "numericRange", n => { NumericRange = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_numericRange.CreateFromDiscriminatorValue); } }, - { "org", n => { Org = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "templates", n => { Templates = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("complexityRules", ComplexityRules); - writer.WriteObjectValue("dateFilters", DateFilters); - writer.WriteBoolValue("expandLargeValueOnRender", ExpandLargeValueOnRender); - writer.WriteCollectionOfPrimitiveValues("fileExtensions", FileExtensions); - writer.WriteIntValue("fileMaxSize", FileMaxSize); - writer.WriteObjectValue("identifier", Identifier); - writer.WriteEnumValue("ipAddressType", IpAddressType); - writer.WriteIntValue("maxCharacters", MaxCharacters); - writer.WriteObjectValue("monetary", Monetary); - writer.WriteCollectionOfEnumValues("nodeClass", NodeClass); - writer.WriteObjectValue("numericRange", NumericRange); - writer.WriteCollectionOfPrimitiveValues("org", Org); - writer.WriteCollectionOfPrimitiveValues("templates", Templates); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_complexityRules.cs b/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_complexityRules.cs deleted file mode 100644 index 5b85d1c..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_complexityRules.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm_fields_content_advancedSettings_complexityRules : 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 greaterOrEqualThanSixCharacters property - public bool? GreaterOrEqualThanSixCharacters { get; set; } - /// The mustContainOneInteger property - public bool? MustContainOneInteger { get; set; } - /// The mustContainOneLowercaseLetter property - public bool? MustContainOneLowercaseLetter { get; set; } - /// The mustContainOneUppercaseLetter property - public bool? MustContainOneUppercaseLetter { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm_fields_content_advancedSettings_complexityRules() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_complexityRules CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_complexityRules(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "greaterOrEqualThanSixCharacters", n => { GreaterOrEqualThanSixCharacters = n.GetBoolValue(); } }, - { "mustContainOneInteger", n => { MustContainOneInteger = n.GetBoolValue(); } }, - { "mustContainOneLowercaseLetter", n => { MustContainOneLowercaseLetter = n.GetBoolValue(); } }, - { "mustContainOneUppercaseLetter", n => { MustContainOneUppercaseLetter = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("greaterOrEqualThanSixCharacters", GreaterOrEqualThanSixCharacters); - writer.WriteBoolValue("mustContainOneInteger", MustContainOneInteger); - writer.WriteBoolValue("mustContainOneLowercaseLetter", MustContainOneLowercaseLetter); - writer.WriteBoolValue("mustContainOneUppercaseLetter", MustContainOneUppercaseLetter); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_dateFilters.cs b/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_dateFilters.cs deleted file mode 100644 index 0317488..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_dateFilters.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm_fields_content_advancedSettings_dateFilters : 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 selected property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Selected { get; set; } -#nullable restore -#else - public List Selected { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_dateFilters_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm_fields_content_advancedSettings_dateFilters() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_dateFilters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_dateFilters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "selected", n => { Selected = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("selected", Selected); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_dateFilters_type.cs b/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_dateFilters_type.cs deleted file mode 100644 index 6b705be..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_dateFilters_type.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm_fields_content_advancedSettings_dateFilters_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "INCLUDE")] - #pragma warning disable CS1591 - INCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "EXCLUDE")] - #pragma warning disable CS1591 - EXCLUDE, - #pragma warning restore CS1591 - [EnumMember(Value = "PAST_DATES_ONLY")] - #pragma warning disable CS1591 - PAST_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "FUTURE_DATES_ONLY")] - #pragma warning disable CS1591 - FUTURE_DATES_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "RANGE")] - #pragma warning disable CS1591 - RANGE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_identifier.cs b/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_identifier.cs deleted file mode 100644 index 5f9eb2e..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_identifier.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm_fields_content_advancedSettings_identifier : 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 assignTo property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_identifier_assignTo? AssignTo { get; set; } - /// The automaticGenerationEnabled property - public bool? AutomaticGenerationEnabled { get; set; } - /// The nextSequenceNumber property - public long? NextSequenceNumber { get; set; } - /// The prefix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Prefix { get; set; } -#nullable restore -#else - public string Prefix { get; set; } -#endif - /// The scope property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_identifier_scope? Scope { get; set; } - /// The suffix property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Suffix { get; set; } -#nullable restore -#else - public string Suffix { get; set; } -#endif - /// The type property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_identifier_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm_fields_content_advancedSettings_identifier() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_identifier CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_identifier(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "assignTo", n => { AssignTo = n.GetEnumValue(); } }, - { "automaticGenerationEnabled", n => { AutomaticGenerationEnabled = n.GetBoolValue(); } }, - { "nextSequenceNumber", n => { NextSequenceNumber = n.GetLongValue(); } }, - { "prefix", n => { Prefix = n.GetStringValue(); } }, - { "scope", n => { Scope = n.GetEnumValue(); } }, - { "suffix", n => { Suffix = n.GetStringValue(); } }, - { "type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignTo", AssignTo); - writer.WriteBoolValue("automaticGenerationEnabled", AutomaticGenerationEnabled); - writer.WriteLongValue("nextSequenceNumber", NextSequenceNumber); - writer.WriteStringValue("prefix", Prefix); - writer.WriteEnumValue("scope", Scope); - writer.WriteStringValue("suffix", Suffix); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_identifier_assignTo.cs b/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_identifier_assignTo.cs deleted file mode 100644 index 52017d8..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_identifier_assignTo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm_fields_content_advancedSettings_identifier_assignTo - #pragma warning restore CS1591 - { - [EnumMember(Value = "NEW_ASSETS_ONLY")] - #pragma warning disable CS1591 - NEW_ASSETS_ONLY, - #pragma warning restore CS1591 - [EnumMember(Value = "NEW_AND_EXISTING_ASSETS")] - #pragma warning disable CS1591 - NEW_AND_EXISTING_ASSETS, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_identifier_scope.cs b/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_identifier_scope.cs deleted file mode 100644 index 95da700..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_identifier_scope.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm_fields_content_advancedSettings_identifier_scope - #pragma warning restore CS1591 - { - [EnumMember(Value = "NONE")] - #pragma warning disable CS1591 - NONE, - #pragma warning restore CS1591 - [EnumMember(Value = "GLOBAL")] - #pragma warning disable CS1591 - GLOBAL, - #pragma warning restore CS1591 - [EnumMember(Value = "ORGANIZATION")] - #pragma warning disable CS1591 - ORGANIZATION, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_identifier_type.cs b/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_identifier_type.cs deleted file mode 100644 index b51cbdd..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_identifier_type.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm_fields_content_advancedSettings_identifier_type - #pragma warning restore CS1591 - { - [EnumMember(Value = "CUSTOM")] - #pragma warning disable CS1591 - CUSTOM, - #pragma warning restore CS1591 - [EnumMember(Value = "SEQUENCE")] - #pragma warning disable CS1591 - SEQUENCE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_ipAddressType.cs b/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_ipAddressType.cs deleted file mode 100644 index 60bc562..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_ipAddressType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm_fields_content_advancedSettings_ipAddressType - #pragma warning restore CS1591 - { - [EnumMember(Value = "ALL")] - #pragma warning disable CS1591 - ALL, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV4")] - #pragma warning disable CS1591 - IPV4, - #pragma warning restore CS1591 - [EnumMember(Value = "IPV6")] - #pragma warning disable CS1591 - IPV6, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_monetary.cs b/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_monetary.cs deleted file mode 100644 index 6ed3443..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_monetary.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm_fields_content_advancedSettings_monetary : 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 currency property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_monetary_currency? Currency { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm_fields_content_advancedSettings_monetary() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_monetary CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_monetary(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "currency", n => { Currency = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("currency", Currency); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_monetary_currency.cs b/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_monetary_currency.cs deleted file mode 100644 index aecdf3e..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_monetary_currency.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm_fields_content_advancedSettings_monetary_currency - #pragma warning restore CS1591 - { - [EnumMember(Value = "USD")] - #pragma warning disable CS1591 - USD, - #pragma warning restore CS1591 - [EnumMember(Value = "EUR")] - #pragma warning disable CS1591 - EUR, - #pragma warning restore CS1591 - [EnumMember(Value = "CAD")] - #pragma warning disable CS1591 - CAD, - #pragma warning restore CS1591 - [EnumMember(Value = "GBP")] - #pragma warning disable CS1591 - GBP, - #pragma warning restore CS1591 - [EnumMember(Value = "AUD")] - #pragma warning disable CS1591 - AUD, - #pragma warning restore CS1591 - [EnumMember(Value = "JPY")] - #pragma warning disable CS1591 - JPY, - #pragma warning restore CS1591 - [EnumMember(Value = "SEK")] - #pragma warning disable CS1591 - SEK, - #pragma warning restore CS1591 - [EnumMember(Value = "NOK")] - #pragma warning disable CS1591 - NOK, - #pragma warning restore CS1591 - [EnumMember(Value = "DKK")] - #pragma warning disable CS1591 - DKK, - #pragma warning restore CS1591 - [EnumMember(Value = "CHF")] - #pragma warning disable CS1591 - CHF, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_nodeClass.cs b/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_nodeClass.cs deleted file mode 100644 index 8b8a41d..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_nodeClass.cs +++ /dev/null @@ -1,144 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum TicketForm_fields_content_advancedSettings_nodeClass - #pragma warning restore CS1591 - { - [EnumMember(Value = "WINDOWS_SERVER")] - #pragma warning disable CS1591 - WINDOWS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "WINDOWS_WORKSTATION")] - #pragma warning disable CS1591 - WINDOWS_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_WORKSTATION")] - #pragma warning disable CS1591 - LINUX_WORKSTATION, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC")] - #pragma warning disable CS1591 - MAC, - #pragma warning restore CS1591 - [EnumMember(Value = "ANDROID")] - #pragma warning disable CS1591 - ANDROID, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IOS")] - #pragma warning disable CS1591 - APPLE_IOS, - #pragma warning restore CS1591 - [EnumMember(Value = "APPLE_IPADOS")] - #pragma warning disable CS1591 - APPLE_IPADOS, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_HOST")] - #pragma warning disable CS1591 - VMWARE_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "VMWARE_VM_GUEST")] - #pragma warning disable CS1591 - VMWARE_VM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_HOST")] - #pragma warning disable CS1591 - HYPERV_VMM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "HYPERV_VMM_GUEST")] - #pragma warning disable CS1591 - HYPERV_VMM_GUEST, - #pragma warning restore CS1591 - [EnumMember(Value = "LINUX_SERVER")] - #pragma warning disable CS1591 - LINUX_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "MAC_SERVER")] - #pragma warning disable CS1591 - MAC_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "CLOUD_MONITOR_TARGET")] - #pragma warning disable CS1591 - CLOUD_MONITOR_TARGET, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SWITCH")] - #pragma warning disable CS1591 - NMS_SWITCH, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_ROUTER")] - #pragma warning disable CS1591 - NMS_ROUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_FIREWALL")] - #pragma warning disable CS1591 - NMS_FIREWALL, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRIVATE_NETWORK_GATEWAY")] - #pragma warning disable CS1591 - NMS_PRIVATE_NETWORK_GATEWAY, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PRINTER")] - #pragma warning disable CS1591 - NMS_PRINTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SCANNER")] - #pragma warning disable CS1591 - NMS_SCANNER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_DIAL_MANAGER")] - #pragma warning disable CS1591 - NMS_DIAL_MANAGER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_WAP")] - #pragma warning disable CS1591 - NMS_WAP, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_IPSLA")] - #pragma warning disable CS1591 - NMS_IPSLA, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_COMPUTER")] - #pragma warning disable CS1591 - NMS_COMPUTER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VM_HOST")] - #pragma warning disable CS1591 - NMS_VM_HOST, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_APPLIANCE")] - #pragma warning disable CS1591 - NMS_APPLIANCE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_OTHER")] - #pragma warning disable CS1591 - NMS_OTHER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_SERVER")] - #pragma warning disable CS1591 - NMS_SERVER, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_PHONE")] - #pragma warning disable CS1591 - NMS_PHONE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_VIRTUAL_MACHINE")] - #pragma warning disable CS1591 - NMS_VIRTUAL_MACHINE, - #pragma warning restore CS1591 - [EnumMember(Value = "NMS_NETWORK_MANAGEMENT_AGENT")] - #pragma warning disable CS1591 - NMS_NETWORK_MANAGEMENT_AGENT, - #pragma warning restore CS1591 - [EnumMember(Value = "UNMANAGED_DEVICE")] - #pragma warning disable CS1591 - UNMANAGED_DEVICE, - #pragma warning restore CS1591 - [EnumMember(Value = "MANAGED_DEVICE")] - #pragma warning disable CS1591 - MANAGED_DEVICE, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_numericRange.cs b/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_numericRange.cs deleted file mode 100644 index 6d1ec9d..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_fields_content_advancedSettings_numericRange.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm_fields_content_advancedSettings_numericRange : 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 max property - public double? Max { get; set; } - /// The min property - public double? Min { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm_fields_content_advancedSettings_numericRange() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_numericRange CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_advancedSettings_numericRange(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "max", n => { Max = n.GetDoubleValue(); } }, - { "min", n => { Min = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("max", Max); - writer.WriteDoubleValue("min", Min); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/TicketForm_fields_content_endUserCustomization.cs b/V2/Ticketing/TicketForm/TicketForm_fields_content_endUserCustomization.cs deleted file mode 100644 index 882b8c4..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_fields_content_endUserCustomization.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm_fields_content_endUserCustomization : 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 description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm_fields_content_endUserCustomization() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_endUserCustomization CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_endUserCustomization(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "label", n => { Label = n.GetStringValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketForm/TicketForm_fields_content_values.cs b/V2/Ticketing/TicketForm/TicketForm_fields_content_values.cs deleted file mode 100644 index fae82d5..0000000 --- a/V2/Ticketing/TicketForm/TicketForm_fields_content_values.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.TicketForm -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TicketForm_fields_content_values : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// The active property - public bool? Active { get; set; } - /// 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 id property - public Guid? Id { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The system property - public bool? System { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TicketForm_fields_content_values() - { - 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::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_values CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketForm_fields_content_values(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetGuidValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "system", n => { System = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteGuidValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteBoolValue("system", System); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/TicketingRequestBuilder.cs b/V2/Ticketing/TicketingRequestBuilder.cs deleted file mode 100644 index 2d34155..0000000 --- a/V2/Ticketing/TicketingRequestBuilder.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Ticketing.AppUserContact; -using NinjaOne.Client.V2.Ticketing.Attributes; -using NinjaOne.Client.V2.Ticketing.Contact; -using NinjaOne.Client.V2.Ticketing.Statuses; -using NinjaOne.Client.V2.Ticketing.Ticket; -using NinjaOne.Client.V2.Ticketing.TicketForm; -using NinjaOne.Client.V2.Ticketing.Trigger; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Ticketing -{ - /// - /// Builds and executes requests for operations under \v2\ticketing - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TicketingRequestBuilder : BaseRequestBuilder - { - /// The appUserContact property - public global::NinjaOne.Client.V2.Ticketing.AppUserContact.AppUserContactRequestBuilder AppUserContact - { - get => new global::NinjaOne.Client.V2.Ticketing.AppUserContact.AppUserContactRequestBuilder(PathParameters, RequestAdapter); - } - /// The attributes property - public global::NinjaOne.Client.V2.Ticketing.Attributes.AttributesRequestBuilder Attributes - { - get => new global::NinjaOne.Client.V2.Ticketing.Attributes.AttributesRequestBuilder(PathParameters, RequestAdapter); - } - /// The contact property - public global::NinjaOne.Client.V2.Ticketing.Contact.ContactRequestBuilder Contact - { - get => new global::NinjaOne.Client.V2.Ticketing.Contact.ContactRequestBuilder(PathParameters, RequestAdapter); - } - /// The statuses property - public global::NinjaOne.Client.V2.Ticketing.Statuses.StatusesRequestBuilder Statuses - { - get => new global::NinjaOne.Client.V2.Ticketing.Statuses.StatusesRequestBuilder(PathParameters, RequestAdapter); - } - /// The ticket property - public global::NinjaOne.Client.V2.Ticketing.Ticket.TicketRequestBuilder Ticket - { - get => new global::NinjaOne.Client.V2.Ticketing.Ticket.TicketRequestBuilder(PathParameters, RequestAdapter); - } - /// The ticketForm property - public global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketFormRequestBuilder TicketForm - { - get => new global::NinjaOne.Client.V2.Ticketing.TicketForm.TicketFormRequestBuilder(PathParameters, RequestAdapter); - } - /// The trigger property - public global::NinjaOne.Client.V2.Ticketing.Trigger.TriggerRequestBuilder Trigger - { - get => new global::NinjaOne.Client.V2.Ticketing.Trigger.TriggerRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public TicketingRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TicketingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/BoardRequestBuilder.cs b/V2/Ticketing/Trigger/Board/BoardRequestBuilder.cs deleted file mode 100644 index 75a49c4..0000000 --- a/V2/Ticketing/Trigger/Board/BoardRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Ticketing.Trigger.Board.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board -{ - /// - /// Builds and executes requests for operations under \v2\ticketing\trigger\board - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class BoardRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.ticketing.trigger.board.item collection - /// Unique identifier of the item - /// A - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.WithBoardItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("boardId", position); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.WithBoardItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.ticketing.trigger.board.item collection - /// Unique identifier of the item - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.WithBoardItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("boardId", position); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.WithBoardItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public BoardRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/trigger/board", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public BoardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/trigger/board", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError.cs b/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError.cs deleted file mode 100644 index 9d7c391..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Run4XXError : 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 data property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DataEscaped { get; set; } -#nullable restore -#else - public List DataEscaped { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The metadata property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata? Metadata { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata Metadata { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Run4XXError() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "data", n => { DataEscaped = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_data.CreateFromDiscriminatorValue)?.AsList(); } }, - { "metadata", n => { Metadata = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("data", DataEscaped); - writer.WriteObjectValue("metadata", Metadata); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_data.cs b/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_data.cs deleted file mode 100644 index d551b40..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_data.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Run4XXError_data : 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. - /// - public Run4XXError_data() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_data CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_data(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata.cs b/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata.cs deleted file mode 100644 index 6f3cff8..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata.cs +++ /dev/null @@ -1,129 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Run4XXError_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; } - /// The allColumns property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AllColumns { get; set; } -#nullable restore -#else - public List AllColumns { get; set; } -#endif - /// The allRequiredColumns property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AllRequiredColumns { get; set; } -#nullable restore -#else - public List AllRequiredColumns { get; set; } -#endif - /// The attributes property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata_attributes? Attributes { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata_attributes Attributes { get; set; } -#endif - /// The columnNamesForExporting property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ColumnNamesForExporting { get; set; } -#nullable restore -#else - public List ColumnNamesForExporting { get; set; } -#endif - /// The columns property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Columns { get; set; } -#nullable restore -#else - public List Columns { get; set; } -#endif - /// The filters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Filters { get; set; } -#nullable restore -#else - public List Filters { get; set; } -#endif - /// The lastCursorId property - public int? LastCursorId { get; set; } - /// The sortBy property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? SortBy { get; set; } -#nullable restore -#else - public List SortBy { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Run4XXError_metadata() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "allColumns", n => { AllColumns = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "allRequiredColumns", n => { AllRequiredColumns = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "attributes", n => { Attributes = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata_attributes.CreateFromDiscriminatorValue); } }, - { "columnNamesForExporting", n => { ColumnNamesForExporting = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "columns", n => { Columns = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "filters", n => { Filters = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata_filters.CreateFromDiscriminatorValue)?.AsList(); } }, - { "lastCursorId", n => { LastCursorId = n.GetIntValue(); } }, - { "sortBy", n => { SortBy = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata_sortBy.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("allColumns", AllColumns); - writer.WriteCollectionOfPrimitiveValues("allRequiredColumns", AllRequiredColumns); - writer.WriteObjectValue("attributes", Attributes); - writer.WriteCollectionOfPrimitiveValues("columnNamesForExporting", ColumnNamesForExporting); - writer.WriteCollectionOfPrimitiveValues("columns", Columns); - writer.WriteCollectionOfObjectValues("filters", Filters); - writer.WriteIntValue("lastCursorId", LastCursorId); - writer.WriteCollectionOfObjectValues("sortBy", SortBy); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata_attributes.cs b/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata_attributes.cs deleted file mode 100644 index 72237ec..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata_attributes.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Run4XXError_metadata_attributes : 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. - /// - public Run4XXError_metadata_attributes() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata_attributes CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata_attributes(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata_filters.cs b/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata_filters.cs deleted file mode 100644 index c29a9f1..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata_filters.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Run4XXError_metadata_filters : 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 field property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Field { get; set; } -#nullable restore -#else - public string Field { get; set; } -#endif - /// The operator property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Operator { get; set; } -#nullable restore -#else - public string Operator { get; set; } -#endif - /// The params property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata_filters_params? Params { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata_filters_params Params { get; set; } -#endif - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Run4XXError_metadata_filters() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata_filters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata_filters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "field", n => { Field = n.GetStringValue(); } }, - { "operator", n => { Operator = n.GetStringValue(); } }, - { "params", n => { Params = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata_filters_params.CreateFromDiscriminatorValue); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("field", Field); - writer.WriteStringValue("operator", Operator); - writer.WriteObjectValue("params", Params); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata_filters_params.cs b/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata_filters_params.cs deleted file mode 100644 index 93f1fee..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata_filters_params.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Run4XXError_metadata_filters_params : 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 repeat property - public bool? Repeat { get; set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Run4XXError_metadata_filters_params() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata_filters_params CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata_filters_params(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "repeat", n => { Repeat = n.GetBoolValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("repeat", Repeat); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata_sortBy.cs b/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata_sortBy.cs deleted file mode 100644 index 59bf6ea..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata_sortBy.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Run4XXError_metadata_sortBy : 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 direction property - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata_sortBy_direction? Direction { get; set; } - /// The field property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Field { get; set; } -#nullable restore -#else - public string Field { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Run4XXError_metadata_sortBy() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata_sortBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError_metadata_sortBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "direction", n => { Direction = n.GetEnumValue(); } }, - { "field", n => { Field = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("direction", Direction); - writer.WriteStringValue("field", Field); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata_sortBy_direction.cs b/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata_sortBy_direction.cs deleted file mode 100644 index ca0f908..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/Run4XXError_metadata_sortBy_direction.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Run4XXError_metadata_sortBy_direction - #pragma warning restore CS1591 - { - [EnumMember(Value = "ASC")] - #pragma warning disable CS1591 - ASC, - #pragma warning restore CS1591 - [EnumMember(Value = "DESC")] - #pragma warning disable CS1591 - DESC, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError.cs b/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError.cs deleted file mode 100644 index ec349eb..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Run5XXError : 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 data property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DataEscaped { get; set; } -#nullable restore -#else - public List DataEscaped { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The metadata property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata? Metadata { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata Metadata { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Run5XXError() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "data", n => { DataEscaped = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_data.CreateFromDiscriminatorValue)?.AsList(); } }, - { "metadata", n => { Metadata = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("data", DataEscaped); - writer.WriteObjectValue("metadata", Metadata); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_data.cs b/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_data.cs deleted file mode 100644 index 9bbed74..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_data.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Run5XXError_data : 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. - /// - public Run5XXError_data() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_data CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_data(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata.cs b/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata.cs deleted file mode 100644 index 11feca0..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata.cs +++ /dev/null @@ -1,129 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Run5XXError_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; } - /// The allColumns property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AllColumns { get; set; } -#nullable restore -#else - public List AllColumns { get; set; } -#endif - /// The allRequiredColumns property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AllRequiredColumns { get; set; } -#nullable restore -#else - public List AllRequiredColumns { get; set; } -#endif - /// The attributes property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata_attributes? Attributes { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata_attributes Attributes { get; set; } -#endif - /// The columnNamesForExporting property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ColumnNamesForExporting { get; set; } -#nullable restore -#else - public List ColumnNamesForExporting { get; set; } -#endif - /// The columns property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Columns { get; set; } -#nullable restore -#else - public List Columns { get; set; } -#endif - /// The filters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Filters { get; set; } -#nullable restore -#else - public List Filters { get; set; } -#endif - /// The lastCursorId property - public int? LastCursorId { get; set; } - /// The sortBy property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? SortBy { get; set; } -#nullable restore -#else - public List SortBy { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Run5XXError_metadata() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "allColumns", n => { AllColumns = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "allRequiredColumns", n => { AllRequiredColumns = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "attributes", n => { Attributes = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata_attributes.CreateFromDiscriminatorValue); } }, - { "columnNamesForExporting", n => { ColumnNamesForExporting = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "columns", n => { Columns = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "filters", n => { Filters = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata_filters.CreateFromDiscriminatorValue)?.AsList(); } }, - { "lastCursorId", n => { LastCursorId = n.GetIntValue(); } }, - { "sortBy", n => { SortBy = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata_sortBy.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("allColumns", AllColumns); - writer.WriteCollectionOfPrimitiveValues("allRequiredColumns", AllRequiredColumns); - writer.WriteObjectValue("attributes", Attributes); - writer.WriteCollectionOfPrimitiveValues("columnNamesForExporting", ColumnNamesForExporting); - writer.WriteCollectionOfPrimitiveValues("columns", Columns); - writer.WriteCollectionOfObjectValues("filters", Filters); - writer.WriteIntValue("lastCursorId", LastCursorId); - writer.WriteCollectionOfObjectValues("sortBy", SortBy); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata_attributes.cs b/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata_attributes.cs deleted file mode 100644 index 296536c..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata_attributes.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Run5XXError_metadata_attributes : 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. - /// - public Run5XXError_metadata_attributes() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata_attributes CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata_attributes(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata_filters.cs b/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata_filters.cs deleted file mode 100644 index 1d71aca..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata_filters.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Run5XXError_metadata_filters : 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 field property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Field { get; set; } -#nullable restore -#else - public string Field { get; set; } -#endif - /// The operator property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Operator { get; set; } -#nullable restore -#else - public string Operator { get; set; } -#endif - /// The params property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata_filters_params? Params { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata_filters_params Params { get; set; } -#endif - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Run5XXError_metadata_filters() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata_filters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata_filters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "field", n => { Field = n.GetStringValue(); } }, - { "operator", n => { Operator = n.GetStringValue(); } }, - { "params", n => { Params = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata_filters_params.CreateFromDiscriminatorValue); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("field", Field); - writer.WriteStringValue("operator", Operator); - writer.WriteObjectValue("params", Params); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata_filters_params.cs b/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata_filters_params.cs deleted file mode 100644 index 0f70b15..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata_filters_params.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Run5XXError_metadata_filters_params : 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 repeat property - public bool? Repeat { get; set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Run5XXError_metadata_filters_params() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata_filters_params CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata_filters_params(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "repeat", n => { Repeat = n.GetBoolValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("repeat", Repeat); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata_sortBy.cs b/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata_sortBy.cs deleted file mode 100644 index aff02db..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata_sortBy.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Run5XXError_metadata_sortBy : 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 direction property - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata_sortBy_direction? Direction { get; set; } - /// The field property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Field { get; set; } -#nullable restore -#else - public string Field { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Run5XXError_metadata_sortBy() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata_sortBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError_metadata_sortBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "direction", n => { Direction = n.GetEnumValue(); } }, - { "field", n => { Field = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("direction", Direction); - writer.WriteStringValue("field", Field); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata_sortBy_direction.cs b/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata_sortBy_direction.cs deleted file mode 100644 index 23af8df..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/Run5XXError_metadata_sortBy_direction.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Run5XXError_metadata_sortBy_direction - #pragma warning restore CS1591 - { - [EnumMember(Value = "ASC")] - #pragma warning disable CS1591 - ASC, - #pragma warning restore CS1591 - [EnumMember(Value = "DESC")] - #pragma warning disable CS1591 - DESC, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Trigger/Board/Item/Run/RunPostRequestBody.cs b/V2/Ticketing/Trigger/Board/Item/Run/RunPostRequestBody.cs deleted file mode 100644 index 17f8611..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/RunPostRequestBody.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RunPostRequestBody : 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 filters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Filters { get; set; } -#nullable restore -#else - public List Filters { get; set; } -#endif - /// The includeColumns property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? IncludeColumns { get; set; } -#nullable restore -#else - public List IncludeColumns { get; set; } -#endif - /// The lastCursorId property - public int? LastCursorId { get; set; } - /// The pageSize property - public int? PageSize { get; set; } - /// The searchCriteria property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SearchCriteria { get; set; } -#nullable restore -#else - public string SearchCriteria { get; set; } -#endif - /// The sortBy property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? SortBy { get; set; } -#nullable restore -#else - public List SortBy { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RunPostRequestBody() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "filters", n => { Filters = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody_filters.CreateFromDiscriminatorValue)?.AsList(); } }, - { "includeColumns", n => { IncludeColumns = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "lastCursorId", n => { LastCursorId = n.GetIntValue(); } }, - { "pageSize", n => { PageSize = n.GetIntValue(); } }, - { "searchCriteria", n => { SearchCriteria = n.GetStringValue(); } }, - { "sortBy", n => { SortBy = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody_sortBy.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("filters", Filters); - writer.WriteCollectionOfPrimitiveValues("includeColumns", IncludeColumns); - writer.WriteIntValue("lastCursorId", LastCursorId); - writer.WriteIntValue("pageSize", PageSize); - writer.WriteStringValue("searchCriteria", SearchCriteria); - writer.WriteCollectionOfObjectValues("sortBy", SortBy); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/RunPostRequestBody_filters.cs b/V2/Ticketing/Trigger/Board/Item/Run/RunPostRequestBody_filters.cs deleted file mode 100644 index d1101e1..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/RunPostRequestBody_filters.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RunPostRequestBody_filters : 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 field property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Field { get; set; } -#nullable restore -#else - public string Field { get; set; } -#endif - /// The operator property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Operator { get; set; } -#nullable restore -#else - public string Operator { get; set; } -#endif - /// The params property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody_filters_params? Params { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody_filters_params Params { get; set; } -#endif - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RunPostRequestBody_filters() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody_filters CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody_filters(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "field", n => { Field = n.GetStringValue(); } }, - { "operator", n => { Operator = n.GetStringValue(); } }, - { "params", n => { Params = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody_filters_params.CreateFromDiscriminatorValue); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("field", Field); - writer.WriteStringValue("operator", Operator); - writer.WriteObjectValue("params", Params); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/RunPostRequestBody_filters_params.cs b/V2/Ticketing/Trigger/Board/Item/Run/RunPostRequestBody_filters_params.cs deleted file mode 100644 index d99c53d..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/RunPostRequestBody_filters_params.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RunPostRequestBody_filters_params : 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 repeat property - public bool? Repeat { get; set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RunPostRequestBody_filters_params() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody_filters_params CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody_filters_params(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "repeat", n => { Repeat = n.GetBoolValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("repeat", Repeat); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/RunPostRequestBody_sortBy.cs b/V2/Ticketing/Trigger/Board/Item/Run/RunPostRequestBody_sortBy.cs deleted file mode 100644 index 36b09b0..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/RunPostRequestBody_sortBy.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RunPostRequestBody_sortBy : 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 direction property - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody_sortBy_direction? Direction { get; set; } - /// The field property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Field { get; set; } -#nullable restore -#else - public string Field { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RunPostRequestBody_sortBy() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody_sortBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody_sortBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "direction", n => { Direction = n.GetEnumValue(); } }, - { "field", n => { Field = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("direction", Direction); - writer.WriteStringValue("field", Field); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/Run/RunPostRequestBody_sortBy_direction.cs b/V2/Ticketing/Trigger/Board/Item/Run/RunPostRequestBody_sortBy_direction.cs deleted file mode 100644 index 5494360..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/RunPostRequestBody_sortBy_direction.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum RunPostRequestBody_sortBy_direction - #pragma warning restore CS1591 - { - [EnumMember(Value = "ASC")] - #pragma warning disable CS1591 - ASC, - #pragma warning restore CS1591 - [EnumMember(Value = "DESC")] - #pragma warning disable CS1591 - DESC, - #pragma warning restore CS1591 - } -} diff --git a/V2/Ticketing/Trigger/Board/Item/Run/RunRequestBuilder.cs b/V2/Ticketing/Trigger/Board/Item/Run/RunRequestBuilder.cs deleted file mode 100644 index e3ad5a4..0000000 --- a/V2/Ticketing/Trigger/Board/Item/Run/RunRequestBuilder.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run -{ - /// - /// Builds and executes requests for operations under \v2\ticketing\trigger\board\{boardId}\run - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RunRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RunRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/trigger/board/{boardId}/run", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RunRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/trigger/board/{boardId}/run", rawUrl) - { - } - /// - /// Run a board. Returns list of tickets matching the board condition and filters. Allows pagination - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.Run5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Run a board. Returns list of tickets matching the board condition and filters. Allows pagination - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RunRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Board/Item/WithBoardItemRequestBuilder.cs b/V2/Ticketing/Trigger/Board/Item/WithBoardItemRequestBuilder.cs deleted file mode 100644 index 406bfc6..0000000 --- a/V2/Ticketing/Trigger/Board/Item/WithBoardItemRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Board.Item -{ - /// - /// Builds and executes requests for operations under \v2\ticketing\trigger\board\{boardId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithBoardItemRequestBuilder : BaseRequestBuilder - { - /// The run property - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunRequestBuilder Run - { - get => new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.Item.Run.RunRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithBoardItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/trigger/board/{boardId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithBoardItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/trigger/board/{boardId}", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Boards/Boards.cs b/V2/Ticketing/Trigger/Boards/Boards.cs deleted file mode 100644 index 0495bef..0000000 --- a/V2/Ticketing/Trigger/Boards/Boards.cs +++ /dev/null @@ -1,132 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Boards -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Boards : 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 columns property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Columns { get; set; } -#nullable restore -#else - public List Columns { get; set; } -#endif - /// The conditions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions? Conditions { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions Conditions { get; set; } -#endif - /// The createTime property - public double? CreateTime { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property - public int? Id { get; set; } - /// The primary error message. - public override string Message { get => base.Message; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The sortBy property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? SortBy { get; set; } -#nullable restore -#else - public List SortBy { get; set; } -#endif - /// The system property - public bool? System { get; set; } - /// The ticketCount property - public int? TicketCount { get; set; } - /// The uid property - public Guid? Uid { get; set; } - /// The updateTime property - public double? UpdateTime { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Boards() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "columns", n => { Columns = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "conditions", n => { Conditions = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions.CreateFromDiscriminatorValue); } }, - { "createTime", n => { CreateTime = n.GetDoubleValue(); } }, - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "sortBy", n => { SortBy = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_sortBy.CreateFromDiscriminatorValue)?.AsList(); } }, - { "system", n => { System = n.GetBoolValue(); } }, - { "ticketCount", n => { TicketCount = n.GetIntValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "updateTime", n => { UpdateTime = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("columns", Columns); - writer.WriteObjectValue("conditions", Conditions); - writer.WriteDoubleValue("createTime", CreateTime); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfObjectValues("sortBy", SortBy); - writer.WriteBoolValue("system", System); - writer.WriteIntValue("ticketCount", TicketCount); - writer.WriteGuidValue("uid", Uid); - writer.WriteDoubleValue("updateTime", UpdateTime); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Boards/BoardsRequestBuilder.cs b/V2/Ticketing/Trigger/Boards/BoardsRequestBuilder.cs deleted file mode 100644 index 955f5fd..0000000 --- a/V2/Ticketing/Trigger/Boards/BoardsRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Boards -{ - /// - /// Builds and executes requests for operations under \v2\ticketing\trigger\boards - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class BoardsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public BoardsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/trigger/boards", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public BoardsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/trigger/boards", rawUrl) - { - } - /// - /// Returns list of ticketing boards - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of ticketing boards - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.BoardsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.BoardsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class BoardsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Boards/Boards_conditions.cs b/V2/Ticketing/Trigger/Boards/Boards_conditions.cs deleted file mode 100644 index 572890b..0000000 --- a/V2/Ticketing/Trigger/Boards/Boards_conditions.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Boards -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Boards_conditions : 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 all property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? All { get; set; } -#nullable restore -#else - public List All { get; set; } -#endif - /// The any property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Any { get; set; } -#nullable restore -#else - public List Any { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Boards_conditions() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "all", n => { All = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions_all.CreateFromDiscriminatorValue)?.AsList(); } }, - { "any", n => { Any = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions_any.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("all", All); - writer.WriteCollectionOfObjectValues("any", Any); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Boards/Boards_conditions_all.cs b/V2/Ticketing/Trigger/Boards/Boards_conditions_all.cs deleted file mode 100644 index 0a76c7f..0000000 --- a/V2/Ticketing/Trigger/Boards/Boards_conditions_all.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Boards -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Boards_conditions_all : 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 field property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Field { get; set; } -#nullable restore -#else - public string Field { get; set; } -#endif - /// The operator property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Operator { get; set; } -#nullable restore -#else - public string Operator { get; set; } -#endif - /// The params property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions_all_params? Params { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions_all_params Params { get; set; } -#endif - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Boards_conditions_all() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions_all CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions_all(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "field", n => { Field = n.GetStringValue(); } }, - { "operator", n => { Operator = n.GetStringValue(); } }, - { "params", n => { Params = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions_all_params.CreateFromDiscriminatorValue); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("field", Field); - writer.WriteStringValue("operator", Operator); - writer.WriteObjectValue("params", Params); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Boards/Boards_conditions_all_params.cs b/V2/Ticketing/Trigger/Boards/Boards_conditions_all_params.cs deleted file mode 100644 index b2bd399..0000000 --- a/V2/Ticketing/Trigger/Boards/Boards_conditions_all_params.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Boards -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Boards_conditions_all_params : 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 repeat property - public bool? Repeat { get; set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Boards_conditions_all_params() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions_all_params CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions_all_params(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "repeat", n => { Repeat = n.GetBoolValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("repeat", Repeat); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Boards/Boards_conditions_any.cs b/V2/Ticketing/Trigger/Boards/Boards_conditions_any.cs deleted file mode 100644 index 6cb42ab..0000000 --- a/V2/Ticketing/Trigger/Boards/Boards_conditions_any.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Boards -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Boards_conditions_any : 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 field property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Field { get; set; } -#nullable restore -#else - public string Field { get; set; } -#endif - /// The operator property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Operator { get; set; } -#nullable restore -#else - public string Operator { get; set; } -#endif - /// The params property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions_any_params? Params { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions_any_params Params { get; set; } -#endif - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Boards_conditions_any() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions_any CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions_any(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "field", n => { Field = n.GetStringValue(); } }, - { "operator", n => { Operator = n.GetStringValue(); } }, - { "params", n => { Params = n.GetObjectValue(global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions_any_params.CreateFromDiscriminatorValue); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("field", Field); - writer.WriteStringValue("operator", Operator); - writer.WriteObjectValue("params", Params); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Boards/Boards_conditions_any_params.cs b/V2/Ticketing/Trigger/Boards/Boards_conditions_any_params.cs deleted file mode 100644 index 0c4dc72..0000000 --- a/V2/Ticketing/Trigger/Boards/Boards_conditions_any_params.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Boards -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Boards_conditions_any_params : 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 repeat property - public bool? Repeat { get; set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Boards_conditions_any_params() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions_any_params CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_conditions_any_params(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "repeat", n => { Repeat = n.GetBoolValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("repeat", Repeat); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/Boards/Boards_sortBy.cs b/V2/Ticketing/Trigger/Boards/Boards_sortBy.cs deleted file mode 100644 index 27e0dcc..0000000 --- a/V2/Ticketing/Trigger/Boards/Boards_sortBy.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger.Boards -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Boards_sortBy : 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. - /// - public Boards_sortBy() - { - 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::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_sortBy CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.Boards_sortBy(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Ticketing/Trigger/TriggerRequestBuilder.cs b/V2/Ticketing/Trigger/TriggerRequestBuilder.cs deleted file mode 100644 index ee568c0..0000000 --- a/V2/Ticketing/Trigger/TriggerRequestBuilder.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Ticketing.Trigger.Board; -using NinjaOne.Client.V2.Ticketing.Trigger.Boards; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Ticketing.Trigger -{ - /// - /// Builds and executes requests for operations under \v2\ticketing\trigger - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TriggerRequestBuilder : BaseRequestBuilder - { - /// The board property - public global::NinjaOne.Client.V2.Ticketing.Trigger.Board.BoardRequestBuilder Board - { - get => new global::NinjaOne.Client.V2.Ticketing.Trigger.Board.BoardRequestBuilder(PathParameters, RequestAdapter); - } - /// The boards property - public global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.BoardsRequestBuilder Boards - { - get => new global::NinjaOne.Client.V2.Ticketing.Trigger.Boards.BoardsRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public TriggerRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/trigger", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TriggerRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/ticketing/trigger", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/EndUser/EndUserRequestBuilder.cs b/V2/User/EndUser/EndUserRequestBuilder.cs deleted file mode 100644 index e44d641..0000000 --- a/V2/User/EndUser/EndUserRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.User.EndUser.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.User.EndUser -{ - /// - /// Builds and executes requests for operations under \v2\user\end-user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUserRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.user.endUser.item collection - /// End user identifier - /// A - public global::NinjaOne.Client.V2.User.EndUser.Item.EndUserItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new global::NinjaOne.Client.V2.User.EndUser.Item.EndUserItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.user.endUser.item collection - /// End user identifier - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.User.EndUser.Item.EndUserItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("id", position); - return new global::NinjaOne.Client.V2.User.EndUser.Item.EndUserItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public EndUserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/end-user", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public EndUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/end-user", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/EndUser/Item/CustomFields/CustomFields4XXError.cs b/V2/User/EndUser/Item/CustomFields/CustomFields4XXError.cs deleted file mode 100644 index cc0875f..0000000 --- a/V2/User/EndUser/Item/CustomFields/CustomFields4XXError.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.EndUser.Item.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFields4XXError : 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 primary error message. - public override string Message { get => base.Message; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields4XXError() - { - 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::NinjaOne.Client.V2.User.EndUser.Item.CustomFields.CustomFields4XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.EndUser.Item.CustomFields.CustomFields4XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/EndUser/Item/CustomFields/CustomFields5XXError.cs b/V2/User/EndUser/Item/CustomFields/CustomFields5XXError.cs deleted file mode 100644 index afd5bea..0000000 --- a/V2/User/EndUser/Item/CustomFields/CustomFields5XXError.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.EndUser.Item.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFields5XXError : 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 primary error message. - public override string Message { get => base.Message; } - /// - /// Instantiates a new and sets the default values. - /// - public CustomFields5XXError() - { - 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::NinjaOne.Client.V2.User.EndUser.Item.CustomFields.CustomFields5XXError CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.EndUser.Item.CustomFields.CustomFields5XXError(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/EndUser/Item/CustomFields/CustomFieldsPatchRequestBody.cs b/V2/User/EndUser/Item/CustomFields/CustomFieldsPatchRequestBody.cs deleted file mode 100644 index 612ec88..0000000 --- a/V2/User/EndUser/Item/CustomFields/CustomFieldsPatchRequestBody.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.EndUser.Item.CustomFields -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class CustomFieldsPatchRequestBody : 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. - /// - public CustomFieldsPatchRequestBody() - { - 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::NinjaOne.Client.V2.User.EndUser.Item.CustomFields.CustomFieldsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.EndUser.Item.CustomFields.CustomFieldsPatchRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/EndUser/Item/CustomFields/CustomFieldsRequestBuilder.cs b/V2/User/EndUser/Item/CustomFields/CustomFieldsRequestBuilder.cs deleted file mode 100644 index 98d604c..0000000 --- a/V2/User/EndUser/Item/CustomFields/CustomFieldsRequestBuilder.cs +++ /dev/null @@ -1,147 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.User.EndUser.Item.CustomFields -{ - /// - /// Builds and executes requests for operations under \v2\user\end-user\{id}\custom-fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public CustomFieldsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/end-user/{id}/custom-fields", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public CustomFieldsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/end-user/{id}/custom-fields", rawUrl) - { - } - /// - /// Returns list of end user custom fields - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX status code - /// When receiving a 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "4XX", global::NinjaOne.Client.V2.User.EndUser.Item.CustomFields.CustomFields4XXError.CreateFromDiscriminatorValue }, - { "5XX", global::NinjaOne.Client.V2.User.EndUser.Item.CustomFields.CustomFields5XXError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Update end user custom field values - /// - /// A - /// The request body - /// 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 PatchAsync(global::NinjaOne.Client.V2.User.EndUser.Item.CustomFields.CustomFieldsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::NinjaOne.Client.V2.User.EndUser.Item.CustomFields.CustomFieldsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of end user custom fields - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Update end user custom field values - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.User.EndUser.Item.CustomFields.CustomFieldsPatchRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.User.EndUser.Item.CustomFields.CustomFieldsPatchRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.User.EndUser.Item.CustomFields.CustomFieldsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.User.EndUser.Item.CustomFields.CustomFieldsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CustomFieldsRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/EndUser/Item/EndUserGetResponse.cs b/V2/User/EndUser/Item/EndUserGetResponse.cs deleted file mode 100644 index 0daca9b..0000000 --- a/V2/User/EndUser/Item/EndUserGetResponse.cs +++ /dev/null @@ -1,171 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.EndUser.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class EndUserGetResponse : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Device IDs which user has access to -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AccessibleDeviceIds { get; set; } -#nullable restore -#else - public List AccessibleDeviceIds { get; set; } -#endif - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Authentication type, NATIVE or SSO -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? AuthType { get; set; } -#nullable restore -#else - public string AuthType { get; set; } -#endif - /// Email address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// User access status - public bool? Enabled { get; set; } - /// First name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// Has full portal access - public bool? FullPortalAccess { get; set; } - /// User identifier - public int? Id { get; set; } - /// User invitation status - public global::NinjaOne.Client.V2.User.EndUser.Item.EndUserGetResponse_invitationStatus? InvitationStatus { get; set; } - /// Last name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// At least one MFA method is configured - public bool? MfaConfigured { get; set; } - /// Must change password during next login - public bool? MustChangePw { get; set; } - /// Identifier of organization for end-users - public int? OrganizationId { get; set; } - /// Phone number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the user. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// User created by SCIM - public bool? ScimUser { get; set; } - /// User universally unique identifier - public Guid? Uid { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public EndUserGetResponse() - { - 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::NinjaOne.Client.V2.User.EndUser.Item.EndUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.EndUser.Item.EndUserGetResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "accessibleDeviceIds", n => { AccessibleDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "authType", n => { AuthType = n.GetStringValue(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "fullPortalAccess", n => { FullPortalAccess = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "scimUser", n => { ScimUser = n.GetBoolValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("accessibleDeviceIds", AccessibleDeviceIds); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteStringValue("authType", AuthType); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteStringValue("firstName", FirstName); - writer.WriteBoolValue("fullPortalAccess", FullPortalAccess); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteBoolValue("scimUser", ScimUser); - writer.WriteGuidValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/EndUser/Item/EndUserGetResponse_invitationStatus.cs b/V2/User/EndUser/Item/EndUserGetResponse_invitationStatus.cs deleted file mode 100644 index eb6cde6..0000000 --- a/V2/User/EndUser/Item/EndUserGetResponse_invitationStatus.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.User.EndUser.Item -{ - /// User invitation status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum EndUserGetResponse_invitationStatus - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/User/EndUser/Item/EndUserItemRequestBuilder.cs b/V2/User/EndUser/Item/EndUserItemRequestBuilder.cs deleted file mode 100644 index 8ff36c7..0000000 --- a/V2/User/EndUser/Item/EndUserItemRequestBuilder.cs +++ /dev/null @@ -1,230 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.User.EndUser.Item.CustomFields; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.User.EndUser.Item -{ - /// - /// Builds and executes requests for operations under \v2\user\end-user\{id} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUserItemRequestBuilder : BaseRequestBuilder - { - /// The customFields property - public global::NinjaOne.Client.V2.User.EndUser.Item.CustomFields.CustomFieldsRequestBuilder CustomFields - { - get => new global::NinjaOne.Client.V2.User.EndUser.Item.CustomFields.CustomFieldsRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public EndUserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/end-user/{id}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public EndUserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/end-user/{id}", rawUrl) - { - } - /// - /// Delete an end user - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get details for a specific end user identifier - /// - /// 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 GetAsEndUserGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsEndUserGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.User.EndUser.Item.EndUserGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get details for a specific end user identifier - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use GetAsEndUserGetResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.User.EndUser.Item.EndUserResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Update a specific end user by their ID - /// - /// A - /// Patch end user request payload - /// 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 PatchAsEndUserPatchResponseAsync(global::NinjaOne.Client.V2.User.EndUser.Item.EndUserPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsEndUserPatchResponseAsync(global::NinjaOne.Client.V2.User.EndUser.Item.EndUserPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.User.EndUser.Item.EndUserPatchResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Update a specific end user by their ID - /// - /// A - /// Patch end user request payload - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PatchAsEndUserPatchResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PatchAsync(global::NinjaOne.Client.V2.User.EndUser.Item.EndUserPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::NinjaOne.Client.V2.User.EndUser.Item.EndUserPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.User.EndUser.Item.EndUserResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete an end user - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Get details for a specific end user identifier - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Update a specific end user by their ID - /// - /// A - /// Patch end user request payload - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.User.EndUser.Item.EndUserPatchRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.User.EndUser.Item.EndUserPatchRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.User.EndUser.Item.EndUserItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.User.EndUser.Item.EndUserItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUserItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUserItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUserItemRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/EndUser/Item/EndUserPatchRequestBody.cs b/V2/User/EndUser/Item/EndUserPatchRequestBody.cs deleted file mode 100644 index 783c1db..0000000 --- a/V2/User/EndUser/Item/EndUserPatchRequestBody.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.EndUser.Item -{ - /// - /// Patch end user request payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUserPatchRequestBody : 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; } - /// First name should be between 1 and 150 characters -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// Gives end user full portal access - public bool? FullPortalAccess { get; set; } - /// Last name should be between 1 and 150 characters -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public EndUserPatchRequestBody() - { - 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::NinjaOne.Client.V2.User.EndUser.Item.EndUserPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.EndUser.Item.EndUserPatchRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "fullPortalAccess", n => { FullPortalAccess = n.GetBoolValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("firstName", FirstName); - writer.WriteBoolValue("fullPortalAccess", FullPortalAccess); - writer.WriteStringValue("lastName", LastName); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/EndUser/Item/EndUserPatchResponse.cs b/V2/User/EndUser/Item/EndUserPatchResponse.cs deleted file mode 100644 index 1267423..0000000 --- a/V2/User/EndUser/Item/EndUserPatchResponse.cs +++ /dev/null @@ -1,171 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.EndUser.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class EndUserPatchResponse : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Device IDs which user has access to -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AccessibleDeviceIds { get; set; } -#nullable restore -#else - public List AccessibleDeviceIds { get; set; } -#endif - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Authentication type, NATIVE or SSO -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? AuthType { get; set; } -#nullable restore -#else - public string AuthType { get; set; } -#endif - /// Email address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// User access status - public bool? Enabled { get; set; } - /// First name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// Has full portal access - public bool? FullPortalAccess { get; set; } - /// User identifier - public int? Id { get; set; } - /// User invitation status - public global::NinjaOne.Client.V2.User.EndUser.Item.EndUserPatchResponse_invitationStatus? InvitationStatus { get; set; } - /// Last name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// At least one MFA method is configured - public bool? MfaConfigured { get; set; } - /// Must change password during next login - public bool? MustChangePw { get; set; } - /// Identifier of organization for end-users - public int? OrganizationId { get; set; } - /// Phone number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the user. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// User created by SCIM - public bool? ScimUser { get; set; } - /// User universally unique identifier - public Guid? Uid { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public EndUserPatchResponse() - { - 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::NinjaOne.Client.V2.User.EndUser.Item.EndUserPatchResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.EndUser.Item.EndUserPatchResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "accessibleDeviceIds", n => { AccessibleDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "authType", n => { AuthType = n.GetStringValue(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "fullPortalAccess", n => { FullPortalAccess = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "scimUser", n => { ScimUser = n.GetBoolValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("accessibleDeviceIds", AccessibleDeviceIds); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteStringValue("authType", AuthType); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteStringValue("firstName", FirstName); - writer.WriteBoolValue("fullPortalAccess", FullPortalAccess); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteBoolValue("scimUser", ScimUser); - writer.WriteGuidValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/EndUser/Item/EndUserPatchResponse_invitationStatus.cs b/V2/User/EndUser/Item/EndUserPatchResponse_invitationStatus.cs deleted file mode 100644 index acbea9d..0000000 --- a/V2/User/EndUser/Item/EndUserPatchResponse_invitationStatus.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.User.EndUser.Item -{ - /// User invitation status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum EndUserPatchResponse_invitationStatus - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/User/EndUser/Item/EndUserResponse.cs b/V2/User/EndUser/Item/EndUserResponse.cs deleted file mode 100644 index 4639ba6..0000000 --- a/V2/User/EndUser/Item/EndUserResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.EndUser.Item -{ - [Obsolete("This class is obsolete. Use EndUserGetResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class EndUserResponse : global::NinjaOne.Client.V2.User.EndUser.Item.EndUserGetResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.User.EndUser.Item.EndUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.EndUser.Item.EndUserResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/EndUsers/EndUsers.cs b/V2/User/EndUsers/EndUsers.cs deleted file mode 100644 index eeb63ba..0000000 --- a/V2/User/EndUsers/EndUsers.cs +++ /dev/null @@ -1,171 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.EndUsers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class EndUsers : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Device IDs which user has access to -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AccessibleDeviceIds { get; set; } -#nullable restore -#else - public List AccessibleDeviceIds { get; set; } -#endif - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Authentication type, NATIVE or SSO -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? AuthType { get; set; } -#nullable restore -#else - public string AuthType { get; set; } -#endif - /// Email address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// User access status - public bool? Enabled { get; set; } - /// First name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// Has full portal access - public bool? FullPortalAccess { get; set; } - /// User identifier - public int? Id { get; set; } - /// User invitation status - public global::NinjaOne.Client.V2.User.EndUsers.EndUsers_invitationStatus? InvitationStatus { get; set; } - /// Last name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// At least one MFA method is configured - public bool? MfaConfigured { get; set; } - /// Must change password during next login - public bool? MustChangePw { get; set; } - /// Identifier of organization for end-users - public int? OrganizationId { get; set; } - /// Phone number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the user. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// User created by SCIM - public bool? ScimUser { get; set; } - /// User universally unique identifier - public Guid? Uid { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public EndUsers() - { - 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::NinjaOne.Client.V2.User.EndUsers.EndUsers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.EndUsers.EndUsers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "accessibleDeviceIds", n => { AccessibleDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "authType", n => { AuthType = n.GetStringValue(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "fullPortalAccess", n => { FullPortalAccess = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "scimUser", n => { ScimUser = n.GetBoolValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("accessibleDeviceIds", AccessibleDeviceIds); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteStringValue("authType", AuthType); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteStringValue("firstName", FirstName); - writer.WriteBoolValue("fullPortalAccess", FullPortalAccess); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteBoolValue("scimUser", ScimUser); - writer.WriteGuidValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/EndUsers/EndUsersPostRequestBody.cs b/V2/User/EndUsers/EndUsersPostRequestBody.cs deleted file mode 100644 index 8cfd80b..0000000 --- a/V2/User/EndUsers/EndUsersPostRequestBody.cs +++ /dev/null @@ -1,104 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.EndUsers -{ - /// - /// Create end user request payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUsersPostRequestBody : 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; } - /// Email address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// First name should be between 1 and 150 characters -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// Gives end user full portal access - public bool? FullPortalAccess { get; set; } - /// Last name should be between 1 and 150 characters -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// Organization identifier - public int? OrganizationId { get; set; } - /// Phone number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public EndUsersPostRequestBody() - { - 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::NinjaOne.Client.V2.User.EndUsers.EndUsersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.EndUsers.EndUsersPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "fullPortalAccess", n => { FullPortalAccess = n.GetBoolValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteStringValue("firstName", FirstName); - writer.WriteBoolValue("fullPortalAccess", FullPortalAccess); - writer.WriteStringValue("lastName", LastName); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteStringValue("phone", Phone); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/EndUsers/EndUsersPostResponse.cs b/V2/User/EndUsers/EndUsersPostResponse.cs deleted file mode 100644 index 76ac6b3..0000000 --- a/V2/User/EndUsers/EndUsersPostResponse.cs +++ /dev/null @@ -1,171 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.EndUsers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class EndUsersPostResponse : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Device IDs which user has access to -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AccessibleDeviceIds { get; set; } -#nullable restore -#else - public List AccessibleDeviceIds { get; set; } -#endif - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Authentication type, NATIVE or SSO -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? AuthType { get; set; } -#nullable restore -#else - public string AuthType { get; set; } -#endif - /// Email address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// User access status - public bool? Enabled { get; set; } - /// First name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// Has full portal access - public bool? FullPortalAccess { get; set; } - /// User identifier - public int? Id { get; set; } - /// User invitation status - public global::NinjaOne.Client.V2.User.EndUsers.EndUsersPostResponse_invitationStatus? InvitationStatus { get; set; } - /// Last name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// At least one MFA method is configured - public bool? MfaConfigured { get; set; } - /// Must change password during next login - public bool? MustChangePw { get; set; } - /// Identifier of organization for end-users - public int? OrganizationId { get; set; } - /// Phone number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the user. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// User created by SCIM - public bool? ScimUser { get; set; } - /// User universally unique identifier - public Guid? Uid { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public EndUsersPostResponse() - { - 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::NinjaOne.Client.V2.User.EndUsers.EndUsersPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.EndUsers.EndUsersPostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "accessibleDeviceIds", n => { AccessibleDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "authType", n => { AuthType = n.GetStringValue(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "fullPortalAccess", n => { FullPortalAccess = n.GetBoolValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "scimUser", n => { ScimUser = n.GetBoolValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("accessibleDeviceIds", AccessibleDeviceIds); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteStringValue("authType", AuthType); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteStringValue("firstName", FirstName); - writer.WriteBoolValue("fullPortalAccess", FullPortalAccess); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteBoolValue("scimUser", ScimUser); - writer.WriteGuidValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/EndUsers/EndUsersPostResponse_invitationStatus.cs b/V2/User/EndUsers/EndUsersPostResponse_invitationStatus.cs deleted file mode 100644 index d526d19..0000000 --- a/V2/User/EndUsers/EndUsersPostResponse_invitationStatus.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.User.EndUsers -{ - /// User invitation status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum EndUsersPostResponse_invitationStatus - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/User/EndUsers/EndUsersRequestBuilder.cs b/V2/User/EndUsers/EndUsersRequestBuilder.cs deleted file mode 100644 index 3488ceb..0000000 --- a/V2/User/EndUsers/EndUsersRequestBuilder.cs +++ /dev/null @@ -1,173 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.User.EndUsers -{ - /// - /// Builds and executes requests for operations under \v2\user\end-users - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUsersRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public EndUsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/end-users{?sendInvitation*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public EndUsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/end-users{?sendInvitation*}", rawUrl) - { - } - /// - /// Get all end users - /// - /// A List<global::NinjaOne.Client.V2.User.EndUsers.EndUsers> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.User.EndUsers.EndUsers.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Create an end user - /// - /// A - /// Create end user request payload - /// 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 PostAsEndUsersPostResponseAsync(global::NinjaOne.Client.V2.User.EndUsers.EndUsersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsEndUsersPostResponseAsync(global::NinjaOne.Client.V2.User.EndUsers.EndUsersPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.User.EndUsers.EndUsersPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create an end user - /// - /// A - /// Create end user request payload - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsEndUsersPostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.User.EndUsers.EndUsersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.User.EndUsers.EndUsersPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.User.EndUsers.EndUsersResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get all end users - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Create an end user - /// - /// A - /// Create end user request payload - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.User.EndUsers.EndUsersPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.User.EndUsers.EndUsersPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.User.EndUsers.EndUsersRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.User.EndUsers.EndUsersRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUsersRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Create an end user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUsersRequestBuilderPostQueryParameters - { - /// Whether to send invitation to end user during creation - [QueryParameter("sendInvitation")] - public bool? SendInvitation { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class EndUsersRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/EndUsers/EndUsersResponse.cs b/V2/User/EndUsers/EndUsersResponse.cs deleted file mode 100644 index b393d90..0000000 --- a/V2/User/EndUsers/EndUsersResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.EndUsers -{ - [Obsolete("This class is obsolete. Use EndUsersPostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class EndUsersResponse : global::NinjaOne.Client.V2.User.EndUsers.EndUsersPostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.User.EndUsers.EndUsersResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.EndUsers.EndUsersResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/EndUsers/EndUsers_invitationStatus.cs b/V2/User/EndUsers/EndUsers_invitationStatus.cs deleted file mode 100644 index ba6e0d8..0000000 --- a/V2/User/EndUsers/EndUsers_invitationStatus.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.User.EndUsers -{ - /// User invitation status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum EndUsers_invitationStatus - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/User/Role/Item/AddMembers/AddMembersPatchResponse.cs b/V2/User/Role/Item/AddMembers/AddMembersPatchResponse.cs deleted file mode 100644 index 74b9232..0000000 --- a/V2/User/Role/Item/AddMembers/AddMembersPatchResponse.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.Role.Item.AddMembers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AddMembersPatchResponse : 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; } - /// Role description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Role identifier - public int? Id { get; set; } - /// Role members -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Members { get; set; } -#nullable restore -#else - public List Members { get; set; } -#endif - /// Role name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Role type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AddMembersPatchResponse() - { - 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::NinjaOne.Client.V2.User.Role.Item.AddMembers.AddMembersPatchResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.Role.Item.AddMembers.AddMembersPatchResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "members", n => { Members = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.User.Role.Item.AddMembers.AddMembersPatchResponse_members.CreateFromDiscriminatorValue)?.AsList(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteCollectionOfObjectValues("members", Members); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Role/Item/AddMembers/AddMembersPatchResponse_members.cs b/V2/User/Role/Item/AddMembers/AddMembersPatchResponse_members.cs deleted file mode 100644 index ee351a5..0000000 --- a/V2/User/Role/Item/AddMembers/AddMembersPatchResponse_members.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.Role.Item.AddMembers -{ - /// - /// Role members - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AddMembersPatchResponse_members : 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; } - /// User email -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// User full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Source of role assignment -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Source { get; set; } -#nullable restore -#else - public string Source { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AddMembersPatchResponse_members() - { - 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::NinjaOne.Client.V2.User.Role.Item.AddMembers.AddMembersPatchResponse_members CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.Role.Item.AddMembers.AddMembersPatchResponse_members(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "source", n => { Source = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("source", Source); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Role/Item/AddMembers/AddMembersRequestBuilder.cs b/V2/User/Role/Item/AddMembers/AddMembersRequestBuilder.cs deleted file mode 100644 index 8df05d9..0000000 --- a/V2/User/Role/Item/AddMembers/AddMembersRequestBuilder.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.User.Role.Item.AddMembers -{ - /// - /// Builds and executes requests for operations under \v2\user\role\{roleId}\add-members - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AddMembersRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public AddMembersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/role/{roleId}/add-members", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public AddMembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/role/{roleId}/add-members", rawUrl) - { - } - /// - /// Add members to user role - /// - /// A - /// Binary request body - /// Cancellation token to use when cancelling requests - /// The request body content type. - /// 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 PatchAsAddMembersPatchResponseAsync(Stream body, string contentType, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsAddMembersPatchResponseAsync(Stream body, string contentType, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - if(string.IsNullOrEmpty(contentType)) throw new ArgumentNullException(nameof(contentType)); - var requestInfo = ToPatchRequestInformation(body, contentType, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.User.Role.Item.AddMembers.AddMembersPatchResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Add members to user role - /// - /// A - /// Binary request body - /// Cancellation token to use when cancelling requests - /// The request body content type. - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PatchAsAddMembersPatchResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PatchAsync(Stream body, string contentType, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(Stream body, string contentType, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - if(string.IsNullOrEmpty(contentType)) throw new ArgumentNullException(nameof(contentType)); - var requestInfo = ToPatchRequestInformation(body, contentType, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.User.Role.Item.AddMembers.AddMembersResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Add members to user role - /// - /// A - /// Binary request body - /// The request body content type. - /// 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(Stream body, string contentType, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(Stream body, string contentType, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - if(string.IsNullOrEmpty(contentType)) throw new ArgumentNullException(nameof(contentType)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetStreamContent(body, contentType); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.User.Role.Item.AddMembers.AddMembersRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.User.Role.Item.AddMembers.AddMembersRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class AddMembersRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Role/Item/AddMembers/AddMembersResponse.cs b/V2/User/Role/Item/AddMembers/AddMembersResponse.cs deleted file mode 100644 index 049cd8b..0000000 --- a/V2/User/Role/Item/AddMembers/AddMembersResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.Role.Item.AddMembers -{ - [Obsolete("This class is obsolete. Use AddMembersPatchResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class AddMembersResponse : global::NinjaOne.Client.V2.User.Role.Item.AddMembers.AddMembersPatchResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.User.Role.Item.AddMembers.AddMembersResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.Role.Item.AddMembers.AddMembersResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Role/Item/RemoveMembers/RemoveMembersPatchResponse.cs b/V2/User/Role/Item/RemoveMembers/RemoveMembersPatchResponse.cs deleted file mode 100644 index 001f4bc..0000000 --- a/V2/User/Role/Item/RemoveMembers/RemoveMembersPatchResponse.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.Role.Item.RemoveMembers -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RemoveMembersPatchResponse : 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; } - /// Role description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Role identifier - public int? Id { get; set; } - /// Role members -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Members { get; set; } -#nullable restore -#else - public List Members { get; set; } -#endif - /// Role name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Role type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RemoveMembersPatchResponse() - { - 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::NinjaOne.Client.V2.User.Role.Item.RemoveMembers.RemoveMembersPatchResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.Role.Item.RemoveMembers.RemoveMembersPatchResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "members", n => { Members = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.User.Role.Item.RemoveMembers.RemoveMembersPatchResponse_members.CreateFromDiscriminatorValue)?.AsList(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteCollectionOfObjectValues("members", Members); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Role/Item/RemoveMembers/RemoveMembersPatchResponse_members.cs b/V2/User/Role/Item/RemoveMembers/RemoveMembersPatchResponse_members.cs deleted file mode 100644 index 6f1f6be..0000000 --- a/V2/User/Role/Item/RemoveMembers/RemoveMembersPatchResponse_members.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.Role.Item.RemoveMembers -{ - /// - /// Role members - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RemoveMembersPatchResponse_members : 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; } - /// User email -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// User full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Source of role assignment -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Source { get; set; } -#nullable restore -#else - public string Source { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RemoveMembersPatchResponse_members() - { - 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::NinjaOne.Client.V2.User.Role.Item.RemoveMembers.RemoveMembersPatchResponse_members CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.Role.Item.RemoveMembers.RemoveMembersPatchResponse_members(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "source", n => { Source = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("source", Source); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Role/Item/RemoveMembers/RemoveMembersRequestBuilder.cs b/V2/User/Role/Item/RemoveMembers/RemoveMembersRequestBuilder.cs deleted file mode 100644 index e7cfbc8..0000000 --- a/V2/User/Role/Item/RemoveMembers/RemoveMembersRequestBuilder.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.User.Role.Item.RemoveMembers -{ - /// - /// Builds and executes requests for operations under \v2\user\role\{roleId}\remove-members - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RemoveMembersRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RemoveMembersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/role/{roleId}/remove-members", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RemoveMembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/role/{roleId}/remove-members", rawUrl) - { - } - /// - /// Remove users from user role - /// - /// A - /// Binary request body - /// Cancellation token to use when cancelling requests - /// The request body content type. - /// 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 PatchAsRemoveMembersPatchResponseAsync(Stream body, string contentType, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsRemoveMembersPatchResponseAsync(Stream body, string contentType, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - if(string.IsNullOrEmpty(contentType)) throw new ArgumentNullException(nameof(contentType)); - var requestInfo = ToPatchRequestInformation(body, contentType, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.User.Role.Item.RemoveMembers.RemoveMembersPatchResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Remove users from user role - /// - /// A - /// Binary request body - /// Cancellation token to use when cancelling requests - /// The request body content type. - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PatchAsRemoveMembersPatchResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PatchAsync(Stream body, string contentType, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(Stream body, string contentType, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - if(string.IsNullOrEmpty(contentType)) throw new ArgumentNullException(nameof(contentType)); - var requestInfo = ToPatchRequestInformation(body, contentType, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.User.Role.Item.RemoveMembers.RemoveMembersResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Remove users from user role - /// - /// A - /// Binary request body - /// The request body content type. - /// 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(Stream body, string contentType, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(Stream body, string contentType, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - if(string.IsNullOrEmpty(contentType)) throw new ArgumentNullException(nameof(contentType)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetStreamContent(body, contentType); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.User.Role.Item.RemoveMembers.RemoveMembersRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.User.Role.Item.RemoveMembers.RemoveMembersRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RemoveMembersRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Role/Item/RemoveMembers/RemoveMembersResponse.cs b/V2/User/Role/Item/RemoveMembers/RemoveMembersResponse.cs deleted file mode 100644 index 4072664..0000000 --- a/V2/User/Role/Item/RemoveMembers/RemoveMembersResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.Role.Item.RemoveMembers -{ - [Obsolete("This class is obsolete. Use RemoveMembersPatchResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class RemoveMembersResponse : global::NinjaOne.Client.V2.User.Role.Item.RemoveMembers.RemoveMembersPatchResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.User.Role.Item.RemoveMembers.RemoveMembersResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.Role.Item.RemoveMembers.RemoveMembersResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Role/Item/WithRoleItemRequestBuilder.cs b/V2/User/Role/Item/WithRoleItemRequestBuilder.cs deleted file mode 100644 index f2cbe4e..0000000 --- a/V2/User/Role/Item/WithRoleItemRequestBuilder.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.User.Role.Item.AddMembers; -using NinjaOne.Client.V2.User.Role.Item.RemoveMembers; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.User.Role.Item -{ - /// - /// Builds and executes requests for operations under \v2\user\role\{roleId} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WithRoleItemRequestBuilder : BaseRequestBuilder - { - /// The addMembers property - public global::NinjaOne.Client.V2.User.Role.Item.AddMembers.AddMembersRequestBuilder AddMembers - { - get => new global::NinjaOne.Client.V2.User.Role.Item.AddMembers.AddMembersRequestBuilder(PathParameters, RequestAdapter); - } - /// The removeMembers property - public global::NinjaOne.Client.V2.User.Role.Item.RemoveMembers.RemoveMembersRequestBuilder RemoveMembers - { - get => new global::NinjaOne.Client.V2.User.Role.Item.RemoveMembers.RemoveMembersRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithRoleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/role/{roleId}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithRoleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/role/{roleId}", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Role/RoleRequestBuilder.cs b/V2/User/Role/RoleRequestBuilder.cs deleted file mode 100644 index 6debfd0..0000000 --- a/V2/User/Role/RoleRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.User.Role.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.User.Role -{ - /// - /// Builds and executes requests for operations under \v2\user\role - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RoleRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.user.role.item collection - /// Role identifier - /// A - public global::NinjaOne.Client.V2.User.Role.Item.WithRoleItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("roleId", position); - return new global::NinjaOne.Client.V2.User.Role.Item.WithRoleItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.user.role.item collection - /// Role identifier - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.User.Role.Item.WithRoleItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("roleId", position); - return new global::NinjaOne.Client.V2.User.Role.Item.WithRoleItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RoleRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/role", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RoleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/role", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Roles/GetRoleTypeQueryParameterType.cs b/V2/User/Roles/GetRoleTypeQueryParameterType.cs deleted file mode 100644 index bdcd9cc..0000000 --- a/V2/User/Roles/GetRoleTypeQueryParameterType.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.User.Roles -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum GetRoleTypeQueryParameterType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - } -} diff --git a/V2/User/Roles/Roles.cs b/V2/User/Roles/Roles.cs deleted file mode 100644 index a5acc27..0000000 --- a/V2/User/Roles/Roles.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.Roles -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Roles : 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; } - /// Role description -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// Role identifier - public int? Id { get; set; } - /// Role members -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Members { get; set; } -#nullable restore -#else - public List Members { get; set; } -#endif - /// Role name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Role type -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Roles() - { - 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::NinjaOne.Client.V2.User.Roles.Roles CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.Roles.Roles(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "description", n => { Description = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "members", n => { Members = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.User.Roles.Roles_members.CreateFromDiscriminatorValue)?.AsList(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("description", Description); - writer.WriteIntValue("id", Id); - writer.WriteCollectionOfObjectValues("members", Members); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Roles/RolesRequestBuilder.cs b/V2/User/Roles/RolesRequestBuilder.cs deleted file mode 100644 index 892bb62..0000000 --- a/V2/User/Roles/RolesRequestBuilder.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.User.Roles -{ - /// - /// Builds and executes requests for operations under \v2\user\roles - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RolesRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RolesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/roles{?roleType*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/roles{?roleType*}", rawUrl) - { - } - /// - /// Get list of user roles - /// - /// A List<global::NinjaOne.Client.V2.User.Roles.Roles> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.User.Roles.Roles.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Get list of user roles - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.User.Roles.RolesRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.User.Roles.RolesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Get list of user roles - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RolesRequestBuilderGetQueryParameters - { - /// User role type filter - [Obsolete("This property is deprecated, use RoleTypeAsGetRoleTypeQueryParameterType instead")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("roleType")] - public string? RoleType { get; set; } -#nullable restore -#else - [QueryParameter("roleType")] - public string RoleType { get; set; } -#endif - /// User role type filter - [QueryParameter("roleType")] - public global::NinjaOne.Client.V2.User.Roles.GetRoleTypeQueryParameterType? RoleTypeAsGetRoleTypeQueryParameterType { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class RolesRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Roles/Roles_members.cs b/V2/User/Roles/Roles_members.cs deleted file mode 100644 index d400ea3..0000000 --- a/V2/User/Roles/Roles_members.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.Roles -{ - /// - /// Role members - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Roles_members : 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; } - /// User email -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// User full name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Source of role assignment -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Source { get; set; } -#nullable restore -#else - public string Source { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Roles_members() - { - 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::NinjaOne.Client.V2.User.Roles.Roles_members CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.Roles.Roles_members(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "name", n => { Name = n.GetStringValue(); } }, - { "source", n => { Source = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteIntValue("id", Id); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("source", Source); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Technician/Item/TechnicianGetResponse.cs b/V2/User/Technician/Item/TechnicianGetResponse.cs deleted file mode 100644 index 89d1422..0000000 --- a/V2/User/Technician/Item/TechnicianGetResponse.cs +++ /dev/null @@ -1,165 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.Technician.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TechnicianGetResponse : 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; } - /// Technician is a System Administrator - public bool? Administrator { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Native or SSO authentication -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? AuthType { get; set; } -#nullable restore -#else - public string AuthType { get; set; } -#endif - /// Email address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// User access status - public bool? Enabled { get; set; } - /// First name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// User invitation status - public global::NinjaOne.Client.V2.User.Technician.Item.TechnicianGetResponse_invitationStatus? InvitationStatus { get; set; } - /// Last name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// At least one MFA method is configured - public bool? MfaConfigured { get; set; } - /// Must change password during next login - public bool? MustChangePw { get; set; } - /// Notifications for all clients - public bool? NotifyAllClients { get; set; } - /// Phone number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the technician. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// User is created by SCIM? - public bool? ScimUser { get; set; } - /// User universally unique identifier - public Guid? Uid { get; set; } - /// User type - public global::NinjaOne.Client.V2.User.Technician.Item.TechnicianGetResponse_userType? UserType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TechnicianGetResponse() - { - 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::NinjaOne.Client.V2.User.Technician.Item.TechnicianGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.Technician.Item.TechnicianGetResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "administrator", n => { Administrator = n.GetBoolValue(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "authType", n => { AuthType = n.GetStringValue(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "notifyAllClients", n => { NotifyAllClients = n.GetBoolValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "scimUser", n => { ScimUser = n.GetBoolValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userType", n => { UserType = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("administrator", Administrator); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteStringValue("authType", AuthType); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteBoolValue("notifyAllClients", NotifyAllClients); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteBoolValue("scimUser", ScimUser); - writer.WriteGuidValue("uid", Uid); - writer.WriteEnumValue("userType", UserType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Technician/Item/TechnicianGetResponse_invitationStatus.cs b/V2/User/Technician/Item/TechnicianGetResponse_invitationStatus.cs deleted file mode 100644 index ae9611f..0000000 --- a/V2/User/Technician/Item/TechnicianGetResponse_invitationStatus.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.User.Technician.Item -{ - /// User invitation status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum TechnicianGetResponse_invitationStatus - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/User/Technician/Item/TechnicianGetResponse_userType.cs b/V2/User/Technician/Item/TechnicianGetResponse_userType.cs deleted file mode 100644 index 3ac220f..0000000 --- a/V2/User/Technician/Item/TechnicianGetResponse_userType.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.User.Technician.Item -{ - /// User type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum TechnicianGetResponse_userType - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - } -} diff --git a/V2/User/Technician/Item/TechnicianItemRequestBuilder.cs b/V2/User/Technician/Item/TechnicianItemRequestBuilder.cs deleted file mode 100644 index 20755cb..0000000 --- a/V2/User/Technician/Item/TechnicianItemRequestBuilder.cs +++ /dev/null @@ -1,202 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.User.Technician.Item -{ - /// - /// Builds and executes requests for operations under \v2\user\technician\{id} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TechnicianItemRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public TechnicianItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/technician/{id}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TechnicianItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/technician/{id}", rawUrl) - { - } - /// - /// Delete a technician by their ID - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get details for a specific technician identifier - /// - /// 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 GetAsTechnicianGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsTechnicianGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.User.Technician.Item.TechnicianGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get details for a specific technician identifier - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use GetAsTechnicianGetResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.User.Technician.Item.TechnicianResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Update technician by their ID - /// - /// A - /// Update technician request payload - /// 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 PatchAsync(global::NinjaOne.Client.V2.User.Technician.Item.TechnicianPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::NinjaOne.Client.V2.User.Technician.Item.TechnicianPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete a technician by their ID - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Get details for a specific technician identifier - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Update technician by their ID - /// - /// A - /// Update technician request payload - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.User.Technician.Item.TechnicianPatchRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::NinjaOne.Client.V2.User.Technician.Item.TechnicianPatchRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.User.Technician.Item.TechnicianItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.User.Technician.Item.TechnicianItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TechnicianItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TechnicianItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TechnicianItemRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Technician/Item/TechnicianPatchRequestBody.cs b/V2/User/Technician/Item/TechnicianPatchRequestBody.cs deleted file mode 100644 index fba2839..0000000 --- a/V2/User/Technician/Item/TechnicianPatchRequestBody.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.Technician.Item -{ - /// - /// Update technician request payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TechnicianPatchRequestBody : 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; } - /// First name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// Last name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TechnicianPatchRequestBody() - { - 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::NinjaOne.Client.V2.User.Technician.Item.TechnicianPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.Technician.Item.TechnicianPatchRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("firstName", FirstName); - writer.WriteStringValue("lastName", LastName); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Technician/Item/TechnicianResponse.cs b/V2/User/Technician/Item/TechnicianResponse.cs deleted file mode 100644 index a7bd6d5..0000000 --- a/V2/User/Technician/Item/TechnicianResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.Technician.Item -{ - [Obsolete("This class is obsolete. Use TechnicianGetResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TechnicianResponse : global::NinjaOne.Client.V2.User.Technician.Item.TechnicianGetResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.User.Technician.Item.TechnicianResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.Technician.Item.TechnicianResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Technician/TechnicianRequestBuilder.cs b/V2/User/Technician/TechnicianRequestBuilder.cs deleted file mode 100644 index b632008..0000000 --- a/V2/User/Technician/TechnicianRequestBuilder.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.User.Technician.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.User.Technician -{ - /// - /// Builds and executes requests for operations under \v2\user\technician - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TechnicianRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.user.technician.item collection - /// Technician identifier - /// A - public global::NinjaOne.Client.V2.User.Technician.Item.TechnicianItemRequestBuilder this[int position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new global::NinjaOne.Client.V2.User.Technician.Item.TechnicianItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.user.technician.item collection - /// Technician identifier - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.User.Technician.Item.TechnicianItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("id", position); - return new global::NinjaOne.Client.V2.User.Technician.Item.TechnicianItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public TechnicianRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/technician", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TechnicianRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/technician", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Technicians/Technicians.cs b/V2/User/Technicians/Technicians.cs deleted file mode 100644 index 70ceaf6..0000000 --- a/V2/User/Technicians/Technicians.cs +++ /dev/null @@ -1,165 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.Technicians -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class Technicians : 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; } - /// Technician is a System Administrator - public bool? Administrator { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Native or SSO authentication -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? AuthType { get; set; } -#nullable restore -#else - public string AuthType { get; set; } -#endif - /// Email address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// User access status - public bool? Enabled { get; set; } - /// First name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// User invitation status - public global::NinjaOne.Client.V2.User.Technicians.Technicians_invitationStatus? InvitationStatus { get; set; } - /// Last name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// At least one MFA method is configured - public bool? MfaConfigured { get; set; } - /// Must change password during next login - public bool? MustChangePw { get; set; } - /// Notifications for all clients - public bool? NotifyAllClients { get; set; } - /// Phone number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the technician. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// User is created by SCIM? - public bool? ScimUser { get; set; } - /// User universally unique identifier - public Guid? Uid { get; set; } - /// User type - public global::NinjaOne.Client.V2.User.Technicians.Technicians_userType? UserType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Technicians() - { - 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::NinjaOne.Client.V2.User.Technicians.Technicians CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.Technicians.Technicians(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "administrator", n => { Administrator = n.GetBoolValue(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "authType", n => { AuthType = n.GetStringValue(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "notifyAllClients", n => { NotifyAllClients = n.GetBoolValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "scimUser", n => { ScimUser = n.GetBoolValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userType", n => { UserType = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("administrator", Administrator); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteStringValue("authType", AuthType); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteBoolValue("notifyAllClients", NotifyAllClients); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteBoolValue("scimUser", ScimUser); - writer.WriteGuidValue("uid", Uid); - writer.WriteEnumValue("userType", UserType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Technicians/TechniciansPostRequestBody.cs b/V2/User/Technicians/TechniciansPostRequestBody.cs deleted file mode 100644 index 63b7994..0000000 --- a/V2/User/Technicians/TechniciansPostRequestBody.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.Technicians -{ - /// - /// Create technician request payload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TechniciansPostRequestBody : 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; } - /// Email address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// First name should be between 1 and 150 characters -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// Last name should be between 1 and 150 characters -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// Phone number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TechniciansPostRequestBody() - { - 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::NinjaOne.Client.V2.User.Technicians.TechniciansPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.Technicians.TechniciansPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "email", n => { Email = n.GetStringValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("email", Email); - writer.WriteStringValue("firstName", FirstName); - writer.WriteStringValue("lastName", LastName); - writer.WriteStringValue("phone", Phone); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Technicians/TechniciansPostResponse.cs b/V2/User/Technicians/TechniciansPostResponse.cs deleted file mode 100644 index 3430297..0000000 --- a/V2/User/Technicians/TechniciansPostResponse.cs +++ /dev/null @@ -1,165 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.Technicians -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TechniciansPostResponse : 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; } - /// Technician is a System Administrator - public bool? Administrator { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Native or SSO authentication -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? AuthType { get; set; } -#nullable restore -#else - public string AuthType { get; set; } -#endif - /// Email address -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// User access status - public bool? Enabled { get; set; } - /// First name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// User invitation status - public global::NinjaOne.Client.V2.User.Technicians.TechniciansPostResponse_invitationStatus? InvitationStatus { get; set; } - /// Last name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// At least one MFA method is configured - public bool? MfaConfigured { get; set; } - /// Must change password during next login - public bool? MustChangePw { get; set; } - /// Notifications for all clients - public bool? NotifyAllClients { get; set; } - /// Phone number -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the technician. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// User is created by SCIM? - public bool? ScimUser { get; set; } - /// User universally unique identifier - public Guid? Uid { get; set; } - /// User type - public global::NinjaOne.Client.V2.User.Technicians.TechniciansPostResponse_userType? UserType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TechniciansPostResponse() - { - 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::NinjaOne.Client.V2.User.Technicians.TechniciansPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.Technicians.TechniciansPostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "administrator", n => { Administrator = n.GetBoolValue(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "authType", n => { AuthType = n.GetStringValue(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "notifyAllClients", n => { NotifyAllClients = n.GetBoolValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "scimUser", n => { ScimUser = n.GetBoolValue(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userType", n => { UserType = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("administrator", Administrator); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteStringValue("authType", AuthType); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteBoolValue("notifyAllClients", NotifyAllClients); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteBoolValue("scimUser", ScimUser); - writer.WriteGuidValue("uid", Uid); - writer.WriteEnumValue("userType", UserType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Technicians/TechniciansPostResponse_invitationStatus.cs b/V2/User/Technicians/TechniciansPostResponse_invitationStatus.cs deleted file mode 100644 index 5372078..0000000 --- a/V2/User/Technicians/TechniciansPostResponse_invitationStatus.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.User.Technicians -{ - /// User invitation status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum TechniciansPostResponse_invitationStatus - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/User/Technicians/TechniciansPostResponse_userType.cs b/V2/User/Technicians/TechniciansPostResponse_userType.cs deleted file mode 100644 index 586d7b6..0000000 --- a/V2/User/Technicians/TechniciansPostResponse_userType.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.User.Technicians -{ - /// User type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum TechniciansPostResponse_userType - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - } -} diff --git a/V2/User/Technicians/TechniciansRequestBuilder.cs b/V2/User/Technicians/TechniciansRequestBuilder.cs deleted file mode 100644 index 97d968d..0000000 --- a/V2/User/Technicians/TechniciansRequestBuilder.cs +++ /dev/null @@ -1,163 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.User.Technicians -{ - /// - /// Builds and executes requests for operations under \v2\user\technicians - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TechniciansRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public TechniciansRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/technicians", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TechniciansRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user/technicians", rawUrl) - { - } - /// - /// Get all technicians - /// - /// A List<global::NinjaOne.Client.V2.User.Technicians.Technicians> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.User.Technicians.Technicians.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Create a new technician - /// - /// A - /// Create technician request payload - /// 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 PostAsTechniciansPostResponseAsync(global::NinjaOne.Client.V2.User.Technicians.TechniciansPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsTechniciansPostResponseAsync(global::NinjaOne.Client.V2.User.Technicians.TechniciansPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.User.Technicians.TechniciansPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Create a new technician - /// - /// A - /// Create technician request payload - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsTechniciansPostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::NinjaOne.Client.V2.User.Technicians.TechniciansPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::NinjaOne.Client.V2.User.Technicians.TechniciansPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.User.Technicians.TechniciansResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get all technicians - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Create a new technician - /// - /// A - /// Create technician request payload - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.User.Technicians.TechniciansPostRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::NinjaOne.Client.V2.User.Technicians.TechniciansPostRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.User.Technicians.TechniciansRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.User.Technicians.TechniciansRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TechniciansRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class TechniciansRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Technicians/TechniciansResponse.cs b/V2/User/Technicians/TechniciansResponse.cs deleted file mode 100644 index 861a638..0000000 --- a/V2/User/Technicians/TechniciansResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.User.Technicians -{ - [Obsolete("This class is obsolete. Use TechniciansPostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class TechniciansResponse : global::NinjaOne.Client.V2.User.Technicians.TechniciansPostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.User.Technicians.TechniciansResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.User.Technicians.TechniciansResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/User/Technicians/Technicians_invitationStatus.cs b/V2/User/Technicians/Technicians_invitationStatus.cs deleted file mode 100644 index d902953..0000000 --- a/V2/User/Technicians/Technicians_invitationStatus.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.User.Technicians -{ - /// User invitation status - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Technicians_invitationStatus - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/User/Technicians/Technicians_userType.cs b/V2/User/Technicians/Technicians_userType.cs deleted file mode 100644 index 0d849ca..0000000 --- a/V2/User/Technicians/Technicians_userType.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.User.Technicians -{ - /// User type - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public enum Technicians_userType - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - } -} diff --git a/V2/User/UserRequestBuilder.cs b/V2/User/UserRequestBuilder.cs deleted file mode 100644 index 7f95cbf..0000000 --- a/V2/User/UserRequestBuilder.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.User.EndUser; -using NinjaOne.Client.V2.User.EndUsers; -using NinjaOne.Client.V2.User.Role; -using NinjaOne.Client.V2.User.Roles; -using NinjaOne.Client.V2.User.Technician; -using NinjaOne.Client.V2.User.Technicians; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.User -{ - /// - /// Builds and executes requests for operations under \v2\user - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class UserRequestBuilder : BaseRequestBuilder - { - /// The endUser property - public global::NinjaOne.Client.V2.User.EndUser.EndUserRequestBuilder EndUser - { - get => new global::NinjaOne.Client.V2.User.EndUser.EndUserRequestBuilder(PathParameters, RequestAdapter); - } - /// The endUsers property - public global::NinjaOne.Client.V2.User.EndUsers.EndUsersRequestBuilder EndUsers - { - get => new global::NinjaOne.Client.V2.User.EndUsers.EndUsersRequestBuilder(PathParameters, RequestAdapter); - } - /// The role property - public global::NinjaOne.Client.V2.User.Role.RoleRequestBuilder Role - { - get => new global::NinjaOne.Client.V2.User.Role.RoleRequestBuilder(PathParameters, RequestAdapter); - } - /// The roles property - public global::NinjaOne.Client.V2.User.Roles.RolesRequestBuilder Roles - { - get => new global::NinjaOne.Client.V2.User.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); - } - /// The technician property - public global::NinjaOne.Client.V2.User.Technician.TechnicianRequestBuilder Technician - { - get => new global::NinjaOne.Client.V2.User.Technician.TechnicianRequestBuilder(PathParameters, RequestAdapter); - } - /// The technicians property - public global::NinjaOne.Client.V2.User.Technicians.TechniciansRequestBuilder Technicians - { - get => new global::NinjaOne.Client.V2.User.Technicians.TechniciansRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public UserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public UserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/user", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Users/GetUserTypeQueryParameterType.cs b/V2/Users/GetUserTypeQueryParameterType.cs deleted file mode 100644 index 96d55e9..0000000 --- a/V2/Users/GetUserTypeQueryParameterType.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Users -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum GetUserTypeQueryParameterType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - } -} diff --git a/V2/Users/Users.cs b/V2/Users/Users.cs deleted file mode 100644 index b23f16b..0000000 --- a/V2/Users/Users.cs +++ /dev/null @@ -1,193 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Users -{ - /// - /// Assigned device owner - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Users : ApiException, 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; } - /// The administrator property - public bool? Administrator { get; set; } - /// Device IDs which user is assigned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? AssignedDeviceIds { get; set; } -#nullable restore -#else - public List AssignedDeviceIds { get; set; } -#endif - /// Device IDs which end-user is authorized to access -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DeviceIds { get; set; } -#nullable restore -#else - public List DeviceIds { get; set; } -#endif - /// The email property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Email { get; set; } -#nullable restore -#else - public string Email { get; set; } -#endif - /// The enabled property - public bool? Enabled { get; set; } - /// Custom Fields -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Users.Users_fields? Fields { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Users.Users_fields Fields { get; set; } -#endif - /// The firstName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FirstName { get; set; } -#nullable restore -#else - public string FirstName { get; set; } -#endif - /// User identifier - public int? Id { get; set; } - /// The invitationStatus property - public global::NinjaOne.Client.V2.Users.Users_invitationStatus? InvitationStatus { get; set; } - /// The lastName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastName { get; set; } -#nullable restore -#else - public string LastName { get; set; } -#endif - /// The primary error message. - public override string Message { get => base.Message; } - /// The mfaConfigured property - public bool? MfaConfigured { get; set; } - /// The mustChangePw property - public bool? MustChangePw { get; set; } - /// The notifyAllClients property - public bool? NotifyAllClients { get; set; } - /// Identifier of organization for end-users - public int? OrganizationId { get; set; } - /// The permitAllClients property - public bool? PermitAllClients { get; set; } - /// The phone property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Phone { get; set; } -#nullable restore -#else - public string Phone { get; set; } -#endif - /// A list of role names assigned to the user. This is provided when the 'includeRoles' query parameter is set to 'true' -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// Tags -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// User universally unique identifier - public Guid? Uid { get; set; } - /// The userType property - public global::NinjaOne.Client.V2.Users.Users_userType? UserType { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Users() - { - 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::NinjaOne.Client.V2.Users.Users CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Users.Users(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "administrator", n => { Administrator = n.GetBoolValue(); } }, - { "assignedDeviceIds", n => { AssignedDeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "deviceIds", n => { DeviceIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "email", n => { Email = n.GetStringValue(); } }, - { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "fields", n => { Fields = n.GetObjectValue(global::NinjaOne.Client.V2.Users.Users_fields.CreateFromDiscriminatorValue); } }, - { "firstName", n => { FirstName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetIntValue(); } }, - { "invitationStatus", n => { InvitationStatus = n.GetEnumValue(); } }, - { "lastName", n => { LastName = n.GetStringValue(); } }, - { "mfaConfigured", n => { MfaConfigured = n.GetBoolValue(); } }, - { "mustChangePw", n => { MustChangePw = n.GetBoolValue(); } }, - { "notifyAllClients", n => { NotifyAllClients = n.GetBoolValue(); } }, - { "organizationId", n => { OrganizationId = n.GetIntValue(); } }, - { "permitAllClients", n => { PermitAllClients = n.GetBoolValue(); } }, - { "phone", n => { Phone = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "uid", n => { Uid = n.GetGuidValue(); } }, - { "userType", n => { UserType = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("administrator", Administrator); - writer.WriteCollectionOfPrimitiveValues("assignedDeviceIds", AssignedDeviceIds); - writer.WriteCollectionOfPrimitiveValues("deviceIds", DeviceIds); - writer.WriteStringValue("email", Email); - writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("fields", Fields); - writer.WriteStringValue("firstName", FirstName); - writer.WriteIntValue("id", Id); - writer.WriteEnumValue("invitationStatus", InvitationStatus); - writer.WriteStringValue("lastName", LastName); - writer.WriteBoolValue("mfaConfigured", MfaConfigured); - writer.WriteBoolValue("mustChangePw", MustChangePw); - writer.WriteBoolValue("notifyAllClients", NotifyAllClients); - writer.WriteIntValue("organizationId", OrganizationId); - writer.WriteBoolValue("permitAllClients", PermitAllClients); - writer.WriteStringValue("phone", Phone); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteGuidValue("uid", Uid); - writer.WriteEnumValue("userType", UserType); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Users/UsersRequestBuilder.cs b/V2/Users/UsersRequestBuilder.cs deleted file mode 100644 index d419ef8..0000000 --- a/V2/Users/UsersRequestBuilder.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Users -{ - /// - /// Builds and executes requests for operations under \v2\users - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class UsersRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/users{?includeRoles*,userType*}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/users{?includeRoles*,userType*}", rawUrl) - { - } - /// - /// Returns list of users - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::NinjaOne.Client.V2.Users.Users.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Returns list of users - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Users.UsersRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Users.UsersRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Returns list of users - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class UsersRequestBuilderGetQueryParameters - { - /// Includes user role information - [QueryParameter("includeRoles")] - public bool? IncludeRoles { get; set; } - /// User type filter - [Obsolete("This property is deprecated, use UserTypeAsGetUserTypeQueryParameterType instead")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("userType")] - public string? UserType { get; set; } -#nullable restore -#else - [QueryParameter("userType")] - public string UserType { get; set; } -#endif - /// User type filter - [QueryParameter("userType")] - public global::NinjaOne.Client.V2.Users.GetUserTypeQueryParameterType? UserTypeAsGetUserTypeQueryParameterType { get; set; } - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class UsersRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Users/Users_fields.cs b/V2/Users/Users_fields.cs deleted file mode 100644 index 20f8a03..0000000 --- a/V2/Users/Users_fields.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Users -{ - /// - /// Custom Fields - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class Users_fields : 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. - /// - public Users_fields() - { - 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::NinjaOne.Client.V2.Users.Users_fields CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Users.Users_fields(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Users/Users_invitationStatus.cs b/V2/Users/Users_invitationStatus.cs deleted file mode 100644 index 4f174b1..0000000 --- a/V2/Users/Users_invitationStatus.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Users -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Users_invitationStatus - #pragma warning restore CS1591 - { - [EnumMember(Value = "REGISTERED")] - #pragma warning disable CS1591 - REGISTERED, - #pragma warning restore CS1591 - [EnumMember(Value = "PENDING")] - #pragma warning disable CS1591 - PENDING, - #pragma warning restore CS1591 - [EnumMember(Value = "EXPIRED")] - #pragma warning disable CS1591 - EXPIRED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Users/Users_userType.cs b/V2/Users/Users_userType.cs deleted file mode 100644 index 5f9426b..0000000 --- a/V2/Users/Users_userType.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Users -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum Users_userType - #pragma warning restore CS1591 - { - [EnumMember(Value = "TECHNICIAN")] - #pragma warning disable CS1591 - TECHNICIAN, - #pragma warning restore CS1591 - [EnumMember(Value = "END_USER")] - #pragma warning disable CS1591 - END_USER, - #pragma warning restore CS1591 - } -} diff --git a/V2/V2RequestBuilder.cs b/V2/V2RequestBuilder.cs deleted file mode 100644 index 8c46e12..0000000 --- a/V2/V2RequestBuilder.cs +++ /dev/null @@ -1,275 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Activities; -using NinjaOne.Client.V2.Alert; -using NinjaOne.Client.V2.Alerts; -using NinjaOne.Client.V2.Attachments; -using NinjaOne.Client.V2.Automation; -using NinjaOne.Client.V2.Backup; -using NinjaOne.Client.V2.Checklist; -using NinjaOne.Client.V2.Contact; -using NinjaOne.Client.V2.Contacts; -using NinjaOne.Client.V2.CustomFields; -using NinjaOne.Client.V2.Device; -using NinjaOne.Client.V2.DeviceCustomFields; -using NinjaOne.Client.V2.Devices; -using NinjaOne.Client.V2.DevicesDetailed; -using NinjaOne.Client.V2.DocumentTemplates; -using NinjaOne.Client.V2.Group; -using NinjaOne.Client.V2.Groups; -using NinjaOne.Client.V2.Itam; -using NinjaOne.Client.V2.Jobs; -using NinjaOne.Client.V2.Knowledgebase; -using NinjaOne.Client.V2.Locations; -using NinjaOne.Client.V2.Noderole; -using NinjaOne.Client.V2.NotificationChannels; -using NinjaOne.Client.V2.Organization; -using NinjaOne.Client.V2.Organizations; -using NinjaOne.Client.V2.OrganizationsDetailed; -using NinjaOne.Client.V2.Policies; -using NinjaOne.Client.V2.Queries; -using NinjaOne.Client.V2.RelatedItems; -using NinjaOne.Client.V2.Roles; -using NinjaOne.Client.V2.SoftwareLicense; -using NinjaOne.Client.V2.SoftwareProducts; -using NinjaOne.Client.V2.Tab; -using NinjaOne.Client.V2.Tag; -using NinjaOne.Client.V2.Tasks; -using NinjaOne.Client.V2.Ticketing; -using NinjaOne.Client.V2.User; -using NinjaOne.Client.V2.Users; -using NinjaOne.Client.V2.Vulnerability; -using NinjaOne.Client.V2.Webhook; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2 -{ - /// - /// Builds and executes requests for operations under \v2 - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class V2RequestBuilder : BaseRequestBuilder - { - /// The activities property - public global::NinjaOne.Client.V2.Activities.ActivitiesRequestBuilder Activities - { - get => new global::NinjaOne.Client.V2.Activities.ActivitiesRequestBuilder(PathParameters, RequestAdapter); - } - /// The alert property - public global::NinjaOne.Client.V2.Alert.AlertRequestBuilder Alert - { - get => new global::NinjaOne.Client.V2.Alert.AlertRequestBuilder(PathParameters, RequestAdapter); - } - /// The alerts property - public global::NinjaOne.Client.V2.Alerts.AlertsRequestBuilder Alerts - { - get => new global::NinjaOne.Client.V2.Alerts.AlertsRequestBuilder(PathParameters, RequestAdapter); - } - /// The attachments property - public global::NinjaOne.Client.V2.Attachments.AttachmentsRequestBuilder Attachments - { - get => new global::NinjaOne.Client.V2.Attachments.AttachmentsRequestBuilder(PathParameters, RequestAdapter); - } - /// The automation property - public global::NinjaOne.Client.V2.Automation.AutomationRequestBuilder Automation - { - get => new global::NinjaOne.Client.V2.Automation.AutomationRequestBuilder(PathParameters, RequestAdapter); - } - /// The backup property - public global::NinjaOne.Client.V2.Backup.BackupRequestBuilder Backup - { - get => new global::NinjaOne.Client.V2.Backup.BackupRequestBuilder(PathParameters, RequestAdapter); - } - /// The checklist property - public global::NinjaOne.Client.V2.Checklist.ChecklistRequestBuilder Checklist - { - get => new global::NinjaOne.Client.V2.Checklist.ChecklistRequestBuilder(PathParameters, RequestAdapter); - } - /// The contact property - public global::NinjaOne.Client.V2.Contact.ContactRequestBuilder Contact - { - get => new global::NinjaOne.Client.V2.Contact.ContactRequestBuilder(PathParameters, RequestAdapter); - } - /// The contacts property - public global::NinjaOne.Client.V2.Contacts.ContactsRequestBuilder Contacts - { - get => new global::NinjaOne.Client.V2.Contacts.ContactsRequestBuilder(PathParameters, RequestAdapter); - } - /// The customFields property - public global::NinjaOne.Client.V2.CustomFields.CustomFieldsRequestBuilder CustomFields - { - get => new global::NinjaOne.Client.V2.CustomFields.CustomFieldsRequestBuilder(PathParameters, RequestAdapter); - } - /// The device property - public global::NinjaOne.Client.V2.Device.DeviceRequestBuilder Device - { - get => new global::NinjaOne.Client.V2.Device.DeviceRequestBuilder(PathParameters, RequestAdapter); - } - /// The deviceCustomFields property - public global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFieldsRequestBuilder DeviceCustomFields - { - get => new global::NinjaOne.Client.V2.DeviceCustomFields.DeviceCustomFieldsRequestBuilder(PathParameters, RequestAdapter); - } - /// The devices property - public global::NinjaOne.Client.V2.Devices.DevicesRequestBuilder Devices - { - get => new global::NinjaOne.Client.V2.Devices.DevicesRequestBuilder(PathParameters, RequestAdapter); - } - /// The devicesDetailed property - public global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailedRequestBuilder DevicesDetailed - { - get => new global::NinjaOne.Client.V2.DevicesDetailed.DevicesDetailedRequestBuilder(PathParameters, RequestAdapter); - } - /// The documentTemplates property - public global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesRequestBuilder DocumentTemplates - { - get => new global::NinjaOne.Client.V2.DocumentTemplates.DocumentTemplatesRequestBuilder(PathParameters, RequestAdapter); - } - /// The group property - public global::NinjaOne.Client.V2.Group.GroupRequestBuilder Group - { - get => new global::NinjaOne.Client.V2.Group.GroupRequestBuilder(PathParameters, RequestAdapter); - } - /// The groups property - public global::NinjaOne.Client.V2.Groups.GroupsRequestBuilder Groups - { - get => new global::NinjaOne.Client.V2.Groups.GroupsRequestBuilder(PathParameters, RequestAdapter); - } - /// The itam property - public global::NinjaOne.Client.V2.Itam.ItamRequestBuilder Itam - { - get => new global::NinjaOne.Client.V2.Itam.ItamRequestBuilder(PathParameters, RequestAdapter); - } - /// The jobs property - public global::NinjaOne.Client.V2.Jobs.JobsRequestBuilder Jobs - { - get => new global::NinjaOne.Client.V2.Jobs.JobsRequestBuilder(PathParameters, RequestAdapter); - } - /// The knowledgebase property - public global::NinjaOne.Client.V2.Knowledgebase.KnowledgebaseRequestBuilder Knowledgebase - { - get => new global::NinjaOne.Client.V2.Knowledgebase.KnowledgebaseRequestBuilder(PathParameters, RequestAdapter); - } - /// The locations property - public global::NinjaOne.Client.V2.Locations.LocationsRequestBuilder Locations - { - get => new global::NinjaOne.Client.V2.Locations.LocationsRequestBuilder(PathParameters, RequestAdapter); - } - /// The noderole property - public global::NinjaOne.Client.V2.Noderole.NoderoleRequestBuilder Noderole - { - get => new global::NinjaOne.Client.V2.Noderole.NoderoleRequestBuilder(PathParameters, RequestAdapter); - } - /// The notificationChannels property - public global::NinjaOne.Client.V2.NotificationChannels.NotificationChannelsRequestBuilder NotificationChannels - { - get => new global::NinjaOne.Client.V2.NotificationChannels.NotificationChannelsRequestBuilder(PathParameters, RequestAdapter); - } - /// The organization property - public global::NinjaOne.Client.V2.Organization.OrganizationRequestBuilder Organization - { - get => new global::NinjaOne.Client.V2.Organization.OrganizationRequestBuilder(PathParameters, RequestAdapter); - } - /// The organizations property - public global::NinjaOne.Client.V2.Organizations.OrganizationsRequestBuilder Organizations - { - get => new global::NinjaOne.Client.V2.Organizations.OrganizationsRequestBuilder(PathParameters, RequestAdapter); - } - /// The organizationsDetailed property - public global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailedRequestBuilder OrganizationsDetailed - { - get => new global::NinjaOne.Client.V2.OrganizationsDetailed.OrganizationsDetailedRequestBuilder(PathParameters, RequestAdapter); - } - /// The policies property - public global::NinjaOne.Client.V2.Policies.PoliciesRequestBuilder Policies - { - get => new global::NinjaOne.Client.V2.Policies.PoliciesRequestBuilder(PathParameters, RequestAdapter); - } - /// The queries property - public global::NinjaOne.Client.V2.Queries.QueriesRequestBuilder Queries - { - get => new global::NinjaOne.Client.V2.Queries.QueriesRequestBuilder(PathParameters, RequestAdapter); - } - /// The relatedItems property - public global::NinjaOne.Client.V2.RelatedItems.RelatedItemsRequestBuilder RelatedItems - { - get => new global::NinjaOne.Client.V2.RelatedItems.RelatedItemsRequestBuilder(PathParameters, RequestAdapter); - } - /// The roles property - public global::NinjaOne.Client.V2.Roles.RolesRequestBuilder Roles - { - get => new global::NinjaOne.Client.V2.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); - } - /// The softwareLicense property - public global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicenseRequestBuilder SoftwareLicense - { - get => new global::NinjaOne.Client.V2.SoftwareLicense.SoftwareLicenseRequestBuilder(PathParameters, RequestAdapter); - } - /// The softwareProducts property - public global::NinjaOne.Client.V2.SoftwareProducts.SoftwareProductsRequestBuilder SoftwareProducts - { - get => new global::NinjaOne.Client.V2.SoftwareProducts.SoftwareProductsRequestBuilder(PathParameters, RequestAdapter); - } - /// The tab property - public global::NinjaOne.Client.V2.Tab.TabRequestBuilder Tab - { - get => new global::NinjaOne.Client.V2.Tab.TabRequestBuilder(PathParameters, RequestAdapter); - } - /// The tag property - public global::NinjaOne.Client.V2.Tag.TagRequestBuilder Tag - { - get => new global::NinjaOne.Client.V2.Tag.TagRequestBuilder(PathParameters, RequestAdapter); - } - /// The tasks property - public global::NinjaOne.Client.V2.Tasks.TasksRequestBuilder Tasks - { - get => new global::NinjaOne.Client.V2.Tasks.TasksRequestBuilder(PathParameters, RequestAdapter); - } - /// The ticketing property - public global::NinjaOne.Client.V2.Ticketing.TicketingRequestBuilder Ticketing - { - get => new global::NinjaOne.Client.V2.Ticketing.TicketingRequestBuilder(PathParameters, RequestAdapter); - } - /// The user property - public global::NinjaOne.Client.V2.User.UserRequestBuilder User - { - get => new global::NinjaOne.Client.V2.User.UserRequestBuilder(PathParameters, RequestAdapter); - } - /// The users property - public global::NinjaOne.Client.V2.Users.UsersRequestBuilder Users - { - get => new global::NinjaOne.Client.V2.Users.UsersRequestBuilder(PathParameters, RequestAdapter); - } - /// The vulnerability property - public global::NinjaOne.Client.V2.Vulnerability.VulnerabilityRequestBuilder Vulnerability - { - get => new global::NinjaOne.Client.V2.Vulnerability.VulnerabilityRequestBuilder(PathParameters, RequestAdapter); - } - /// The webhook property - public global::NinjaOne.Client.V2.Webhook.WebhookRequestBuilder Webhook - { - get => new global::NinjaOne.Client.V2.Webhook.WebhookRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public V2RequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public V2RequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Vulnerability/ScanGroups/Item/ScanGroupGetResponse.cs b/V2/Vulnerability/ScanGroups/Item/ScanGroupGetResponse.cs deleted file mode 100644 index 4c08876..0000000 --- a/V2/Vulnerability/ScanGroups/Item/ScanGroupGetResponse.cs +++ /dev/null @@ -1,147 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Vulnerability.ScanGroups.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ScanGroupGetResponse : 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 cveIdHeader property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? CveIdHeader { get; set; } -#nullable restore -#else - public string CveIdHeader { get; set; } -#endif - /// The deviceIdHeader property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DeviceIdHeader { get; set; } -#nullable restore -#else - public string DeviceIdHeader { get; set; } -#endif - /// The deviceInternalMapping property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DeviceInternalMapping { get; set; } -#nullable restore -#else - public string DeviceInternalMapping { get; set; } -#endif - /// The fileName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileName { get; set; } -#nullable restore -#else - public string FileName { get; set; } -#endif - /// The groupName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? GroupName { get; set; } -#nullable restore -#else - public string GroupName { get; set; } -#endif - /// The id property - public long? Id { get; set; } - /// The lastFileUploadDate property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastFileUploadDate { get; set; } -#nullable restore -#else - public string LastFileUploadDate { get; set; } -#endif - /// The recordsProcessed property - public int? RecordsProcessed { get; set; } - /// The status property - public global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.ScanGroupGetResponse_status? Status { get; set; } - /// The thirdPartyApiTile property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ThirdPartyApiTile { get; set; } -#nullable restore -#else - public string ThirdPartyApiTile { get; set; } -#endif - /// The vendor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Vendor { get; set; } -#nullable restore -#else - public string Vendor { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ScanGroupGetResponse() - { - 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::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.ScanGroupGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.ScanGroupGetResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cveIdHeader", n => { CveIdHeader = n.GetStringValue(); } }, - { "deviceIdHeader", n => { DeviceIdHeader = n.GetStringValue(); } }, - { "deviceInternalMapping", n => { DeviceInternalMapping = n.GetStringValue(); } }, - { "fileName", n => { FileName = n.GetStringValue(); } }, - { "groupName", n => { GroupName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetLongValue(); } }, - { "lastFileUploadDate", n => { LastFileUploadDate = n.GetStringValue(); } }, - { "recordsProcessed", n => { RecordsProcessed = n.GetIntValue(); } }, - { "status", n => { Status = n.GetEnumValue(); } }, - { "thirdPartyApiTile", n => { ThirdPartyApiTile = n.GetStringValue(); } }, - { "vendor", n => { Vendor = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("cveIdHeader", CveIdHeader); - writer.WriteStringValue("deviceIdHeader", DeviceIdHeader); - writer.WriteStringValue("deviceInternalMapping", DeviceInternalMapping); - writer.WriteStringValue("fileName", FileName); - writer.WriteStringValue("groupName", GroupName); - writer.WriteLongValue("id", Id); - writer.WriteStringValue("lastFileUploadDate", LastFileUploadDate); - writer.WriteIntValue("recordsProcessed", RecordsProcessed); - writer.WriteEnumValue("status", Status); - writer.WriteStringValue("thirdPartyApiTile", ThirdPartyApiTile); - writer.WriteStringValue("vendor", Vendor); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Vulnerability/ScanGroups/Item/ScanGroupGetResponse_status.cs b/V2/Vulnerability/ScanGroups/Item/ScanGroupGetResponse_status.cs deleted file mode 100644 index 30f99f4..0000000 --- a/V2/Vulnerability/ScanGroups/Item/ScanGroupGetResponse_status.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Vulnerability.ScanGroups.Item -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum ScanGroupGetResponse_status - #pragma warning restore CS1591 - { - [EnumMember(Value = "COMPLETE")] - #pragma warning disable CS1591 - COMPLETE, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_PROGRESS")] - #pragma warning disable CS1591 - IN_PROGRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILED")] - #pragma warning disable CS1591 - FAILED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Vulnerability/ScanGroups/Item/ScanGroupItemRequestBuilder.cs b/V2/Vulnerability/ScanGroups/Item/ScanGroupItemRequestBuilder.cs deleted file mode 100644 index 888bc24..0000000 --- a/V2/Vulnerability/ScanGroups/Item/ScanGroupItemRequestBuilder.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.Upload; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Vulnerability.ScanGroups.Item -{ - /// - /// Builds and executes requests for operations under \v2\vulnerability\scan-groups\{scan-group-id} - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScanGroupItemRequestBuilder : BaseRequestBuilder - { - /// The upload property - public global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.Upload.UploadRequestBuilder Upload - { - get => new global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.Upload.UploadRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ScanGroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/vulnerability/scan-groups/{scan%2Dgroup%2Did}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ScanGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/vulnerability/scan-groups/{scan%2Dgroup%2Did}", rawUrl) - { - } - /// - /// Fetches a single Scan Group by ID. - /// - /// 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 GetAsScanGroupGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsScanGroupGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.ScanGroupGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Fetches a single Scan Group by ID. - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use GetAsScanGroupGetResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.ScanGroupResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Fetches a single Scan Group by ID. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.ScanGroupItemRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.ScanGroupItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScanGroupItemRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Vulnerability/ScanGroups/Item/ScanGroupResponse.cs b/V2/Vulnerability/ScanGroups/Item/ScanGroupResponse.cs deleted file mode 100644 index 751f27b..0000000 --- a/V2/Vulnerability/ScanGroups/Item/ScanGroupResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Vulnerability.ScanGroups.Item -{ - [Obsolete("This class is obsolete. Use ScanGroupGetResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ScanGroupResponse : global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.ScanGroupGetResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.ScanGroupResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.ScanGroupResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Vulnerability/ScanGroups/Item/Upload/UploadPostResponse.cs b/V2/Vulnerability/ScanGroups/Item/Upload/UploadPostResponse.cs deleted file mode 100644 index 793630d..0000000 --- a/V2/Vulnerability/ScanGroups/Item/Upload/UploadPostResponse.cs +++ /dev/null @@ -1,147 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadPostResponse : 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 cveIdHeader property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? CveIdHeader { get; set; } -#nullable restore -#else - public string CveIdHeader { get; set; } -#endif - /// The deviceIdHeader property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DeviceIdHeader { get; set; } -#nullable restore -#else - public string DeviceIdHeader { get; set; } -#endif - /// The deviceInternalMapping property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DeviceInternalMapping { get; set; } -#nullable restore -#else - public string DeviceInternalMapping { get; set; } -#endif - /// The fileName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileName { get; set; } -#nullable restore -#else - public string FileName { get; set; } -#endif - /// The groupName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? GroupName { get; set; } -#nullable restore -#else - public string GroupName { get; set; } -#endif - /// The id property - public long? Id { get; set; } - /// The lastFileUploadDate property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastFileUploadDate { get; set; } -#nullable restore -#else - public string LastFileUploadDate { get; set; } -#endif - /// The recordsProcessed property - public int? RecordsProcessed { get; set; } - /// The status property - public global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.Upload.UploadPostResponse_status? Status { get; set; } - /// The thirdPartyApiTile property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ThirdPartyApiTile { get; set; } -#nullable restore -#else - public string ThirdPartyApiTile { get; set; } -#endif - /// The vendor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Vendor { get; set; } -#nullable restore -#else - public string Vendor { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UploadPostResponse() - { - 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::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.Upload.UploadPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.Upload.UploadPostResponse(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cveIdHeader", n => { CveIdHeader = n.GetStringValue(); } }, - { "deviceIdHeader", n => { DeviceIdHeader = n.GetStringValue(); } }, - { "deviceInternalMapping", n => { DeviceInternalMapping = n.GetStringValue(); } }, - { "fileName", n => { FileName = n.GetStringValue(); } }, - { "groupName", n => { GroupName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetLongValue(); } }, - { "lastFileUploadDate", n => { LastFileUploadDate = n.GetStringValue(); } }, - { "recordsProcessed", n => { RecordsProcessed = n.GetIntValue(); } }, - { "status", n => { Status = n.GetEnumValue(); } }, - { "thirdPartyApiTile", n => { ThirdPartyApiTile = n.GetStringValue(); } }, - { "vendor", n => { Vendor = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("cveIdHeader", CveIdHeader); - writer.WriteStringValue("deviceIdHeader", DeviceIdHeader); - writer.WriteStringValue("deviceInternalMapping", DeviceInternalMapping); - writer.WriteStringValue("fileName", FileName); - writer.WriteStringValue("groupName", GroupName); - writer.WriteLongValue("id", Id); - writer.WriteStringValue("lastFileUploadDate", LastFileUploadDate); - writer.WriteIntValue("recordsProcessed", RecordsProcessed); - writer.WriteEnumValue("status", Status); - writer.WriteStringValue("thirdPartyApiTile", ThirdPartyApiTile); - writer.WriteStringValue("vendor", Vendor); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Vulnerability/ScanGroups/Item/Upload/UploadPostResponse_status.cs b/V2/Vulnerability/ScanGroups/Item/Upload/UploadPostResponse_status.cs deleted file mode 100644 index 2043b65..0000000 --- a/V2/Vulnerability/ScanGroups/Item/Upload/UploadPostResponse_status.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.Upload -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum UploadPostResponse_status - #pragma warning restore CS1591 - { - [EnumMember(Value = "COMPLETE")] - #pragma warning disable CS1591 - COMPLETE, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_PROGRESS")] - #pragma warning disable CS1591 - IN_PROGRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILED")] - #pragma warning disable CS1591 - FAILED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Vulnerability/ScanGroups/Item/Upload/UploadRequestBuilder.cs b/V2/Vulnerability/ScanGroups/Item/Upload/UploadRequestBuilder.cs deleted file mode 100644 index e638e43..0000000 --- a/V2/Vulnerability/ScanGroups/Item/Upload/UploadRequestBuilder.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.Upload -{ - /// - /// Builds and executes requests for operations under \v2\vulnerability\scan-groups\{scan-group-id}\upload - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class UploadRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public UploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/vulnerability/scan-groups/{scan%2Dgroup%2Did}/upload", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public UploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/vulnerability/scan-groups/{scan%2Dgroup%2Did}/upload", rawUrl) - { - } - /// - /// Upload CSV to an existing scan group. The uploaded CSV must contain the columns defined in the scan group which map to the Ninja machine identifier (hostname, IP address, or MAC address) and the CVE ID. - /// - /// A - /// The request body - /// 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 PostAsUploadPostResponseAsync(MultipartBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsUploadPostResponseAsync(MultipartBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.Upload.UploadPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Upload CSV to an existing scan group. The uploaded CSV must contain the columns defined in the scan group which map to the Ninja machine identifier (hostname, IP address, or MAC address) and the CVE ID. - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - [Obsolete("This method is obsolete. Use PostAsUploadPostResponseAsync instead.")] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(MultipartBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(MultipartBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.Upload.UploadResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Upload CSV to an existing scan group. The uploaded CSV must contain the columns defined in the scan group which map to the Ninja machine identifier (hostname, IP address, or MAC address) and the CVE ID. - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(MultipartBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(MultipartBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "multipart/form-data", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.Upload.UploadRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.Upload.UploadRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class UploadRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Vulnerability/ScanGroups/Item/Upload/UploadResponse.cs b/V2/Vulnerability/ScanGroups/Item/Upload/UploadResponse.cs deleted file mode 100644 index ff24338..0000000 --- a/V2/Vulnerability/ScanGroups/Item/Upload/UploadResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.Upload -{ - [Obsolete("This class is obsolete. Use UploadPostResponse instead.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class UploadResponse : global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.Upload.UploadPostResponse, IParsable - #pragma warning restore CS1591 - { - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.Upload.UploadResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.Upload.UploadResponse(); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Vulnerability/ScanGroups/ScanGroups.cs b/V2/Vulnerability/ScanGroups/ScanGroups.cs deleted file mode 100644 index 90597a4..0000000 --- a/V2/Vulnerability/ScanGroups/ScanGroups.cs +++ /dev/null @@ -1,147 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Vulnerability.ScanGroups -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ScanGroups : 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 cveIdHeader property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? CveIdHeader { get; set; } -#nullable restore -#else - public string CveIdHeader { get; set; } -#endif - /// The deviceIdHeader property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DeviceIdHeader { get; set; } -#nullable restore -#else - public string DeviceIdHeader { get; set; } -#endif - /// The deviceInternalMapping property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DeviceInternalMapping { get; set; } -#nullable restore -#else - public string DeviceInternalMapping { get; set; } -#endif - /// The fileName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FileName { get; set; } -#nullable restore -#else - public string FileName { get; set; } -#endif - /// The groupName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? GroupName { get; set; } -#nullable restore -#else - public string GroupName { get; set; } -#endif - /// The id property - public long? Id { get; set; } - /// The lastFileUploadDate property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LastFileUploadDate { get; set; } -#nullable restore -#else - public string LastFileUploadDate { get; set; } -#endif - /// The recordsProcessed property - public int? RecordsProcessed { get; set; } - /// The status property - public global::NinjaOne.Client.V2.Vulnerability.ScanGroups.ScanGroups_status? Status { get; set; } - /// The thirdPartyApiTile property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ThirdPartyApiTile { get; set; } -#nullable restore -#else - public string ThirdPartyApiTile { get; set; } -#endif - /// The vendor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Vendor { get; set; } -#nullable restore -#else - public string Vendor { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ScanGroups() - { - 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::NinjaOne.Client.V2.Vulnerability.ScanGroups.ScanGroups CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Vulnerability.ScanGroups.ScanGroups(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "cveIdHeader", n => { CveIdHeader = n.GetStringValue(); } }, - { "deviceIdHeader", n => { DeviceIdHeader = n.GetStringValue(); } }, - { "deviceInternalMapping", n => { DeviceInternalMapping = n.GetStringValue(); } }, - { "fileName", n => { FileName = n.GetStringValue(); } }, - { "groupName", n => { GroupName = n.GetStringValue(); } }, - { "id", n => { Id = n.GetLongValue(); } }, - { "lastFileUploadDate", n => { LastFileUploadDate = n.GetStringValue(); } }, - { "recordsProcessed", n => { RecordsProcessed = n.GetIntValue(); } }, - { "status", n => { Status = n.GetEnumValue(); } }, - { "thirdPartyApiTile", n => { ThirdPartyApiTile = n.GetStringValue(); } }, - { "vendor", n => { Vendor = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("cveIdHeader", CveIdHeader); - writer.WriteStringValue("deviceIdHeader", DeviceIdHeader); - writer.WriteStringValue("deviceInternalMapping", DeviceInternalMapping); - writer.WriteStringValue("fileName", FileName); - writer.WriteStringValue("groupName", GroupName); - writer.WriteLongValue("id", Id); - writer.WriteStringValue("lastFileUploadDate", LastFileUploadDate); - writer.WriteIntValue("recordsProcessed", RecordsProcessed); - writer.WriteEnumValue("status", Status); - writer.WriteStringValue("thirdPartyApiTile", ThirdPartyApiTile); - writer.WriteStringValue("vendor", Vendor); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Vulnerability/ScanGroups/ScanGroupsRequestBuilder.cs b/V2/Vulnerability/ScanGroups/ScanGroupsRequestBuilder.cs deleted file mode 100644 index 9345fd9..0000000 --- a/V2/Vulnerability/ScanGroups/ScanGroupsRequestBuilder.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Vulnerability.ScanGroups.Item; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Vulnerability.ScanGroups -{ - /// - /// Builds and executes requests for operations under \v2\vulnerability\scan-groups - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScanGroupsRequestBuilder : BaseRequestBuilder - { - /// Gets an item from the NinjaOne.Client.v2.vulnerability.scanGroups.item collection - /// Unique ID of the scan group to upload CSV to - /// A - public global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.ScanGroupItemRequestBuilder this[long position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("scan%2Dgroup%2Did", position); - return new global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.ScanGroupItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// Gets an item from the NinjaOne.Client.v2.vulnerability.scanGroups.item collection - /// Unique ID of the scan group to upload CSV to - /// A - [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")] - public global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.ScanGroupItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("scan%2Dgroup%2Did", position); - return new global::NinjaOne.Client.V2.Vulnerability.ScanGroups.Item.ScanGroupItemRequestBuilder(urlTplParams, RequestAdapter); - } - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ScanGroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/vulnerability/scan-groups", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ScanGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/vulnerability/scan-groups", rawUrl) - { - } - /// - /// Fetches all Scan Groups. - /// - /// A List<global::NinjaOne.Client.V2.Vulnerability.ScanGroups.ScanGroups> - /// 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) - { -#nullable restore -#else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::NinjaOne.Client.V2.Vulnerability.ScanGroups.ScanGroups.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.AsList(); - } - /// - /// Fetches all Scan Groups. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Vulnerability.ScanGroups.ScanGroupsRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Vulnerability.ScanGroups.ScanGroupsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ScanGroupsRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Vulnerability/ScanGroups/ScanGroups_status.cs b/V2/Vulnerability/ScanGroups/ScanGroups_status.cs deleted file mode 100644 index 2248c1f..0000000 --- a/V2/Vulnerability/ScanGroups/ScanGroups_status.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace NinjaOne.Client.V2.Vulnerability.ScanGroups -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public enum ScanGroups_status - #pragma warning restore CS1591 - { - [EnumMember(Value = "COMPLETE")] - #pragma warning disable CS1591 - COMPLETE, - #pragma warning restore CS1591 - [EnumMember(Value = "IN_PROGRESS")] - #pragma warning disable CS1591 - IN_PROGRESS, - #pragma warning restore CS1591 - [EnumMember(Value = "FAILED")] - #pragma warning disable CS1591 - FAILED, - #pragma warning restore CS1591 - } -} diff --git a/V2/Vulnerability/VulnerabilityRequestBuilder.cs b/V2/Vulnerability/VulnerabilityRequestBuilder.cs deleted file mode 100644 index 0ee4d72..0000000 --- a/V2/Vulnerability/VulnerabilityRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions; -using NinjaOne.Client.V2.Vulnerability.ScanGroups; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System; -namespace NinjaOne.Client.V2.Vulnerability -{ - /// - /// Builds and executes requests for operations under \v2\vulnerability - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class VulnerabilityRequestBuilder : BaseRequestBuilder - { - /// The scanGroups property - public global::NinjaOne.Client.V2.Vulnerability.ScanGroups.ScanGroupsRequestBuilder ScanGroups - { - get => new global::NinjaOne.Client.V2.Vulnerability.ScanGroups.ScanGroupsRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public VulnerabilityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/vulnerability", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public VulnerabilityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/vulnerability", rawUrl) - { - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Webhook/WebhookPutRequestBody.cs b/V2/Webhook/WebhookPutRequestBody.cs deleted file mode 100644 index 2f5f4f1..0000000 --- a/V2/Webhook/WebhookPutRequestBody.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Webhook -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class WebhookPutRequestBody : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Activity filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public global::NinjaOne.Client.V2.Webhook.WebhookPutRequestBody_activities? Activities { get; set; } -#nullable restore -#else - public global::NinjaOne.Client.V2.Webhook.WebhookPutRequestBody_activities Activities { get; set; } -#endif - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Which references to expand in payloads -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Expand { get; set; } -#nullable restore -#else - public List Expand { get; set; } -#endif - /// Custom HTTP Headers (i.e. Authorization) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Headers { get; set; } -#nullable restore -#else - public List Headers { get; set; } -#endif - /// List of organization id to be filtered -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? OrganizationIds { get; set; } -#nullable restore -#else - public List OrganizationIds { get; set; } -#endif - /// Callback (WebHook) URL for activity notifications -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Url { get; set; } -#nullable restore -#else - public string Url { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WebhookPutRequestBody() - { - 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::NinjaOne.Client.V2.Webhook.WebhookPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Webhook.WebhookPutRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "activities", n => { Activities = n.GetObjectValue(global::NinjaOne.Client.V2.Webhook.WebhookPutRequestBody_activities.CreateFromDiscriminatorValue); } }, - { "expand", n => { Expand = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "headers", n => { Headers = n.GetCollectionOfObjectValues(global::NinjaOne.Client.V2.Webhook.WebhookPutRequestBody_headers.CreateFromDiscriminatorValue)?.AsList(); } }, - { "organizationIds", n => { OrganizationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, - { "url", n => { Url = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("activities", Activities); - writer.WriteCollectionOfPrimitiveValues("expand", Expand); - writer.WriteCollectionOfObjectValues("headers", Headers); - writer.WriteCollectionOfPrimitiveValues("organizationIds", OrganizationIds); - writer.WriteStringValue("url", Url); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Webhook/WebhookPutRequestBody_activities.cs b/V2/Webhook/WebhookPutRequestBody_activities.cs deleted file mode 100644 index f2bf05c..0000000 --- a/V2/Webhook/WebhookPutRequestBody_activities.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Webhook -{ - /// - /// Activity filter - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WebhookPutRequestBody_activities : 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. - /// - public WebhookPutRequestBody_activities() - { - 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::NinjaOne.Client.V2.Webhook.WebhookPutRequestBody_activities CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Webhook.WebhookPutRequestBody_activities(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Webhook/WebhookPutRequestBody_headers.cs b/V2/Webhook/WebhookPutRequestBody_headers.cs deleted file mode 100644 index b5a5b54..0000000 --- a/V2/Webhook/WebhookPutRequestBody_headers.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace NinjaOne.Client.V2.Webhook -{ - /// - /// Custom HTTP Headers (i.e. Authorization) - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WebhookPutRequestBody_headers : 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; } - /// Header name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// Header value -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WebhookPutRequestBody_headers() - { - 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::NinjaOne.Client.V2.Webhook.WebhookPutRequestBody_headers CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::NinjaOne.Client.V2.Webhook.WebhookPutRequestBody_headers(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "name", n => { Name = n.GetStringValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} -#pragma warning restore CS0618 diff --git a/V2/Webhook/WebhookRequestBuilder.cs b/V2/Webhook/WebhookRequestBuilder.cs deleted file mode 100644 index 0ae69ae..0000000 --- a/V2/Webhook/WebhookRequestBuilder.cs +++ /dev/null @@ -1,137 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace NinjaOne.Client.V2.Webhook -{ - /// - /// Builds and executes requests for operations under \v2\webhook - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WebhookRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WebhookRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/webhook", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WebhookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/v2/webhook", rawUrl) - { - } - /// - /// Disables Webhook configuration for current application/client - /// - /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Creates or updates Webhook configuration for current application/client - /// - /// The request body - /// 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 PutAsync(global::NinjaOne.Client.V2.Webhook.WebhookPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PutAsync(global::NinjaOne.Client.V2.Webhook.WebhookPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Disables Webhook configuration for current application/client - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Creates or updates Webhook configuration for current application/client - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(global::NinjaOne.Client.V2.Webhook.WebhookPutRequestBody body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(global::NinjaOne.Client.V2.Webhook.WebhookPutRequestBody body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::NinjaOne.Client.V2.Webhook.WebhookRequestBuilder WithUrl(string rawUrl) - { - return new global::NinjaOne.Client.V2.Webhook.WebhookRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WebhookRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class WebhookRequestBuilderPutRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/authorization.json b/authorization.json new file mode 100644 index 0000000..069d923 --- /dev/null +++ b/authorization.json @@ -0,0 +1 @@ +{"openapi":"3.0.1","info":{"title":"Authorization","description":"The NinjaRMM Public API uses OAuth2 to authenticate requests. OAuth 2.0\nallows applications to obtain access to NinjaRMM resources (such as\nmonitoring information) that are made available via the API.\n\nTo start using the OAuth protocol for your app’s authentication with NinjaRMM, you must first\nhave an OAuth app credential from the NinjaRMM system. The OAuth app will have an\n**authorization grant** set up for you. OAuth 2.0 supports various grant types. However,\nNinjaRMM Public API supports **authorization code** and **implicit** grant types."},"security":[],"tags":[],"paths":{"/ws/oauth/authorize":{"get":{"summary":"Authorize user","description":"The first step when authenticating a user using OAuth 2.0 is to send them through\nthe NinjaRMM portal and request permission to act on their behalf.\n\nTo request a user’s authorization to use the NinjaRMM Public APIs on their behalf, \nyou will need to send a user to the above URL with this format.","operationId":"get_authorize","tags":["Endpoints"],"parameters":[{"name":"response_type","description":"The type of response we'd like to receive.\nUse `code` for **Authorization Code Flow** and `token` for **Implicit Flow**.","in":"query","example":"code","required":true,"schema":{"type":"string","format":"token","enum":["code","token"]}},{"name":"client_id","description":"The Client ID of the application that is requesting to authenticate\nthe user.","in":"query","required":true,"schema":{"type":"string"}},{"name":"client_secret","description":"The Client Secret of the application that is requesting to authenticate\nthe user. This value is **required** for private client applications.","in":"query","required":false,"schema":{"type":"string"}},{"name":"redirect_uri","description":"The URL to which NinjaRMM redirects the browser after the user has granted\nor denied the application permission. This URL must match the\nredirect URL in the configuration of your application. It must be a\nvalid HTTPS URL and it needs to be able to handle the redirection to\ncomplete the next step in the OAuth 2.0 flow.","in":"query","example":"http://localhost","required":true,"schema":{"type":"string","format":"url"}},{"name":"state","description":"A custom string of your choice. NinjaRMM will pass the same string to\nthe redirect URL when authentication is complete. This parameter\ncan be used to identify a user on redirect, as well as a CSRF protection\nmechanism if it contains a random value per request.","in":"query","example":"custom_state","required":false,"schema":{"type":"string"}},{"name":"scope","description":"A space-separated list of application scopes that you’d like to authenticate the user for.\nThis defaults to all of the scopes configured for the application in its configuration.","in":"query","example":"monitoring","required":false,"schema":{"type":"string"}},{"name":"code_challenge","description":"A plain or hashed and encoded value generated by the client application.\nThis value is verified before the client application is allowed to exchange an\nauthorization code for a set of tokens. This value is required for\npublic client applications using PKCE.","in":"query","required":false,"schema":{"type":"string"}},{"name":"code_challenge_method","description":"The method used to generate the value of the `code_challenge` parameter.","in":"query","required":false,"schema":{"type":"string","format":"token","enum":["plain","S256"]}}],"responses":{"default":{"description":"Does not return any data, but rather should be used in the browser.","content":{"text/html":{"schema":{"type":"string","format":"html"}}}}}}},"/ws/oauth/token":{"post":{"summary":"Request access token","description":"Request an Access Token using a client-side obtained OAuth 2.0 authorization code.\n\nAn Access Token is a string that enables NinjaRMM to verify that a request belongs\nto an authorized session. In the normal order of operations, you will begin by requesting\nauthentication from the [authorize](#authorization/get_authorize) endpoint and NinjaRMM \nwill send you an authorization code.\n\nYou will then send this code to the endpoint to exchange it for an Access Token.\nThe returned Access Token can then be used to make NinjaRMM Public API calls.","operationId":"post_oauth2_token","tags":["Endpoints"],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/PostOAuth2Token"}}}},"responses":{"200":{"description":"Returns a new Access Token that can be used to make authenticated\nAPI calls by passing along the token in a authorization header as\nfollows `Authorization: Bearer `.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessToken"}}}},"400":{"description":"An authentication error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2Error"}}}}}}}},"components":{"schemas":{"PostOAuth2Token":{"title":"Token request","type":"object","description":"A request for a new OAuth 2.0 token","required":["grant_type","client_id"],"properties":{"grant_type":{"type":"string","format":"urn","example":"authorization_code","description":"The type of request being made, either using a client-side obtained\nauthorization code or refresh token for the purpose of downscoping a token.","enum":["authorization_code","client_credentials","refresh_token"]},"client_id":{"type":"string","description":"The Client ID of the application requesting an access token."},"client_secret":{"type":"string","description":"The client secret of the application requesting an access token.\nThis value is **required** when the client application is a private client."},"scope":{"type":"string","example":"monitoring","description":"A space-separated list of application scopes that you’d like to authenticate the user for.\nThis defaults to all of the scopes configured for the application in its configuration."},"code":{"type":"string","format":"token","description":"The client-side authorization code passed to your application by\nNinjaRMM in the browser redirect after the user has successfully\ngranted your application permission to make API calls on their\nbehalf.\n\nUsed in combination with `authorization_code` as the `grant_type`."},"refresh_token":{"type":"string","format":"token","description":"A refresh token which is used to get a new access token.\n\nUsed in combination with `refresh_token` as the `grant_type`."},"redirect_uri":{"type":"string","format":"url","description":"The redirect URL included in the initial authorization request.\nThis value is **required** when exchanging the `code` for an `access_token`","example":"http://localhost"},"code_verifier":{"type":"string","description":"The PKCE code verifier that your app generated at the beginning of the authorization request.\nThis value is **required** when using PKCE parameters during the authorize request."}}},"AccessToken":{"title":"Access token","type":"object","description":"A token that can be used to make authenticated API calls.","properties":{"access_token":{"type":"string","format":"token","example":"Qu5h5FzU9s_Dz7n4ZwJ5bWjg3CcupFW8lO7F_rPAsU4.N24zCN5F0ix3xZAsII0QomA7HALN1grDDbeyGCG0aOj","description":"The requested access token."},"expires_in":{"type":"integer","format":"int64","example":3600,"description":"The time in seconds in seconds by which this token will expire."},"token_type":{"type":"string","enum":["bearer"],"example":"bearer","description":"The type of access token returned."},"refresh_token":{"type":"string","format":"token","example":"851fe9c6-e130-4e15-f1e0-ae6d54f37ecf.kmlLuF5rTKklWJrHxGYNJ2AvbrY8v8PyryfH9JExlRk=","description":"The refresh token for this access token, if offline access was requested,\nwhich can be used to request a new access token when the current one expires."},"scope":{"type":"string","example":"monitoring offline_access","description":"The requested scope associated with the `access_token`."}}},"OAuth2Error":{"title":"OAuth 2.0 error","type":"object","description":"An OAuth 2.0 error","properties":{"error":{"type":"string","example":"invalid_client","description":"The type of the error returned."},"error_description":{"type":"string","example":"The client credentials are not valid","description":"The type of the error returned."}}}}}} \ No newline at end of file diff --git a/kiota-lock.json b/kiota-lock.json deleted file mode 100644 index 69248b3..0000000 --- a/kiota-lock.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "descriptionHash": "0F34DA1CBDD1365AB209695077FE21DC495683D4F01CE4CE488CC081D83675C44BC634DA6632C22E3E5EB68FDE41CE519C9E0A643158DFAABC30F0D917C82B4A", - "descriptionLocation": "https://app.ninjarmm.com/apidocs/NinjaRMM-API-v2.json", - "lockFileVersion": "1.0.0", - "kiotaVersion": "1.29.0", - "clientClassName": "NinjaOneClient", - "typeAccessModifier": "Public", - "clientNamespaceName": "NinjaOne.Client", - "language": "CSharp", - "usesBackingStore": false, - "excludeBackwardCompatible": false, - "includeAdditionalData": true, - "disableSSLValidation": false, - "serializers": [ - "Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory", - "Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory", - "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory", - "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory" - ], - "deserializers": [ - "Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory", - "Microsoft.Kiota.Serialization.Text.TextParseNodeFactory", - "Microsoft.Kiota.Serialization.Form.FormParseNodeFactory" - ], - "structuredMimeTypes": [ - "application/json", - "text/plain;q=0.9", - "application/x-www-form-urlencoded;q=0.2", - "multipart/form-data;q=0.1" - ], - "includePatterns": [], - "excludePatterns": [], - "disabledValidationRules": [] -} \ No newline at end of file