diff --git a/Rest/OpenHAB/Core/Rest/Actions/ActionsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Actions/ActionsRequestBuilder.cs
deleted file mode 100644
index e709dcd..0000000
--- a/Rest/OpenHAB/Core/Rest/Actions/ActionsRequestBuilder.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Actions.Item;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System;
-namespace OpenHAB.Core.Rest.Actions {
- ///
- /// Builds and executes requests for operations under \actions
- ///
- public class ActionsRequestBuilder : BaseRequestBuilder {
- /// Gets an item from the openHAB.Core.Rest.actions.item collection
- /// thingUID
- /// A
- public WithThingUItemRequestBuilder this[string position] { get {
- var urlTplParams = new Dictionary(PathParameters);
- urlTplParams.Add("thingUID", position);
- return new WithThingUItemRequestBuilder(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 ActionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/actions", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public ActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/actions", rawUrl) {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Actions/Item/Item/WithActionUItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Actions/Item/Item/WithActionUItemRequestBuilder.cs
deleted file mode 100644
index 7d5df2e..0000000
--- a/Rest/OpenHAB/Core/Rest/Actions/Item/Item/WithActionUItemRequestBuilder.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Actions.Item.Item {
- ///
- /// Builds and executes requests for operations under \actions\{thingUID}\{actionUid}
- ///
- public class WithActionUItemRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public WithActionUItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/actions/{thingUID}/{actionUid}", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public WithActionUItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/actions/{thingUID}/{actionUid}", rawUrl) {
- }
- ///
- /// Executes a thing action.
- ///
- /// 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(WithActionUPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
-#nullable restore
-#else
- public async Task PostAsync(WithActionUPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = ToPostRequestInformation(body, requestConfiguration);
- return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Executes a thing action.
- ///
- /// 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(WithActionUPostRequestBody body, Action>? requestConfiguration = default) {
-#nullable restore
-#else
- public RequestInformation ToPostRequestInformation(WithActionUPostRequestBody body, Action> requestConfiguration = default) {
-#endif
- _ = body ?? 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 WithActionUItemRequestBuilder WithUrl(string rawUrl) {
- return new WithActionUItemRequestBuilder(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.")]
- public class WithActionUItemRequestBuilderPostRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Actions/Item/Item/WithActionUPostRequestBody.cs b/Rest/OpenHAB/Core/Rest/Actions/Item/Item/WithActionUPostRequestBody.cs
deleted file mode 100644
index fb15e99..0000000
--- a/Rest/OpenHAB/Core/Rest/Actions/Item/Item/WithActionUPostRequestBody.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System;
-namespace OpenHAB.Core.Rest.Actions.Item.Item {
- public class WithActionUPostRequestBody : IAdditionalDataHolder, IParsable {
- /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
- public IDictionary AdditionalData { get; set; }
- ///
- /// Instantiates a new and sets the default values.
- ///
- public WithActionUPostRequestBody() {
- AdditionalData = new Dictionary();
- }
- ///
- /// Creates a new instance of the appropriate class based on discriminator value
- ///
- /// A
- /// The parse node to use to read the discriminator value and create the object
- public static WithActionUPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
- _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new WithActionUPostRequestBody();
- }
- ///
- /// The deserialization information for the current model
- ///
- /// A IDictionary<string, Action<IParseNode>>
- public virtual IDictionary> GetFieldDeserializers() {
- return new Dictionary> {
- };
- }
- ///
- /// Serializes information the current object
- ///
- /// Serialization writer to use to serialize this model
- public virtual void Serialize(ISerializationWriter writer) {
- _ = writer ?? throw new ArgumentNullException(nameof(writer));
- writer.WriteAdditionalData(AdditionalData);
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Actions/Item/WithThingUItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Actions/Item/WithThingUItemRequestBuilder.cs
deleted file mode 100644
index c300b93..0000000
--- a/Rest/OpenHAB/Core/Rest/Actions/Item/WithThingUItemRequestBuilder.cs
+++ /dev/null
@@ -1,88 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Actions.Item.Item;
-using OpenHAB.Core.Rest.Models;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Actions.Item {
- ///
- /// Builds and executes requests for operations under \actions\{thingUID}
- ///
- public class WithThingUItemRequestBuilder : BaseRequestBuilder {
- /// Gets an item from the openHAB.Core.Rest.actions.item.item collection
- /// action type UID (including scope, separated by '.')
- /// A
- public WithActionUItemRequestBuilder this[string position] { get {
- var urlTplParams = new Dictionary(PathParameters);
- urlTplParams.Add("actionUid", position);
- return new WithActionUItemRequestBuilder(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 WithThingUItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/actions/{thingUID}", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public WithThingUItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/actions/{thingUID}", rawUrl) {
- }
- ///
- /// Get all available actions for provided thing UID
- ///
- /// A List<ThingActionDTO>
- /// 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, ThingActionDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
- }
- ///
- /// Get all available actions for provided thing 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 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 WithThingUItemRequestBuilder WithUrl(string rawUrl) {
- return new WithThingUItemRequestBuilder(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.")]
- public class WithThingUItemRequestBuilderGetRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Addons/AddonsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Addons/AddonsRequestBuilder.cs
deleted file mode 100644
index b3428a0..0000000
--- a/Rest/OpenHAB/Core/Rest/Addons/AddonsRequestBuilder.cs
+++ /dev/null
@@ -1,123 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Addons.Item;
-using OpenHAB.Core.Rest.Addons.Services;
-using OpenHAB.Core.Rest.Addons.Suggestions;
-using OpenHAB.Core.Rest.Addons.Types;
-using OpenHAB.Core.Rest.Addons.Url;
-using OpenHAB.Core.Rest.Models;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Addons {
- ///
- /// Builds and executes requests for operations under \addons
- ///
- public class AddonsRequestBuilder : BaseRequestBuilder {
- /// The services property
- public ServicesRequestBuilder Services { get =>
- new ServicesRequestBuilder(PathParameters, RequestAdapter);
- }
- /// The suggestions property
- public SuggestionsRequestBuilder Suggestions { get =>
- new SuggestionsRequestBuilder(PathParameters, RequestAdapter);
- }
- /// The types property
- public TypesRequestBuilder Types { get =>
- new TypesRequestBuilder(PathParameters, RequestAdapter);
- }
- /// The url property
- public UrlRequestBuilder Url { get =>
- new UrlRequestBuilder(PathParameters, RequestAdapter);
- }
- /// Gets an item from the openHAB.Core.Rest.addons.item collection
- /// addon ID
- /// A
- public WithAddonItemRequestBuilder this[string position] { get {
- var urlTplParams = new Dictionary(PathParameters);
- urlTplParams.Add("addonId", position);
- return new WithAddonItemRequestBuilder(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 AddonsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons{?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 AddonsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons{?serviceId*}", rawUrl) {
- }
- ///
- /// Get all add-ons.
- ///
- /// A List<Addon>
- /// 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, Addon.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
- }
- ///
- /// Get all add-ons.
- ///
- /// 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 AddonsRequestBuilder WithUrl(string rawUrl) {
- return new AddonsRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Get all add-ons.
- ///
- public class AddonsRequestBuilderGetQueryParameters {
- /// service ID
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("serviceId")]
- public string? ServiceId { get; set; }
-#nullable restore
-#else
- [QueryParameter("serviceId")]
- public string ServiceId { 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.")]
- public class AddonsRequestBuilderGetRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Addons/Item/Config/ConfigPutRequestBody.cs b/Rest/OpenHAB/Core/Rest/Addons/Item/Config/ConfigPutRequestBody.cs
deleted file mode 100644
index 60e913a..0000000
--- a/Rest/OpenHAB/Core/Rest/Addons/Item/Config/ConfigPutRequestBody.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System;
-namespace OpenHAB.Core.Rest.Addons.Item.Config {
- public class ConfigPutRequestBody : IAdditionalDataHolder, IParsable {
- /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
- public IDictionary AdditionalData { get; set; }
- ///
- /// Instantiates a new and sets the default values.
- ///
- public ConfigPutRequestBody() {
- AdditionalData = new Dictionary();
- }
- ///
- /// Creates a new instance of the appropriate class based on discriminator value
- ///
- /// A
- /// The parse node to use to read the discriminator value and create the object
- public static ConfigPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
- _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new ConfigPutRequestBody();
- }
- ///
- /// The deserialization information for the current model
- ///
- /// A IDictionary<string, Action<IParseNode>>
- public virtual IDictionary> GetFieldDeserializers() {
- return new Dictionary> {
- };
- }
- ///
- /// Serializes information the current object
- ///
- /// Serialization writer to use to serialize this model
- public virtual void Serialize(ISerializationWriter writer) {
- _ = writer ?? throw new ArgumentNullException(nameof(writer));
- writer.WriteAdditionalData(AdditionalData);
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Addons/Item/Config/ConfigRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Addons/Item/Config/ConfigRequestBuilder.cs
deleted file mode 100644
index eca8326..0000000
--- a/Rest/OpenHAB/Core/Rest/Addons/Item/Config/ConfigRequestBuilder.cs
+++ /dev/null
@@ -1,151 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Addons.Item.Config {
- ///
- /// Builds and executes requests for operations under \addons\{addonId}\config
- ///
- public class ConfigRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public ConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/{addonId}/config{?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 ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/{addonId}/config{?serviceId*}", rawUrl) {
- }
- ///
- /// Get add-on configuration for given add-on 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 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);
- }
- ///
- /// Updates an add-on configuration for given ID and returns the old configuration.
- ///
- /// 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(ConfigPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
-#nullable restore
-#else
- public async Task PutAsync(ConfigPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = ToPutRequestInformation(body, requestConfiguration);
- return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Get add-on configuration for given add-on 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;
- }
- ///
- /// Updates an add-on configuration for given ID and returns the old configuration.
- ///
- /// 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(ConfigPutRequestBody body, Action>? requestConfiguration = default) {
-#nullable restore
-#else
- public RequestInformation ToPutRequestInformation(ConfigPutRequestBody body, Action> requestConfiguration = default) {
-#endif
- _ = body ?? 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 ConfigRequestBuilder WithUrl(string rawUrl) {
- return new ConfigRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Get add-on configuration for given add-on ID.
- ///
- public class ConfigRequestBuilderGetQueryParameters {
- /// service ID
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("serviceId")]
- public string? ServiceId { get; set; }
-#nullable restore
-#else
- [QueryParameter("serviceId")]
- public string ServiceId { 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.")]
- public class ConfigRequestBuilderGetRequestConfiguration : RequestConfiguration {
- }
- ///
- /// Updates an add-on configuration for given ID and returns the old configuration.
- ///
- public class ConfigRequestBuilderPutQueryParameters {
- /// service ID
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("serviceId")]
- public string? ServiceId { get; set; }
-#nullable restore
-#else
- [QueryParameter("serviceId")]
- public string ServiceId { 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.")]
- public class ConfigRequestBuilderPutRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Addons/Item/Install/InstallRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Addons/Item/Install/InstallRequestBuilder.cs
deleted file mode 100644
index 615129a..0000000
--- a/Rest/OpenHAB/Core/Rest/Addons/Item/Install/InstallRequestBuilder.cs
+++ /dev/null
@@ -1,91 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Addons.Item.Install {
- ///
- /// Builds and executes requests for operations under \addons\{addonId}\install
- ///
- public class InstallRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public InstallRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/{addonId}/install{?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 InstallRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/{addonId}/install{?serviceId*}", rawUrl) {
- }
- ///
- /// Installs the add-on with the given 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 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);
- }
- ///
- /// Installs the add-on with the given 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 InstallRequestBuilder WithUrl(string rawUrl) {
- return new InstallRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Installs the add-on with the given ID.
- ///
- public class InstallRequestBuilderPostQueryParameters {
- /// service ID
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("serviceId")]
- public string? ServiceId { get; set; }
-#nullable restore
-#else
- [QueryParameter("serviceId")]
- public string ServiceId { 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.")]
- public class InstallRequestBuilderPostRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Addons/Item/Uninstall/UninstallRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Addons/Item/Uninstall/UninstallRequestBuilder.cs
deleted file mode 100644
index bee9900..0000000
--- a/Rest/OpenHAB/Core/Rest/Addons/Item/Uninstall/UninstallRequestBuilder.cs
+++ /dev/null
@@ -1,91 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Addons.Item.Uninstall {
- ///
- /// Builds and executes requests for operations under \addons\{addonId}\uninstall
- ///
- public class UninstallRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public UninstallRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/{addonId}/uninstall{?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 UninstallRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/{addonId}/uninstall{?serviceId*}", rawUrl) {
- }
- ///
- /// Uninstalls the add-on with the given 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 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);
- }
- ///
- /// Uninstalls the add-on with the given 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 UninstallRequestBuilder WithUrl(string rawUrl) {
- return new UninstallRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Uninstalls the add-on with the given ID.
- ///
- public class UninstallRequestBuilderPostQueryParameters {
- /// service ID
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("serviceId")]
- public string? ServiceId { get; set; }
-#nullable restore
-#else
- [QueryParameter("serviceId")]
- public string ServiceId { 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.")]
- public class UninstallRequestBuilderPostRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Addons/Item/WithAddonItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Addons/Item/WithAddonItemRequestBuilder.cs
deleted file mode 100644
index 57aa598..0000000
--- a/Rest/OpenHAB/Core/Rest/Addons/Item/WithAddonItemRequestBuilder.cs
+++ /dev/null
@@ -1,108 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Addons.Item.Config;
-using OpenHAB.Core.Rest.Addons.Item.Install;
-using OpenHAB.Core.Rest.Addons.Item.Uninstall;
-using OpenHAB.Core.Rest.Models;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Addons.Item {
- ///
- /// Builds and executes requests for operations under \addons\{addonId}
- ///
- public class WithAddonItemRequestBuilder : BaseRequestBuilder {
- /// The config property
- public ConfigRequestBuilder Config { get =>
- new ConfigRequestBuilder(PathParameters, RequestAdapter);
- }
- /// The install property
- public InstallRequestBuilder Install { get =>
- new InstallRequestBuilder(PathParameters, RequestAdapter);
- }
- /// The uninstall property
- public UninstallRequestBuilder Uninstall { get =>
- new UninstallRequestBuilder(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 WithAddonItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/{addonId}{?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 WithAddonItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/{addonId}{?serviceId*}", rawUrl) {
- }
- ///
- /// Get add-on with given 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 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, Addon.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Get add-on with given 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 WithAddonItemRequestBuilder WithUrl(string rawUrl) {
- return new WithAddonItemRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Get add-on with given ID.
- ///
- public class WithAddonItemRequestBuilderGetQueryParameters {
- /// service ID
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("serviceId")]
- public string? ServiceId { get; set; }
-#nullable restore
-#else
- [QueryParameter("serviceId")]
- public string ServiceId { 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.")]
- public class WithAddonItemRequestBuilderGetRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Addons/Services/ServicesRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Addons/Services/ServicesRequestBuilder.cs
deleted file mode 100644
index ad0b8b7..0000000
--- a/Rest/OpenHAB/Core/Rest/Addons/Services/ServicesRequestBuilder.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Models;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Addons.Services {
- ///
- /// Builds and executes requests for operations under \addons\services
- ///
- public class ServicesRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public ServicesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/services", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public ServicesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/services", rawUrl) {
- }
- ///
- /// Get all add-on types.
- ///
- /// A List<AddonType>
- /// 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, AddonType.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
- }
- ///
- /// Get all add-on types.
- ///
- /// 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 ServicesRequestBuilder WithUrl(string rawUrl) {
- return new ServicesRequestBuilder(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.")]
- public class ServicesRequestBuilderGetRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Addons/Suggestions/SuggestionsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Addons/Suggestions/SuggestionsRequestBuilder.cs
deleted file mode 100644
index d74c77a..0000000
--- a/Rest/OpenHAB/Core/Rest/Addons/Suggestions/SuggestionsRequestBuilder.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Models;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Addons.Suggestions {
- ///
- /// Builds and executes requests for operations under \addons\suggestions
- ///
- public class SuggestionsRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public SuggestionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/suggestions", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public SuggestionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/suggestions", rawUrl) {
- }
- ///
- /// Get suggested add-ons to be installed.
- ///
- /// A List<Addon>
- /// 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, Addon.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
- }
- ///
- /// Get suggested add-ons to be installed.
- ///
- /// 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 SuggestionsRequestBuilder WithUrl(string rawUrl) {
- return new SuggestionsRequestBuilder(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.")]
- public class SuggestionsRequestBuilderGetRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Addons/Types/TypesRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Addons/Types/TypesRequestBuilder.cs
deleted file mode 100644
index b738bbe..0000000
--- a/Rest/OpenHAB/Core/Rest/Addons/Types/TypesRequestBuilder.cs
+++ /dev/null
@@ -1,94 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Models;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Addons.Types {
- ///
- /// Builds and executes requests for operations under \addons\types
- ///
- public class TypesRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public TypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/types{?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 TypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/types{?serviceId*}", rawUrl) {
- }
- ///
- /// Get add-on services.
- ///
- /// A List<AddonType>
- /// 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, AddonType.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
- }
- ///
- /// Get add-on services.
- ///
- /// 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 TypesRequestBuilder WithUrl(string rawUrl) {
- return new TypesRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Get add-on services.
- ///
- public class TypesRequestBuilderGetQueryParameters {
- /// service ID
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("serviceId")]
- public string? ServiceId { get; set; }
-#nullable restore
-#else
- [QueryParameter("serviceId")]
- public string ServiceId { 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.")]
- public class TypesRequestBuilderGetRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Addons/Url/Item/Install/InstallRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Addons/Url/Item/Install/InstallRequestBuilder.cs
deleted file mode 100644
index d9e9c25..0000000
--- a/Rest/OpenHAB/Core/Rest/Addons/Url/Item/Install/InstallRequestBuilder.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Addons.Url.Item.Install {
- ///
- /// Builds and executes requests for operations under \addons\url\{url}\install
- ///
- public class InstallRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public InstallRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/url/{url}/install", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public InstallRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/url/{url}/install", rawUrl) {
- }
- ///
- /// Installs the add-on from the given URL.
- ///
- /// 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);
- }
- ///
- /// Installs the add-on from the given URL.
- ///
- /// 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 InstallRequestBuilder WithUrl(string rawUrl) {
- return new InstallRequestBuilder(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.")]
- public class InstallRequestBuilderPostRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Addons/Url/Item/WithUrlItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Addons/Url/Item/WithUrlItemRequestBuilder.cs
deleted file mode 100644
index 2f9e81d..0000000
--- a/Rest/OpenHAB/Core/Rest/Addons/Url/Item/WithUrlItemRequestBuilder.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Addons.Url.Item.Install;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System;
-namespace OpenHAB.Core.Rest.Addons.Url.Item {
- ///
- /// Builds and executes requests for operations under \addons\url\{url}
- ///
- public class WithUrlItemRequestBuilder : BaseRequestBuilder {
- /// The install property
- public InstallRequestBuilder Install { get =>
- new InstallRequestBuilder(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 WithUrlItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/url/{url}", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public WithUrlItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/url/{url}", rawUrl) {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Addons/Url/UrlRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Addons/Url/UrlRequestBuilder.cs
deleted file mode 100644
index 5366e4c..0000000
--- a/Rest/OpenHAB/Core/Rest/Addons/Url/UrlRequestBuilder.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Addons.Url.Item;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System;
-namespace OpenHAB.Core.Rest.Addons.Url {
- ///
- /// Builds and executes requests for operations under \addons\url
- ///
- public class UrlRequestBuilder : BaseRequestBuilder {
- /// Gets an item from the openHAB.Core.Rest.addons.url.item collection
- /// addon install URL
- /// A
- public WithUrlItemRequestBuilder this[string position] { get {
- var urlTplParams = new Dictionary(PathParameters);
- urlTplParams.Add("url", position);
- return new WithUrlItemRequestBuilder(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 UrlRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/url", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public UrlRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/addons/url", rawUrl) {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Audio/AudioRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Audio/AudioRequestBuilder.cs
deleted file mode 100644
index 7ca4c3e..0000000
--- a/Rest/OpenHAB/Core/Rest/Audio/AudioRequestBuilder.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Audio.Defaultsink;
-using OpenHAB.Core.Rest.Audio.Defaultsource;
-using OpenHAB.Core.Rest.Audio.Sinks;
-using OpenHAB.Core.Rest.Audio.Sources;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System;
-namespace OpenHAB.Core.Rest.Audio {
- ///
- /// Builds and executes requests for operations under \audio
- ///
- public class AudioRequestBuilder : BaseRequestBuilder {
- /// The defaultsink property
- public DefaultsinkRequestBuilder Defaultsink { get =>
- new DefaultsinkRequestBuilder(PathParameters, RequestAdapter);
- }
- /// The defaultsource property
- public DefaultsourceRequestBuilder Defaultsource { get =>
- new DefaultsourceRequestBuilder(PathParameters, RequestAdapter);
- }
- /// The sinks property
- public SinksRequestBuilder Sinks { get =>
- new SinksRequestBuilder(PathParameters, RequestAdapter);
- }
- /// The sources property
- public SourcesRequestBuilder Sources { get =>
- new SourcesRequestBuilder(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 AudioRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/audio", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public AudioRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/audio", rawUrl) {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Audio/Defaultsink/DefaultsinkRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Audio/Defaultsink/DefaultsinkRequestBuilder.cs
deleted file mode 100644
index 36b827e..0000000
--- a/Rest/OpenHAB/Core/Rest/Audio/Defaultsink/DefaultsinkRequestBuilder.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Models;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Audio.Defaultsink {
- ///
- /// Builds and executes requests for operations under \audio\defaultsink
- ///
- public class DefaultsinkRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public DefaultsinkRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/audio/defaultsink", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public DefaultsinkRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/audio/defaultsink", rawUrl) {
- }
- ///
- /// Get the default sink if defined or the first available sink.
- ///
- /// 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.SendAsync(requestInfo, AudioSinkDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Get the default sink if defined or the first available sink.
- ///
- /// 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 DefaultsinkRequestBuilder WithUrl(string rawUrl) {
- return new DefaultsinkRequestBuilder(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.")]
- public class DefaultsinkRequestBuilderGetRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Audio/Defaultsource/DefaultsourceRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Audio/Defaultsource/DefaultsourceRequestBuilder.cs
deleted file mode 100644
index d4248f5..0000000
--- a/Rest/OpenHAB/Core/Rest/Audio/Defaultsource/DefaultsourceRequestBuilder.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Models;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Audio.Defaultsource {
- ///
- /// Builds and executes requests for operations under \audio\defaultsource
- ///
- public class DefaultsourceRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public DefaultsourceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/audio/defaultsource", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public DefaultsourceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/audio/defaultsource", rawUrl) {
- }
- ///
- /// Get the default source if defined or the first available source.
- ///
- /// 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.SendAsync(requestInfo, AudioSourceDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Get the default source if defined or the first available source.
- ///
- /// 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 DefaultsourceRequestBuilder WithUrl(string rawUrl) {
- return new DefaultsourceRequestBuilder(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.")]
- public class DefaultsourceRequestBuilderGetRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Audio/Sinks/SinksRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Audio/Sinks/SinksRequestBuilder.cs
deleted file mode 100644
index 4094cf7..0000000
--- a/Rest/OpenHAB/Core/Rest/Audio/Sinks/SinksRequestBuilder.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Models;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Audio.Sinks {
- ///
- /// Builds and executes requests for operations under \audio\sinks
- ///
- public class SinksRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public SinksRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/audio/sinks", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public SinksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/audio/sinks", rawUrl) {
- }
- ///
- /// Get the list of all sinks.
- ///
- /// A List<AudioSinkDTO>
- /// 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, AudioSinkDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
- }
- ///
- /// Get the list of all sinks.
- ///
- /// 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 SinksRequestBuilder WithUrl(string rawUrl) {
- return new SinksRequestBuilder(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.")]
- public class SinksRequestBuilderGetRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Audio/Sources/SourcesRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Audio/Sources/SourcesRequestBuilder.cs
deleted file mode 100644
index 73d31f2..0000000
--- a/Rest/OpenHAB/Core/Rest/Audio/Sources/SourcesRequestBuilder.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Models;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Audio.Sources {
- ///
- /// Builds and executes requests for operations under \audio\sources
- ///
- public class SourcesRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public SourcesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/audio/sources", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public SourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/audio/sources", rawUrl) {
- }
- ///
- /// Get the list of all sources.
- ///
- /// A List<AudioSourceDTO>
- /// 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, AudioSourceDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
- }
- ///
- /// Get the list of all sources.
- ///
- /// 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 SourcesRequestBuilder WithUrl(string rawUrl) {
- return new SourcesRequestBuilder(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.")]
- public class SourcesRequestBuilderGetRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Auth/Apitokens/ApitokensRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Auth/Apitokens/ApitokensRequestBuilder.cs
deleted file mode 100644
index 2575879..0000000
--- a/Rest/OpenHAB/Core/Rest/Auth/Apitokens/ApitokensRequestBuilder.cs
+++ /dev/null
@@ -1,88 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Auth.Apitokens.Item;
-using OpenHAB.Core.Rest.Models;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Auth.Apitokens {
- ///
- /// Builds and executes requests for operations under \auth\apitokens
- ///
- public class ApitokensRequestBuilder : BaseRequestBuilder {
- /// Gets an item from the openHAB.Core.Rest.auth.apitokens.item collection
- /// Unique identifier of the item
- /// A
- public WithNameItemRequestBuilder this[string position] { get {
- var urlTplParams = new Dictionary(PathParameters);
- urlTplParams.Add("name", position);
- return new WithNameItemRequestBuilder(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 ApitokensRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auth/apitokens", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public ApitokensRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auth/apitokens", rawUrl) {
- }
- ///
- /// List the API tokens associated to the authenticated user.
- ///
- /// A List<UserApiTokenDTO>
- /// 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, UserApiTokenDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
- }
- ///
- /// List the API tokens associated to the authenticated 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 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 ApitokensRequestBuilder WithUrl(string rawUrl) {
- return new ApitokensRequestBuilder(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.")]
- public class ApitokensRequestBuilderGetRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Auth/Apitokens/Item/WithNameItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Auth/Apitokens/Item/WithNameItemRequestBuilder.cs
deleted file mode 100644
index c46c531..0000000
--- a/Rest/OpenHAB/Core/Rest/Auth/Apitokens/Item/WithNameItemRequestBuilder.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Auth.Apitokens.Item {
- ///
- /// Builds and executes requests for operations under \auth\apitokens\{name}
- ///
- public class WithNameItemRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public WithNameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auth/apitokens/{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 WithNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auth/apitokens/{name}", rawUrl) {
- }
- ///
- /// Revoke a specified API token associated to the authenticated user.
- ///
- /// 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);
- }
- ///
- /// Revoke a specified API token associated to the authenticated 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;
- }
- ///
- /// 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 WithNameItemRequestBuilder WithUrl(string rawUrl) {
- return new WithNameItemRequestBuilder(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.")]
- public class WithNameItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Auth/AuthRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Auth/AuthRequestBuilder.cs
deleted file mode 100644
index 4b1bea5..0000000
--- a/Rest/OpenHAB/Core/Rest/Auth/AuthRequestBuilder.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Auth.Apitokens;
-using OpenHAB.Core.Rest.Auth.Logout;
-using OpenHAB.Core.Rest.Auth.Sessions;
-using OpenHAB.Core.Rest.Auth.Token;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System;
-namespace OpenHAB.Core.Rest.Auth {
- ///
- /// Builds and executes requests for operations under \auth
- ///
- public class AuthRequestBuilder : BaseRequestBuilder {
- /// The apitokens property
- public ApitokensRequestBuilder Apitokens { get =>
- new ApitokensRequestBuilder(PathParameters, RequestAdapter);
- }
- /// The logout property
- public LogoutRequestBuilder Logout { get =>
- new LogoutRequestBuilder(PathParameters, RequestAdapter);
- }
- /// The sessions property
- public SessionsRequestBuilder Sessions { get =>
- new SessionsRequestBuilder(PathParameters, RequestAdapter);
- }
- /// The token property
- public TokenRequestBuilder Token { get =>
- new TokenRequestBuilder(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 AuthRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auth", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public AuthRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auth", rawUrl) {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Auth/Logout/LogoutPostRequestBody.cs b/Rest/OpenHAB/Core/Rest/Auth/Logout/LogoutPostRequestBody.cs
deleted file mode 100644
index 19a57eb..0000000
--- a/Rest/OpenHAB/Core/Rest/Auth/Logout/LogoutPostRequestBody.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System;
-namespace OpenHAB.Core.Rest.Auth.Logout {
- public class LogoutPostRequestBody : IAdditionalDataHolder, IParsable {
- /// Stores 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
-#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
- /// The refresh_token property
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public string? RefreshToken { get; set; }
-#nullable restore
-#else
- public string RefreshToken { get; set; }
-#endif
- ///
- /// Instantiates a new and sets the default values.
- ///
- public LogoutPostRequestBody() {
- AdditionalData = new Dictionary();
- }
- ///
- /// Creates a new instance of the appropriate class based on discriminator value
- ///
- /// A
- /// The parse node to use to read the discriminator value and create the object
- public static LogoutPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
- _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new LogoutPostRequestBody();
- }
- ///
- /// The deserialization information for the current model
- ///
- /// A IDictionary<string, Action<IParseNode>>
- public virtual IDictionary> GetFieldDeserializers() {
- return new Dictionary> {
- {"id", n => { Id = n.GetStringValue(); } },
- {"refresh_token", n => { RefreshToken = n.GetStringValue(); } },
- };
- }
- ///
- /// Serializes information the current object
- ///
- /// Serialization writer to use to serialize this model
- public virtual void Serialize(ISerializationWriter writer) {
- _ = writer ?? throw new ArgumentNullException(nameof(writer));
- writer.WriteStringValue("id", Id);
- writer.WriteStringValue("refresh_token", RefreshToken);
- writer.WriteAdditionalData(AdditionalData);
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Auth/Logout/LogoutRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Auth/Logout/LogoutRequestBuilder.cs
deleted file mode 100644
index 1077f2a..0000000
--- a/Rest/OpenHAB/Core/Rest/Auth/Logout/LogoutRequestBuilder.cs
+++ /dev/null
@@ -1,81 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Auth.Logout {
- ///
- /// Builds and executes requests for operations under \auth\logout
- ///
- public class LogoutRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public LogoutRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auth/logout", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public LogoutRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auth/logout", rawUrl) {
- }
- ///
- /// Delete the session associated with a refresh token.
- ///
- /// 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(LogoutPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
-#nullable restore
-#else
- public async Task PostAsync(LogoutPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = ToPostRequestInformation(body, requestConfiguration);
- return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Delete the session associated with a refresh token.
- ///
- /// 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(LogoutPostRequestBody body, Action>? requestConfiguration = default) {
-#nullable restore
-#else
- public RequestInformation ToPostRequestInformation(LogoutPostRequestBody body, Action> requestConfiguration = default) {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.SetContentFromParsable(RequestAdapter, "application/x-www-form-urlencoded", 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 LogoutRequestBuilder WithUrl(string rawUrl) {
- return new LogoutRequestBuilder(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.")]
- public class LogoutRequestBuilderPostRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Auth/Sessions/SessionsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Auth/Sessions/SessionsRequestBuilder.cs
deleted file mode 100644
index ed69eb2..0000000
--- a/Rest/OpenHAB/Core/Rest/Auth/Sessions/SessionsRequestBuilder.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Models;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Auth.Sessions {
- ///
- /// Builds and executes requests for operations under \auth\sessions
- ///
- public class SessionsRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public SessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auth/sessions", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auth/sessions", rawUrl) {
- }
- ///
- /// List the sessions associated to the authenticated user.
- ///
- /// A List<UserSessionDTO>
- /// 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, UserSessionDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
- }
- ///
- /// List the sessions associated to the authenticated 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 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 SessionsRequestBuilder WithUrl(string rawUrl) {
- return new SessionsRequestBuilder(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.")]
- public class SessionsRequestBuilderGetRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Auth/Token/TokenPostRequestBody.cs b/Rest/OpenHAB/Core/Rest/Auth/Token/TokenPostRequestBody.cs
deleted file mode 100644
index 2d6350c..0000000
--- a/Rest/OpenHAB/Core/Rest/Auth/Token/TokenPostRequestBody.cs
+++ /dev/null
@@ -1,103 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System;
-namespace OpenHAB.Core.Rest.Auth.Token {
- public class TokenPostRequestBody : IAdditionalDataHolder, IParsable {
- /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
- public IDictionary AdditionalData { get; set; }
- /// The client_id property
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public string? ClientId { get; set; }
-#nullable restore
-#else
- public string ClientId { get; set; }
-#endif
- /// The code property
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public string? Code { get; set; }
-#nullable restore
-#else
- public string Code { get; set; }
-#endif
- /// The code_verifier property
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public string? CodeVerifier { get; set; }
-#nullable restore
-#else
- public string CodeVerifier { get; set; }
-#endif
- /// The grant_type property
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public string? GrantType { get; set; }
-#nullable restore
-#else
- public string GrantType { get; set; }
-#endif
- /// The redirect_uri property
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public string? RedirectUri { get; set; }
-#nullable restore
-#else
- public string RedirectUri { get; set; }
-#endif
- /// The refresh_token property
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public string? RefreshToken { get; set; }
-#nullable restore
-#else
- public string RefreshToken { get; set; }
-#endif
- ///
- /// Instantiates a new and sets the default values.
- ///
- public TokenPostRequestBody() {
- AdditionalData = new Dictionary();
- }
- ///
- /// Creates a new instance of the appropriate class based on discriminator value
- ///
- /// A
- /// The parse node to use to read the discriminator value and create the object
- public static TokenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
- _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new TokenPostRequestBody();
- }
- ///
- /// The deserialization information for the current model
- ///
- /// A IDictionary<string, Action<IParseNode>>
- public virtual IDictionary> GetFieldDeserializers() {
- return new Dictionary> {
- {"client_id", n => { ClientId = n.GetStringValue(); } },
- {"code", n => { Code = n.GetStringValue(); } },
- {"code_verifier", n => { CodeVerifier = n.GetStringValue(); } },
- {"grant_type", n => { GrantType = n.GetStringValue(); } },
- {"redirect_uri", n => { RedirectUri = n.GetStringValue(); } },
- {"refresh_token", n => { RefreshToken = n.GetStringValue(); } },
- };
- }
- ///
- /// Serializes information the current object
- ///
- /// Serialization writer to use to serialize this model
- public virtual void Serialize(ISerializationWriter writer) {
- _ = writer ?? throw new ArgumentNullException(nameof(writer));
- writer.WriteStringValue("client_id", ClientId);
- writer.WriteStringValue("code", Code);
- writer.WriteStringValue("code_verifier", CodeVerifier);
- writer.WriteStringValue("grant_type", GrantType);
- writer.WriteStringValue("redirect_uri", RedirectUri);
- writer.WriteStringValue("refresh_token", RefreshToken);
- writer.WriteAdditionalData(AdditionalData);
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/Auth/Token/TokenRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Auth/Token/TokenRequestBuilder.cs
deleted file mode 100644
index 17cfc42..0000000
--- a/Rest/OpenHAB/Core/Rest/Auth/Token/TokenRequestBuilder.cs
+++ /dev/null
@@ -1,90 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Models;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.Auth.Token {
- ///
- /// Builds and executes requests for operations under \auth\token
- ///
- public class TokenRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public TokenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auth/token{?useCookie*}", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public TokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auth/token{?useCookie*}", rawUrl) {
- }
- ///
- /// Get access and refresh tokens.
- ///
- /// 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(TokenPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
-#nullable restore
-#else
- public async Task PostAsync(TokenPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = ToPostRequestInformation(body, requestConfiguration);
- return await RequestAdapter.SendAsync(requestInfo, TokenResponseDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Get access and refresh tokens.
- ///
- /// 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(TokenPostRequestBody body, Action>? requestConfiguration = default) {
-#nullable restore
-#else
- public RequestInformation ToPostRequestInformation(TokenPostRequestBody body, Action> requestConfiguration = default) {
-#endif
- _ = body ?? 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/x-www-form-urlencoded", 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 TokenRequestBuilder WithUrl(string rawUrl) {
- return new TokenRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Get access and refresh tokens.
- ///
- public class TokenRequestBuilderPostQueryParameters {
- [QueryParameter("useCookie")]
- public bool? UseCookie { 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.")]
- public class TokenRequestBuilderPostRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/ChannelTypes/ChannelTypesRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/ChannelTypes/ChannelTypesRequestBuilder.cs
deleted file mode 100644
index 64dcc61..0000000
--- a/Rest/OpenHAB/Core/Rest/ChannelTypes/ChannelTypesRequestBuilder.cs
+++ /dev/null
@@ -1,103 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.ChannelTypes.Item;
-using OpenHAB.Core.Rest.Models;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.ChannelTypes {
- ///
- /// Builds and executes requests for operations under \channel-types
- ///
- public class ChannelTypesRequestBuilder : BaseRequestBuilder {
- /// Gets an item from the openHAB.Core.Rest.channelTypes.item collection
- /// channelTypeUID
- /// A
- public WithChannelTypeUItemRequestBuilder this[string position] { get {
- var urlTplParams = new Dictionary(PathParameters);
- urlTplParams.Add("channelTypeUID", position);
- return new WithChannelTypeUItemRequestBuilder(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 ChannelTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/channel-types{?prefixes*}", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public ChannelTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/channel-types{?prefixes*}", rawUrl) {
- }
- ///
- /// Gets all available channel types.
- ///
- /// A List<ChannelTypeDTO>
- /// 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, ChannelTypeDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
- }
- ///
- /// Gets all available channel types.
- ///
- /// 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 ChannelTypesRequestBuilder WithUrl(string rawUrl) {
- return new ChannelTypesRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Gets all available channel types.
- ///
- public class ChannelTypesRequestBuilderGetQueryParameters {
- /// filter UIDs by prefix (multiple comma-separated prefixes allowed, for example: 'system,mqtt')
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("prefixes")]
- public string? Prefixes { get; set; }
-#nullable restore
-#else
- [QueryParameter("prefixes")]
- public string Prefixes { 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.")]
- public class ChannelTypesRequestBuilderGetRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/ChannelTypes/Item/LinkableItemTypes/LinkableItemTypesRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/ChannelTypes/Item/LinkableItemTypes/LinkableItemTypesRequestBuilder.cs
deleted file mode 100644
index c84bcc8..0000000
--- a/Rest/OpenHAB/Core/Rest/ChannelTypes/Item/LinkableItemTypes/LinkableItemTypesRequestBuilder.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.ChannelTypes.Item.LinkableItemTypes {
- ///
- /// Builds and executes requests for operations under \channel-types\{channelTypeUID}\linkableItemTypes
- ///
- public class LinkableItemTypesRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public LinkableItemTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/channel-types/{channelTypeUID}/linkableItemTypes", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public LinkableItemTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/channel-types/{channelTypeUID}/linkableItemTypes", rawUrl) {
- }
- ///
- /// Gets the item types the given trigger channel type UID can be linked to.
- ///
- /// A List<string>
- /// 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.SendPrimitiveCollectionAsync(requestInfo, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
- }
- ///
- /// Gets the item types the given trigger channel type UID can be linked to.
- ///
- /// 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 LinkableItemTypesRequestBuilder WithUrl(string rawUrl) {
- return new LinkableItemTypesRequestBuilder(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.")]
- public class LinkableItemTypesRequestBuilderGetRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/ChannelTypes/Item/WithChannelTypeUItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/ChannelTypes/Item/WithChannelTypeUItemRequestBuilder.cs
deleted file mode 100644
index 566902e..0000000
--- a/Rest/OpenHAB/Core/Rest/ChannelTypes/Item/WithChannelTypeUItemRequestBuilder.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.ChannelTypes.Item.LinkableItemTypes;
-using OpenHAB.Core.Rest.Models;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.ChannelTypes.Item {
- ///
- /// Builds and executes requests for operations under \channel-types\{channelTypeUID}
- ///
- public class WithChannelTypeUItemRequestBuilder : BaseRequestBuilder {
- /// The linkableItemTypes property
- public LinkableItemTypesRequestBuilder LinkableItemTypes { get =>
- new LinkableItemTypesRequestBuilder(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 WithChannelTypeUItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/channel-types/{channelTypeUID}", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public WithChannelTypeUItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/channel-types/{channelTypeUID}", rawUrl) {
- }
- ///
- /// Gets channel type 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 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, ChannelTypeDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Gets channel type 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 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 WithChannelTypeUItemRequestBuilder WithUrl(string rawUrl) {
- return new WithChannelTypeUItemRequestBuilder(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.")]
- public class WithChannelTypeUItemRequestBuilderGetRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/ConfigDescriptions/ConfigDescriptionsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/ConfigDescriptions/ConfigDescriptionsRequestBuilder.cs
deleted file mode 100644
index 9825d8f..0000000
--- a/Rest/OpenHAB/Core/Rest/ConfigDescriptions/ConfigDescriptionsRequestBuilder.cs
+++ /dev/null
@@ -1,103 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.ConfigDescriptions.Item;
-using OpenHAB.Core.Rest.Models;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.ConfigDescriptions {
- ///
- /// Builds and executes requests for operations under \config-descriptions
- ///
- public class ConfigDescriptionsRequestBuilder : BaseRequestBuilder {
- /// Gets an item from the openHAB.Core.Rest.configDescriptions.item collection
- /// uri
- /// A
- public WithUriItemRequestBuilder this[string position] { get {
- var urlTplParams = new Dictionary(PathParameters);
- urlTplParams.Add("uri", position);
- return new WithUriItemRequestBuilder(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 ConfigDescriptionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/config-descriptions{?scheme*}", pathParameters) {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public ConfigDescriptionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/config-descriptions{?scheme*}", rawUrl) {
- }
- ///
- /// Gets all available config descriptions.
- ///
- /// A List<ConfigDescriptionDTO>
- /// 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, ConfigDescriptionDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
- }
- ///
- /// Gets all available config descriptions.
- ///
- /// 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 ConfigDescriptionsRequestBuilder WithUrl(string rawUrl) {
- return new ConfigDescriptionsRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Gets all available config descriptions.
- ///
- public class ConfigDescriptionsRequestBuilderGetQueryParameters {
- /// scheme filter
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("scheme")]
- public string? Scheme { get; set; }
-#nullable restore
-#else
- [QueryParameter("scheme")]
- public string Scheme { 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.")]
- public class ConfigDescriptionsRequestBuilderGetRequestConfiguration : RequestConfiguration {
- }
- }
-}
diff --git a/Rest/OpenHAB/Core/Rest/ConfigDescriptions/Item/WithUriItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/ConfigDescriptions/Item/WithUriItemRequestBuilder.cs
deleted file mode 100644
index e73569b..0000000
--- a/Rest/OpenHAB/Core/Rest/ConfigDescriptions/Item/WithUriItemRequestBuilder.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-//
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using OpenHAB.Core.Rest.Models;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace OpenHAB.Core.Rest.ConfigDescriptions.Item {
- ///
- /// Builds and executes requests for operations under \config-descriptions\{uri}
- ///
- public class WithUriItemRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public WithUriItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/config-descriptions/{uri}", pathParameters) {
- }
- ///
- /// Instantiates a new